Update README.md

This commit is contained in:
Matt Brockman 2021-01-14 12:38:06 -08:00 committed by GitHub
parent 59f085e51b
commit 725b2e1bcc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,7 +49,6 @@ You can modify worldInfo with the below functions
## State ## State
The `state` variable can be used to store information that's persistent across function calls/modifiers. The `state` variable can be used to store information that's persistent across function calls/modifiers.
* The `state.memory.context` value will replace the user defined memory if it exists
* The `state.message`, if provided, can be a string that will be displayed as an alert in the game. * The `state.message`, if provided, can be a string that will be displayed as an alert in the game.
When in 3rd person mode, `state.message` can also be an object (or an array of objects) with a list of the multiplayer character names When in 3rd person mode, `state.message` can also be an object (or an array of objects) with a list of the multiplayer character names
who should see the message. E.g., `[{ text: 'Only you can see this!', visibleTo: ['Sam', 'Jane']}]` who should see the message. E.g., `[{ text: 'Only you can see this!', visibleTo: ['Sam', 'Jane']}]`