Let one character learn something privately
Figure 19. Mara knows about the night operator; Eli’s notebook still contains his own discoveries.
By default, add_entry writes to the active character. The optional fourth argument specifies another character ID. That is useful when a scene teaches Mara something while Eli is still the controlled character.
| Call arguments | Result |
|---|---|
| entry ID, title, body | Add or update the active player’s notebook. |
| entry ID, title, body, "assistant" | Write directly to Mara’s notebook. |
| The same entry in both owners’ arrays | Both characters have deliberately learned the fact. |
Information sharing is a story action. If Eli tells Mara the key fits the door, call add_entry for assistant at that point. Do not copy all of Eli’s notes simply because the player switched characters.
For “give an item,” use Transfer Inventory. For “tell a fact,” update the recipient’s notebook or knowledge variables. These are different kinds of state.
