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

[JASS] Checking Armor

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Yes, a custom made database can. All you need is so that when you pass it the unit type, it looks up a table and returns a armor type that you can process.

The disadvantage is all unit types have to be added to it on map initialization manually via trigged.

You could also try armor type detection via seing how differeint damage types behave on it, however this is more complex.

There are no natives which just return the type so a system has to be made.
 
Level 8
Joined
Aug 6, 2008
Messages
451
Daelin made some system for that.

You can also do it like I do it, and calculate it by using units Agility and unit:Armor ( UnitProperties value, its a great system )
 
Level 8
Joined
Aug 6, 2008
Messages
451
Even if you use Daelins system, I suggest you to check UnitProperties from wc3c.net.

That system makes things like calculating units attack speed or armor almost too easy.
 
Status
Not open for further replies.
Top