Skip to reading
Replace the Built-in Screens

Prepare the personal-notes variables

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 PDF page
Source table from Prepare the personal-notes variables, page 26
Variable IDTypeInitial value / purpose
journal_testerArrayEmpty array. Eli’s entries.
journal_assistantArrayEmpty array. Mara’s entries.
journal_choiceStringEmpty string. The selected entry ID in the currently open notebook.

Each entry is a dictionary with id, text and body. id is the stable key, text is the short title shown in the list, and body is the longer passage in the reader. The helper adds an entry once and updates it when the same ID is written again.

Source table from Prepare the personal-notes variables, page 26
Entry fieldExample
idnorth_door
textThe locked north door
bodyThe brass key fits the lock. I should ask Mara about the clock.

An entry title can be translated or rewritten without changing its ID. Keep the ID stable when a puzzle progresses, so an update replaces the old note rather than adding a duplicate.

The example stores literal text. For a translated game, resolve translated titles and bodies before recording them, or extend the reader to localize stored text keys. Saved prose does not translate itself when the player changes language.

The arrays are normal saved game variables. Text currently painted in a GUI control is only a view; it is not the notebook’s permanent storage.

Page 26 of 88Permalink
Go to page