ORK Integration (Spawning and the Quest Journal)

Announcements, support questions, and discussion for Quest Machine.
hardercore
Posts: 9
Joined: Sun Aug 23, 2020 12:21 am

Re: ORK Integration (Spawning and the Quest Journal)

Post by hardercore »

Ok thanks :)
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: ORK Integration (Spawning and the Quest Journal)

Post by Tony Li »

Can you make your quest giver NPC an ORK combatant? It looks like ORK only carries over data on combatants now.

If that's not possible, then you'll need to hook up scene changes to these methods:

Before changing scenes:

Code: Select all

PixelCrushers.SaveSystem.BeforeSceneChange();
PixelCrushers.SaveSystem.RecordSavedGameData();
After changing scenes:

Code: Select all

PixelCrushers.SaveSystem.ApplySavedGameData();
If you don't want to call those script methods, you can use the equivalent methods in the Save System Methods component.

Alternatively, you can use Quest Machine to change scenes, using SaveSystem.LoadScene(), Save System Methods > Load Scene, or a Scene Portal component.
hardercore
Posts: 9
Joined: Sun Aug 23, 2020 12:21 am

Re: ORK Integration (Spawning and the Quest Journal)

Post by hardercore »

Thanks, got it working. For anyone who encounters this in the future: I Setup a global ork event to call those methods anytime a scene fades in/out. Oddly enough, Ork couldn't find those static methods or the wrapper ones when I tried so I made my own wrapper for them and that worked.
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: ORK Integration (Spawning and the Quest Journal)

Post by Tony Li »

Thanks for sharing the tip!
Post Reply