30. Save, restore and restart
The first version uses one quick-save slot. SAVE writes slot 1 under the name The Last Signal; RESTORE loads that slot. The same commands work from either presentation.
Figure 19. Restoring returns the room, inventory, puzzle flags, score and saved transcript together.
| Command | Behavior |
|---|---|
| SAVE / SAVE GAME | Writes slot 1. An earlier save in that slot is replaced. |
| RESTORE / LOAD / LOAD GAME | Loads slot 1, if a file exists. |
| RESTART | Asks for a second command. |
| RESTART YES | Starts a new game after RESTART has been requested. Saved files remain. |
The game stores story progress in PCA variables and real inventory, not in temporary local GDScript fields. That is why the repaired radio and score survive restore.
RESTORE is deferred to the runtime. Loading rebuilds script instances, so the controller must not keep waiting inside the script instance being replaced. The new instance handles OnSaveLoaded and refreshes its screen. Keep the deferred call from Appendix A.
