• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Passive bonusdamage depending on armor

Status
Not open for further replies.

Bjorrrn

B

Bjorrrn

I'm working on a hero and i'm trying to make a skill that deals bonusdamage on each attack, Depending on the difference in armor between attacker and attacked unit. I've been looking through the variables but i can't find anything about armor...

I make my abilities in GUI/triggers.

all help is appreciated. Thanks
 
An armor detection system is simple, You basicly need to deal X damage to the unit of type armor reduced but full damage and then read the targets damage it received and you get a reduction. You can then work out the armor using a formula from the reduction ammount. Unfortunatly I can not post the script from that map in out handy JASS section, stupid WC3C being not allowing DL from non registered users.

Well anyway, the attack detections system is the difficult thing you need to worry about.
 
Yes, that would bug out.

And I was telling you that about AotZ on BNet, donut, but it had almost no chance to happen, and it only worked vs a certain teammate character, and a certain enemy character that also had almost no chance to activate it :P (but that's off-topic)

But it's the only way, save storing every unit's armor to their type/the individual unit
 
Status
Not open for further replies.
Back
Top