• 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.

Absorbtion / Counter Above Unit

Status
Not open for further replies.
Level 15
Joined
Mar 8, 2009
Messages
1,651
I remember seeing this in some map - there was an absorbtion shield spell, that created a row of yellow bars above the unit (below mana bar) and those bars would disappear proportionally to damag taken, as shield's absorbtion was depleted.

Is that possible to do with GUI or at least very simple JASS?
I wonder about both the absorbtion and the counter effect.
 
Level 12
Joined
Apr 16, 2010
Messages
584
Absorbtion and the counter effect could be easily done in GUI, for the first you'll need a damage detection system and for counter effect just floating text that says "||||||||||||". Lets say if shield is full the counter has 10 sticks (|), when it absorbed 50% of damage it has half of sticks, 5. you'll need just a simple formula to count the sticks and that's all.
 
Status
Not open for further replies.
Top