keeping quest through scenes

Announcements, support questions, and discussion for Quest Machine.
Post Reply
Reed237
Posts: 16
Joined: Thu Mar 02, 2023 11:12 am

keeping quest through scenes

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

Re: keeping quest through scenes

Post 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.
Reed237
Posts: 16
Joined: Thu Mar 02, 2023 11:12 am

Re: keeping quest through scenes

Post by Reed237 »

I got it thx a lot
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: keeping quest through scenes

Post by Tony Li »

Glad to help!
Post Reply