• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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