Page 1 of 1

Saving and Quest Tracking Questions

Posted: Thu Aug 06, 2020 7:17 pm
by Terraya
Hey Tony!

I hope your good,
we are on our way to release after some months finaly our Alpha version ,

i still have two Questions about your wonderfull system,

- How can i Save the Quest / Dialogue Progress?
At the end i implemented my own Saving System and well, how could i implement saving for quests and dialogue progress?

- How can i get Active Quests and Finisht Quests and Display them?
I implemented a nice Quest Log where i would love to display the Active Quests and finisht ones, how could i get them?

Best Regards,
Artur! :)

Re: Saving and Quest Tracking Questions

Posted: Thu Aug 06, 2020 8:53 pm
by Tony Li
Hi Artur,

If you don't want to use the built-in save system, use these two methods:

Save Game: To get the Dialogue System state as a string so you can save it in your save system:

Code: Select all

string s = PersistentDataManager.GetSaveData();
// Save s using your save system.
Load Game: To set the Dialogue System state from a string:

Code: Select all

string s = // Get the string from your save system.
PersistentDataManager.ApplySaveData(s);
If you don't want to use the built-in quest log window or quest tracker HUD, use QuestLog.GetAllQuests():

Code: Select all

string[] activeQuests = QuestLog.GetAllQuests(QuestState.Active);