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

Shield that absorbs 1 hit.

Status
Not open for further replies.
Level 4
Joined
Apr 27, 2009
Messages
94
Alright fellows.
Yet again I am in need of your assistance ^_^.

What I am trying to make is a trigger, that gives a particular unit a chance to fully absorb the damage of 1 attack of a certain enemy.
So the start of the trigger would look something like this.

  • Unit - A unit is attacked
  • Attacked unit has buff equal to (random name)
  • (Random Integer number between 1 and 100) less than or equal to 50
This is as far as my mind goes. If anyone would have an idea how to create a shield like system that will absorb the full damage of this single hit, please illuminate me :D
Thanks in advance :3
 
Level 4
Joined
Nov 7, 2009
Messages
83
You can add mana shield on unit constantly, make mana shield consume no mana, remove animations and you'll nulify damage, then you can get the amount of damage made by the unit (assuming it will return the amount of damage that should be done without mana shield on and not 0) and randomize if the unit is damaged or not. I don't know if this works, I haven't tried it, I know at least that the unit with mana shield can be attacked because it's not invulnerable.
If you are only talking about normal damage and not spell damage you could use evasion.
Otherwise, if none of the above fits, you'll need the custom damage system.
 
Level 4
Joined
Apr 27, 2009
Messages
94
I would just use the harndened skin ability.... you can set it to nullify any damage amount and you can also modify the chance.. just look for it in the object editor.. its a unit skill, neutral and night elf has it.. though I don't know if it works for spells....

Ah I never knew you could add a procc percentage to hardened skin, that makes things a whole lot simpler, thanks ^^
 
Status
Not open for further replies.
Top