From dbdb47204b259174210b13d326ae178fec88c2e6 Mon Sep 17 00:00:00 2001 From: Andrew Cantino Date: Tue, 13 Oct 2020 15:50:28 -0700 Subject: [PATCH] Support arrays too --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ba131b9..bdcb7f6 100644 --- a/README.md +++ b/README.md @@ -51,8 +51,8 @@ You can modify worldEntries with the below functions 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. - When in 3rd person mode, `state.message` can also be an object with a list of the multiplayer character names - who should see the message. E.g., `{ text: 'Only you can see this!', visibleTo: ['Sam', 'Jane']}` + 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']}]` * You can set any variable on state to store and modify adventures throughout an adventure. ## Console