HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to find out the hero's armor

04-24-2007, 07:57 PM#1
PsychoPif
I'd like to make a spell that gives bonus damage based on how much armor my hero has at the time. But I can't find a way to get that information. I could probably compute it from the hero agi, item and buffs, but it seems to me like it's gonna be complex, require a lot of ressources and be very hard to keep updated since every new item or skill will have to be known to the algorythme.

Please tell me there is a function that return current hero's armor :)

P.S. I'll probably be using other stats too like attack type, armor type, etc. so if there is a set of function to find out those too, it's going to save me another question later :)
04-24-2007, 08:13 PM#2
blu_da_noob
http://www.wc3campaigns.net/showthread.php?t=85631

You can try searching for stuff in future. Attack type and armour type cannot be determined by a function.
04-24-2007, 10:30 PM#3
PsychoPif
I stand corrected, I looked all over the Jass Manual and did'nt find any :S

Note to self; Must not forget to search the forum first
04-25-2007, 01:20 AM#4
Szythe
Edit: I need to learn how to read.