I have a Hero Defense map in the works and I've just got the Hero Revival trigger to work. When the Hero reaches a very low amount of health - in this case, 10% - it is hidden, replaced by clone of that same unit which is immediately killed and the hero reappears ready for combat a few seconds later. Essentially, I've created the illusion that the hero dies. There is only one problem; If the hero takes damage that equals greater than the hero's 10% health, it actually is killed and the trigger doesn't work.
Does anyone know if there is a way to set the minimum amount of health to 1 - making it unable to die - without using triggers?
Add a condition into the trigger that hides the unit that checks if unit damage is collateral, and if it is, just revive and hide the unit, then set the unit's HP to any value you want.
@Nashadun: Adding Valerian hero incapacitation won't work because if the unit takes more damage then it has life, the unit will die, and you can't add behaviors to a dead unit.
Hello!
I have a Hero Defense map in the works and I've just got the Hero Revival trigger to work. When the Hero reaches a very low amount of health - in this case, 10% - it is hidden, replaced by clone of that same unit which is immediately killed and the hero reappears ready for combat a few seconds later. Essentially, I've created the illusion that the hero dies. There is only one problem; If the hero takes damage that equals greater than the hero's 10% health, it actually is killed and the trigger doesn't work.
Does anyone know if there is a way to set the minimum amount of health to 1 - making it unable to die - without using triggers?
Use the Behavior Valerian 05a - Hero Death Prevention.
Or just revive the Hero instead of faking its death while hiding it.
Add a condition into the trigger that hides the unit that checks if unit damage is collateral, and if it is, just revive and hide the unit, then set the unit's HP to any value you want.
@Nashadun: Adding Valerian hero incapacitation won't work because if the unit takes more damage then it has life, the unit will die, and you can't add behaviors to a dead unit.
Thank you!
The Valerian behavior was exactly what I was looking for. Added it to all of my heroes and it works perfectly.