Skip to reading
Replace the Built-in Screens

Restore notebooks after a saved game

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 20. Enable the player-change and save-loaded event subscriptions on the journal helper.

1. Keep journal_tools as a Global Script. Its small controller observes the selected note while the game runs.

2. In its Event Functions, subscribe to OnPlayerChanged and OnSaveLoaded. Writing the functions in the source is not the same as subscribing the record to those events.

3. Give Eli two entries and Mara a different entry.

4. Save the game. Then alter the notes and switch characters.

5. Load the saved position. Check both arrays, the active HUD and the selected notebook’s reader.

6. Start a genuinely new game. Old discoveries should not remain because they were accidentally stored as authored initial values.

The controller rebuilds the reader from the saved array. It does not try to save the live Text Box as the source of truth.

If you add another playable character, add their journal array, List Box source and reader ID, then extend the owner list in journal_tools.render().

Page 31 of 88Permalink
Go to page