- Joined
- Oct 2, 2008
- Messages
- 406
Will this trigger work?
Event - Unit(Hero) takes damage
Condition - Unit(Hero) has buff Shield
Action - set life of Unit(Hero) = Life of Unit(Hero) + damahe taken
- set Variable(DamakeThatCanBeAbsorbedLeft) = DmgThatCanBeAbsorbedLeft) - damage taken
- if/then/else
- if DamageThatCanBeTakenLeft is equal or lesser than zero
- then - Remove Shield buff from Unit(Hero)
I tryed something like this before but it didnt work. It was little diffrent but still...
And I know it should work only against non-fatal damage (one that dosen't kill you).
+rep for help
DamageThatCanBeAbsorbedLeft is intriger how much damage can Shield absorb
Event - Unit(Hero) takes damage
Condition - Unit(Hero) has buff Shield
Action - set life of Unit(Hero) = Life of Unit(Hero) + damahe taken
- set Variable(DamakeThatCanBeAbsorbedLeft) = DmgThatCanBeAbsorbedLeft) - damage taken
- if/then/else
- if DamageThatCanBeTakenLeft is equal or lesser than zero
- then - Remove Shield buff from Unit(Hero)
I tryed something like this before but it didnt work. It was little diffrent but still...
And I know it should work only against non-fatal damage (one that dosen't kill you).
+rep for help
DamageThatCanBeAbsorbedLeft is intriger how much damage can Shield absorb
Last edited by a moderator: