HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Getting a hero's Abilities into an array

06-29-2005, 07:29 PM#1
volatile
How do you get a Hero's abilities into an array?
The only option the GUI gives you is "target ability being cast" or you can set the variable to an ability that's in WE.

I want to get abilities ON THE FLY. Anyone know any way to do it? Wth JASS preferrably.
06-29-2005, 07:35 PM#2
Taur
no actual way to get the hero's ability if you mean I choose an archmage and the comp tells me: blizzard, brilliance, aura, etc.

but you can detect if a hero has an ability, e.g. I want to know if my paladin has thunder clap and it will return false. This can be found in boolean conditions in WEU
06-29-2005, 08:51 PM#3
Anitarf
Quote:
Originally Posted by darkhorde
but you can detect if a hero has an ability, e.g. I want to know if my paladin has thunder clap and it will return false. This can be found in boolean conditions in WEU
Or you can use the integer condition in standard WE "level of ability for unit". If it returns 0 then the unit doesn't have the ability.
06-30-2005, 12:02 AM#4
Ceo
Couldn't you increment through the integer codes for abilities checking if the hero has each one? This would only work with custom abilities though because they use a 'a###' numbering system rather than a 4 letter acronym for the spell.