Kelv
TH.net Regular
- Reaction score
- 7
How have some of you find ways to recreate the wc3 system where you can choose to revive your fallen hero which creates an identical hero with all the same stats?
I was working on a system where I make the unit get down to 1 health, then make it hidden, and move it to a spawn location, unhide it, and set its health back to 100%.
Problem with my system is I think its still possible to kill a unit. I haven't found a perfect way to keep a unit constantly alive but at 1 health.
This is a system that seems to work most of the time. If I change the event to a unit takes fatal damage, and remove the condition, it doesn't work at all.
Apparently, this system worked in Wc3. I was searching on this site.
I was working on a system where I make the unit get down to 1 health, then make it hidden, and move it to a spawn location, unhide it, and set its health back to 100%.
Problem with my system is I think its still possible to kill a unit. I haven't found a perfect way to keep a unit constantly alive but at 1 health.
Trigger:
- Player Hero Dies
- Events
- Unit - Any Unit takes Fatal or Non-Fatal Any damage (from Any effects)
- Local Variables
- Conditions
- (Triggering damage amount) >= ((Triggering unit) Life (Current))
- (Unit type of (Triggering unit)) == Commander
- Actions
- Unit - Turn (Triggering unit) Invulnerable state On
- Unit - Turn (Triggering unit) Hidden state On
- Unit - Set (Triggering unit) Life to ((Triggering unit) Life (Default))
- Tech Tree - Allow the Barracks - Train Commander ability for player (Owner of (Triggering unit))
- Events
This is a system that seems to work most of the time. If I change the event to a unit takes fatal damage, and remove the condition, it doesn't work at all.
Apparently, this system worked in Wc3. I was searching on this site.