Load variables from Slot
Posted: Wed Oct 13, 2021 11:42 am
Hi there!
I've a gallery, and there are pictures/buttons that can be unlocked.
Each button is equivalent to a bool variable of the dialog system.
I manage to equal the variables in each button/picture in this way:
Picture [0] = DialogueLua.GetVariable ("Picture0"). AsBool;
...
The point is that before doing this, I need to load the game, so that the variables are loaded.
I save the game with the script "Save System Methods", using the function "SaveSlot (x)".
Well, I know I can load with "LoadFromSlot (x)", but that even brings me to the scene where I saved.
Is it possible to load only the variables of the dialog system?
I've a gallery, and there are pictures/buttons that can be unlocked.
Each button is equivalent to a bool variable of the dialog system.
I manage to equal the variables in each button/picture in this way:
Picture [0] = DialogueLua.GetVariable ("Picture0"). AsBool;
...
The point is that before doing this, I need to load the game, so that the variables are loaded.
I save the game with the script "Save System Methods", using the function "SaveSlot (x)".
Well, I know I can load with "LoadFromSlot (x)", but that even brings me to the scene where I saved.
Is it possible to load only the variables of the dialog system?