Page 1 of 1

Quest var increase on change Scene

Posted: Tue May 18, 2021 11:17 am
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!

Re: Quest var increase on change Scene

Posted: Tue May 18, 2021 11:37 am
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.

Re: Quest var increase on change Scene

Posted: Tue May 18, 2021 9:38 pm
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^)/

Re: Quest var increase on change Scene

Posted: Wed May 19, 2021 7:55 am
by Tony Li
Glad to help!