Record a note from a story action
| Where the discovery happens | Suggested action |
|---|---|
| A door’s Look result | Run remember_door once the player notices the relevant clue. |
| A dialogue response | Run a wrapper that adds the newly learned information. |
| An action list | Use Run Script/Run Visual Script to call that wrapper at the correct step. |
| A visual script graph | Use Run Script or an exposed function node with the entry parameters. |
1. Create the normal script record remember_door using the complete example in Chapter 10.
2. On the north door’s Look interaction, add a Run Script action selecting remember_door.
3. Run Play and look at the door as Eli.
4. Open his Journal. Select “The locked north door” and read the passage.
5. Look at the door a second time. There should still be one north_door entry, not two identical titles.
6. Change the wrapper’s body text for a later story state and call it again. The same entry ID should now show the revised note.
Do not attach a recording action to ordinary GUI hover. A player merely passing the pointer over a menu should not discover story information.
