Is there some way to check if an ability is instant or should be cast upon a target, or a unit and such? I need this for my skillbar I'm currently constructing, so i know which type of order i should call upon the unit.
@emil604:
There's no way to check that, except if you store your abilites in a index variable. (1-50 being target ability and 50-100 can be instant ones)
That's just a random idea and maybe outdated but that's what I would have done in W3 editor.
hmm, since i don't need that many i could do something like that, or just give them an id. I have 2d array with the first dimension being the unit and the second beeing a skill, i could do the same but instead of storing an ability, i could store an interger or string, saying what type of spell it is. there will be roughly 4 cast spells/class, and maybe 5-6 classes in total i think, that's the plan atleast :)
Quote from progammer:
Who said its impossible ???
(Class of Ghost - Nuclear Strike) == Effect (Instant)
Remember to choose Effect (Instant) or other type from preset
What ? Oh god, this editor has so many functions I feel old.
woah thanks! Dunno how i could have missed that one, thought i looked through the list a billion times, thanks! And a perfect place to use Switch cases aswell :D
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi
Is there some way to check if an ability is instant or should be cast upon a target, or a unit and such? I need this for my skillbar I'm currently constructing, so i know which type of order i should call upon the unit.
@Yaos01: Go
hmm, since i don't need that many i could do something like that, or just give them an id. I have 2d array with the first dimension being the unit and the second beeing a skill, i could do the same but instead of storing an ability, i could store an interger or string, saying what type of spell it is. there will be roughly 4 cast spells/class, and maybe 5-6 classes in total i think, that's the plan atleast :)
but thanks for the idea :)
Who said its impossible ???
Remember to choose Effect (Instant) or other type from preset
@progammer: Go
woah thanks! Dunno how i could have missed that one, thought i looked through the list a billion times, thanks! And a perfect place to use Switch cases aswell :D