No description
This repository has been archived on 2025-02-27. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2020-05-27 20:39:30 -06:00
README.md Update README.md 2020-05-27 20:39:30 -06:00
world.js Create world.js 2020-05-27 17:15:14 -06:00

Scripting

Input Modifier

Called each time the player gives an input and has the opportunity to modify that input.

Output Modifier

Called each time the model generates an output and has the opportunity to modify that output.

State

The state variable can be used to store information that's persistent across function calls.

  • The state.memory.context value will be added to the games memory if exists
  • The state.message value will be displayed as a extra message in the game (if it exists)

Console

console.log("Some message") will log messages that you can see in the scripting console