Setting a quest field in code doesn't save
Posted: Wed Sep 12, 2018 11:58 am
Hi guys,
So I have this somewhere in my code:
questName (string)
dayToSetCompleted (int)
DialogueLua.SetQuestField(questName,"DayCompleted",dayToSetCompleted);
That get's called, and locally when I report that value it returns correctly, however that doesn't seem to save like variables do. When I change scene that field hasn't been saved.
I'm saving on level exit like this:
string dbData = PersistentDataManager.GetSaveData();
PlayerPrefs.SetString(currentDBSaveSlot,dbData);
Where am I going wrong here?
Thanks,
BB
So I have this somewhere in my code:
questName (string)
dayToSetCompleted (int)
DialogueLua.SetQuestField(questName,"DayCompleted",dayToSetCompleted);
That get's called, and locally when I report that value it returns correctly, however that doesn't seem to save like variables do. When I change scene that field hasn't been saved.
I'm saving on level exit like this:
string dbData = PersistentDataManager.GetSaveData();
PlayerPrefs.SetString(currentDBSaveSlot,dbData);
Where am I going wrong here?
Thanks,
BB