- Joined
- Dec 25, 2014
- Messages
- 109
Usually, to see if a unit has a spesific ability or not, we're using trigger like 'Level of Thunder Clap greater than or equal to 0'.
Here, i wonder how to check does a unit have ANY ability or not. I believe it has something to do with ability id. In my mind, we'll do something like check the ID from 'A000' to 'ZZZZ' (Correct me, please), which is very painful and i don't know how to code it but i'm sure they has to be a string.
Since there is no way in GUI to check and convert those string id, we'll do it in JASS/vJASS/LUA, then i found these natives :
It say that isn't currently woking correctly, last time i test, it's absolutely do nothing. Dunno if its my code or no.
Sorry i can't explain correctly, evidently english is still bad for me. But i think you all are understand what i mean.
Well, any thoughts how?
Edit : It's more like we're checking every abilities the unit have.
Here, i wonder how to check does a unit have ANY ability or not. I believe it has something to do with ability id. In my mind, we'll do something like check the ID from 'A000' to 'ZZZZ' (Correct me, please), which is very painful and i don't know how to code it but i'm sure they has to be a string.
Since there is no way in GUI to check and convert those string id, we'll do it in JASS/vJASS/LUA, then i found these natives :
JASS:
// Not currently working correctly...
constant native AbilityId takes string abilityIdString returns integer
constant native AbilityId2String takes integer abilityId returns string
Sorry i can't explain correctly, evidently english is still bad for me. But i think you all are understand what i mean.
Well, any thoughts how?
Edit : It's more like we're checking every abilities the unit have.
Last edited: