Hello,
I want to revive my hero exaclty the same unit when he dies. For exemple, if he have 1 behavior, i want it to be after his death. I want all items in his inventory, and all the spells that were in cooldowns still.
For now, I made a trigger that respawn a Hero, but there is 2 major problems : Cooldowns are refreshed, and Items with stacks are at 1 instead of the real number of stacks. For the behaviors, I've fixed it so it's ok.
The "Revive Hero" action doesn't work cause I want it to respawn after a delay.
Hello, I want to revive my hero exaclty the same unit when he dies. For exemple, if he have 1 behavior, i want it to be after his death. I want all items in his inventory, and all the spells that were in cooldowns still. For now, I made a trigger that respawn a Hero, but there is 2 major problems : Cooldowns are refreshed, and Items with stacks are at 1 instead of the real number of stacks. For the behaviors, I've fixed it so it's ok.
The "Revive Hero" action doesn't work cause I want it to respawn after a delay.
Any idea ?
@VisionElf: Go
Here's a simple system that uses no globals and does everything you ask for, it's easily modifiable too!
In the data editor make sure you set your hero unit Death time to "-1" (This will make it so your hero never clears from game memory.)
Nice ! Thanks a lot ! I only used the -1 death time, I didn't know that :O