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

Request: Armor to damage GUI triggers?

Status
Not open for further replies.
Level 7
Joined
Aug 11, 2010
Messages
270
Greetings... I'm pretty sure this is the right section if it's not please pardon my stupidity...

Anyway, i've been trying to experiment around with triggers trying to find a way to check armor values, much like you can with attributes (Strength, Agility, Intellect.) and turn the values into damage... I'm sure theres a way without using J.A.S.S, and any help would be greatly appreciated.

If you need a example to understand what i'm talking about I apologize, i've been awake for quite some time... So heres a example.

"Shield Bash: Deals x2 damage for every point of armor you've got and stuns the targeted unit for .06 seconds for every point of strength."


Just in case I did post this in the wrong section, again, I apologize for my stupidity and unavailability to read obvious things right in front of my eyes, I blame lack of sleep!
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
make the unit have millions of life. Deal millions of damage to it (in a form which reduces to armor) and then detect the percentag reduction that occured. Then use a rearangement of the armor formula to work out how much armor the unit has.

Thats it... Really.

You can ofcourse use smaller damage values but be aware that armor can not reduce damage below 1 (so really high armor values may be inaccurate if small damage is used). Use a damage sort which ignores armor type reduction to be most accurate.
 
make the unit have millions of life. Deal millions of damage to it (in a form which reduces to armor) and then detect the percentag reduction that occured. Then use a rearangement of the armor formula to work out how much armor the unit has.

Thats it... Really.

You can ofcourse use smaller damage values but be aware that armor can not reduce damage below 1 (so really high armor values may be inaccurate if small damage is used). Use a damage sort which ignores armor type reduction to be most accurate.

^This.

The only other way that I can think of is by using a database of the unit's armor values that you use, which might be a bit more efficient, but it requires JASS. (Or at least would be easier in it)
 
It also needs a lot of preloading data. More efficent yes but brings problems of its own.

and needs some more coding if you want to be able to change the armor value in-game... but if you choose to it this way, my Damage Reduction Table can help you, you just need to edit how ur using it...
 
Status
Not open for further replies.
Top