HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How Do You Check To See If An Ability Is On A Unit?

01-03-2004, 04:46 PM#1
Ballsacian1-EoA
Basically I want to store some information on a unit based off of what ability is on him at that time. Is there a way to figure out what ability is on him? A pratical way i should say.
01-03-2004, 07:35 PM#2
Bulletcatcher
My suggestion would be to modify the unit custom values depending on what abilities you give the units, and then check those.
01-03-2004, 07:53 PM#3
Vexorian
You can use Unit - level of ability , It returns 0 when there the unit doesn't have that ability
01-04-2004, 01:11 AM#4
Ballsacian1-EoA
I can't use custom value because i'm allready using it. And the ability lvl can't really be used because its more than one ability.
01-04-2004, 10:01 PM#5
Vexorian
Quote:
Originally posted by Ballsacian1-EoA
I can't use custom value because i'm allready using it. And the ability lvl can't really be used because its more than one ability.


You can use level (Did you even check that trigger call?)
01-04-2004, 10:40 PM#6
DaKaN
I think you misunderstood what Vex said. You can use that trigger to check the level of a defined ability. If it has the ability, it will return a value > 0. If it doesnt, 0 will be returned.

So just imput the abilities you want to check for in your function.
01-04-2004, 11:23 PM#7
Ballsacian1-EoA
Ok i get what your saying sorry i was assuming what lvl would say as i wasn't on my WE at that time. Thankz for your help i will use that.
01-05-2004, 05:43 AM#8
DaKaN
heh, np