• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Damage Absorb GUI

Status
Not open for further replies.
Level 9
Joined
Oct 2, 2008
Messages
405
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