Integration with Easy Main Menu

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
pegassy
Posts: 135
Joined: Sat Mar 17, 2018 8:07 pm

Integration with Easy Main Menu

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

Re: Integration with Easy Main Menu

Post 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.
Post Reply