Find state that vanishes after loading
SAVE AND LOAD
When a puzzle resets after loading, trace one fact through time. A single Boolean such as signal_seen is easier to follow than a whole room full of props.
| 1. Before saving | Trigger the story event the normal way. Use get signal_seen and record the result. If it is already wrong, debug the event before investigating the save. |
|---|---|
| 2. During the save | Use a disposable test slot. Record the slot number and wait for the save to finish. Preserve any player save you still need. |
| 3. Before loading | Change the live flag to the opposite value. Reading it now makes the difference observable. Leave the saved slot alone. |
| 4. After loading | Load that same slot and query the flag again. Then inspect the actual door, label or character that should reflect it. |
In the verified slot-3 case, the shared BASIC flag read true before saving, false after clearing it, and true after loading. If the value comes back correctly but the door still looks locked, inspect the room’s startup or refresh logic next.
Function locals last for a call. A BASIC module-level DIM can survive repeated calls without becoming saved progress. Use a shared game variable for a story flag that belongs to a save slot. A settings file at a single user:// path can apply across several slots.
