Quest var increase on change Scene

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Kamotachi
Posts: 44
Joined: Fri Nov 29, 2019 9:03 pm

Quest var increase on change Scene

Post by Kamotachi »

Hi there!
I'm using again this excelent Dialogue system! ^^

I'm having some difficulties with GameObjects that have "DialogueTrigger" and "Increment On Destroy" components.

There are objects that you have to collect to complete a quest. The point is that when you change the scene, (if you have not collected these objects), the variable is increased as if you had collected them.

I think maybe it's because when changing the scene, the objects are destroyed, and since they have the script of "Increment On Destroy", it is increased. ( I don't know if that's it, because I set it to "increment on: disable")

Is there a simple way to fix this?

**I also take the opportunity to ask something else.
When you return to a scene where you have already collected the objects, they reappear. Do I fix it myself using code (it's not a problem) or is there something in the plugin to keep it disabled? Just asking to take advantage of code! :P


Thanks in adavance!
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest var increase on change Scene

Post by Tony Li »

Hi,

Use the save system. To remember when an object has been picked up, add an Active Saver or Destructible Saver component to it.

Make sure to change scenes using any of these methods: Changing Scenes.
Kamotachi
Posts: 44
Joined: Fri Nov 29, 2019 9:03 pm

Re: Quest var increase on change Scene

Post by Kamotachi »

Tony Li wrote: Tue May 18, 2021 11:37 am Hi,

Use the save system. To remember when an object has been picked up, add an Active Saver or Destructible Saver component to it.

Make sure to change scenes using any of these methods: Changing Scenes.
Thank you! Solved :!: :!: :!: \(^o^)/
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Quest var increase on change Scene

Post by Tony Li »

Glad to help!
Post Reply