Skip to reading
Replace the Built-in Screens

Let one character learn something privately

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

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.

Source table from Let one character learn something privately, page 30
Call argumentsResult
entry ID, title, bodyAdd or update the active player’s notebook.
entry ID, title, body, "assistant"Write directly to Mara’s notebook.
The same entry in both owners’ arraysBoth 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.

Page 30 of 88Permalink
Go to page