Re: Auto Play and Skip All buttons
Posted: Sun May 30, 2021 6:50 pm
Hi,
I'll assume your dialogue entry nodes' Conditions use Dialogue System variables -- for example, the "TalkedToNPC" variable in How To: Run a Conversation Only Once.
To reset everything (e.g., all variables and quest states), call DialogueManager.ResetDatabase(). Or, if you're using the Save System, call PixelCrushers.SaveSystem.RestartGame("mainmenu") to reset all data saved in memory (including the Dialogue System variables and quests) and load a scene named "mainmenu".
If you don't want to write a script, you can add a SaveSystemMethods componenet to a UI Button and configure OnClick() to call SaveSystemMethods.RestartGame.
I'll assume your dialogue entry nodes' Conditions use Dialogue System variables -- for example, the "TalkedToNPC" variable in How To: Run a Conversation Only Once.
To reset everything (e.g., all variables and quest states), call DialogueManager.ResetDatabase(). Or, if you're using the Save System, call PixelCrushers.SaveSystem.RestartGame("mainmenu") to reset all data saved in memory (including the Dialogue System variables and quests) and load a scene named "mainmenu".
If you don't want to write a script, you can add a SaveSystemMethods componenet to a UI Button and configure OnClick() to call SaveSystemMethods.RestartGame.