Saving and Quest Tracking Questions

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Terraya
Posts: 19
Joined: Sat Feb 01, 2020 5:22 pm

Saving and Quest Tracking Questions

Post 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! :)
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Saving and Quest Tracking Questions

Post 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);
Post Reply