• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Damage Absorb GUI

Status
Not open for further replies.
Level 9
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
 
Last edited by a moderator:
Status
Not open for further replies.
Top