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

Passive bonusdamage depending on armor

Status
Not open for further replies.
Level 1
Joined
Jun 29, 2007
Messages
2
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
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
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.
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
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.
Top