Page 1 of 1

Integration with Easy Main Menu

Posted: Sun Aug 19, 2018 12:02 am
by pegassy
Hey,

I have been using an asset pack named Easy Main Menu, which has an integrated save system, where you can make multiple saves or quick saves. Currently, the system seems to be saving only the player's location. Therefore, if the player dies, or if I go to the main menu and come back, there does not seem to be any reset of the quests. For example, when I go to main menu and come back to the beginning of the game, the NPC's will act as if I have completed their quests.

How may I make sure that the quests are reset when I go tot he main menu, and how can I integrate DS's features for saving other characters and quests into EMM?

Thank you.

Re: Integration with Easy Main Menu

Posted: Sun Aug 19, 2018 12:35 am
by Tony Li
Hi,

I'm familiar with Easy Main Menu. You'll want to configure it to save an additional string with its save data:

Code: Select all

string dialogueSystemData = PersistentDataManager.GetSaveData();
When loading the game, give that string back to the Dialogue System:

Code: Select all

PersistentDataManager.ApplySaveData(dialogueSystemData);
When starting a new game, reset the database to its initial state:

Code: Select all

DialogueManager.ResetDatabase(DatabaseResetOptions.RevertToDefault);
If you need more details, let me know. I'll load up a project with EMM and identify where the changes need to be made.