• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

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