Quest var increase on change Scene
Posted: Tue May 18, 2021 11:17 am
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!
Thanks in adavance!
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!
Thanks in adavance!