Update README.md
This commit is contained in:
parent
8aa114ddcf
commit
a37474dc1b
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@ Called each time the model generates an output and has the opportunity to modify
|
|||
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)
|
||||
* You can set any variable on state to store and modify adventures throughout an adventure.
|
||||
|
||||
### Console
|
||||
`console.log("Some message")` will log messages that you can see in the scripting console
|
||||
|
|
Reference in a new issue