Saving variable state with Easy Save?
Posted: Thu Aug 12, 2021 1:15 am
Hello! I saw in the manual that there is integration between Easy Save and the Dialogue System. I want to be able to save the variable boolean values of the Dialogue system to load later.
I saw these:
Would I be able to use these in separate scripts I have for saving and loading? I figured this might work for saving:
But not sure how loading would quite work, and I'm not quite sure this will even do what I want. I don't want to use the save system from the Dialogue Manager.
---------------
Alternatively is this doesn't quite do what I think it does, is there a shortcut to getting all the current variable values in the Dialogue System in a script? Any help is much appreciated.
I saw these:
Code: Select all
using PixelCrushers;
//////save
string s = SaveSystem.Serialize(SaveSystem.RecordSavedGameData());
////load
SaveSystem.ApplySavedGameData(SaveSystem.Deserialize<SavedGameData>(s));
Code: Select all
string s = SaveSystem.Serialize(SaveSystem.RecordSavedGameData());
ES3.Save("dialogueState" , s);
---------------
Alternatively is this doesn't quite do what I think it does, is there a shortcut to getting all the current variable values in the Dialogue System in a script? Any help is much appreciated.