Page 1 of 1
keeping quest through scenes
Posted: Tue Jul 18, 2023 11:48 am
by Reed237
hey, I'm using Quest Machine and top-down engine in my 2d game. I want to use the quest system but I don't know how to get it to save through scenes.
could u provide a general idea of how to do that?
Re: keeping quest through scenes
Posted: Tue Jul 18, 2023 2:34 pm
by Tony Li
Hi,
1. Add a SaveSystem component to your Quest Machine GameObject. Note: There should only be one SaveSystem component in the scene. If you've already added a SaveSystem component to a GameObject, don't also add it to the Quest Machine GameObject.
2. Inspect the player's QuestJournal component in each scene and set the Save Settings > Save Key to the same value in all scenes -- but different from any other savers in your scenes such as PositionSavers and ActiveSavers.
3. Change scenes using any of these techniques:
How To: Change Scenes With Save System. This article is in the Dialogue System forum section so it also includes a Dialogue System technique (LoadLevel() command) to change scenes. Ignore that technique but use any of the others.
Re: keeping quest through scenes
Posted: Tue Jul 18, 2023 4:03 pm
by Reed237
I got it thx a lot
Re: keeping quest through scenes
Posted: Tue Jul 18, 2023 4:08 pm
by Tony Li
Glad to help!