Resetting QuestLog state

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
webik150
Posts: 1
Joined: Thu Dec 22, 2022 1:35 pm

Resetting QuestLog state

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

Re: Resetting QuestLog state

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