Page 1 of 1
Resetting QuestLog state
Posted: Wed Apr 19, 2023 12:47 pm
by webik150
Hi, what would be the easiest way to reset the current QuestLog to initial state? I'm asking because when I reload a game through reloading a scene, cleared quests stay completed.
Thanks
Re: Resetting QuestLog state
Posted: Wed Apr 19, 2023 2:00 pm
by Tony Li
Hi,
If you're using the
save system, call PixelCrushers.SaveSystem.RestartGame("sceneName") to start a new game. Or call SaveSystem.LoadFromSlot(#) to load a previously-saved game.
Otherwise, call DialogueManager.ResetDatabase() before loading your scene.