This script allows you to “preserve” data throughout the game without requiring
the user to save the game. For example, if a player enters a room and a switch
is turned on, you can preserve the state of the switch even if the player
chooses to reload.
You can preserve variables and switches, and the values of the data will
carry over across game loads. However, this only applies to the most
recently saved/loaded file.
If the player starts a new game, and there is already a save file in the first
slot, that will be treated as the “last saved” file.
Script: download here
Place this script below Materials and above Main
Use this script call in an event to save any data that should be preserved.
More generally, you can use this call outside of the interpreter
In the configuration, enter all of the ID’s for the switches and variables
that should be preserved when you choose to preserve data.