Skip to reading
Action Lists & Events

29. Saving should preserve a finished state

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView PDF page

Save after the important state changes agree with each other. For the key pickup, the bag, key_taken, score and world visibility should describe the same finished result. Saving halfway through an unguarded reward can make a loaded game inconsistent.

Source table from 29. Saving should preserve a finished state, page 34
ActionUse it for
Save Game / Load GameThe basic route; without a structured slot it uses slot 0.
Save Game Slot / Load Game SlotAn explicit numbered slot and optional save name.
Save Game Widget CommandA custom save interface's selected slot or an explicit slot command.
OnSaveLoadedFollow-up presentation after a successful state restore.

1. Save before taking the key, then take it and confirm the reward.

2. Save afterward in another slot.

3. Load the first slot. The key should be available and the reward should not yet be claimed.

4. Load the second slot. The bag should contain the key and the world pickup should remain hidden.

5. Try re-entering the room and retriggering any related response. Score should not rise again.

OnItemFound is not a lifetime achievement system. Its active-inventory route notices an item being added when it was absent. If the last copy is removed and later reacquired, that route can report another finding. Use a dedicated story flag for a permanent discovery reward.

Treat slot overwrite and deletion as player decisions. Do not place a delete command in a hover response or use a broad global listener to erase saves as incidental cleanup.

Page 34 of 189Permalink
Go to page