Prepare the personal-notes variables
| Variable ID | Type | Initial value / purpose |
|---|---|---|
| journal_tester | Array | Empty array. Eli’s entries. |
| journal_assistant | Array | Empty array. Mara’s entries. |
| journal_choice | String | Empty 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.
| Entry field | Example |
|---|---|
| id | north_door |
| text | The locked north door |
| body | The 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.
