Absorbtion / Counter Above Unit

Status
Not open for further replies.
Level 15
Joined
Mar 8, 2009
Messages
1,644
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.
 
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.
Back
Top