• 🏆 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!

Absorbtion / Counter Above Unit

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