Hey guys, need help implementing a mechanic in my game kinda just seeing if you guys have any ideas on how I would implement this.
When my Player defeats enemies they collect "Essence" this essence is stored in a Variable they can then later use to upgrade their character and level up and such. Now if they are defeated they drop all their essence they have collected. I use the Events and Move Core to Spawn an Event where they lost and transport them back to a safe location. The spawned can restore their dropped essence if they can get back to it and interact with it, then it will despawn itself. Here is the Event:
All of this works great so far, my issue is if the player loses again I want this spawned event to de-spawn, no matter what map the current player is on. I'm thinking this could be done with a global switch and a parallel common event but if the switch turns back on whats to stop the old spawned events from turning back on. Just kinda stuck on how to solve this issue as every de-spawn plug in command has to be done on the same map as the spawned event. Any ideas would be greatly appreciated.
When my Player defeats enemies they collect "Essence" this essence is stored in a Variable they can then later use to upgrade their character and level up and such. Now if they are defeated they drop all their essence they have collected. I use the Events and Move Core to Spawn an Event where they lost and transport them back to a safe location. The spawned can restore their dropped essence if they can get back to it and interact with it, then it will despawn itself. Here is the Event:
All of this works great so far, my issue is if the player loses again I want this spawned event to de-spawn, no matter what map the current player is on. I'm thinking this could be done with a global switch and a parallel common event but if the switch turns back on whats to stop the old spawned events from turning back on. Just kinda stuck on how to solve this issue as every de-spawn plug in command has to be done on the same map as the spawned event. Any ideas would be greatly appreciated.