48. Fix story and save-state problems
| Symptom | Check |
|---|---|
| Key can be used before pickup | The successful branch must check real inventory, not only a known noun. |
| Item returns after changing rooms | Check ta_key_room / ta_fuse_room and the room placeholder IDs. |
| Score grows on repetition | Award through a unique guard flag; remove duplicate action-list rewards. |
| Door looks open but NORTH fails | The route checks ta_door_open, not the model’s appearance. |
| A saved game freezes during load | Keep RESTORE deferred. Loading rebuilds script instances; do not await it inside the instance being replaced. |
| Old code reappears after restore | Start a new game and make a fresh save after changing project scripts. |
| Native preview disagrees with controller | They use separate vocabulary and cleanup routes. Update and test the intended route. |
| Controller rejects a new noun | Add it to NOUNS, present(), descriptions and the relevant action rule. |
| A new room is unreachable | Add an explicit route and a valid destination spawn. |
Story state should be the authority. The visible door, loose fuse and status strip should follow that state. If you make the picture the only record of progress, room changes and restore will eventually expose the mismatch.
