Okay so what I want to do is the following:
I've got a talent tree where skillpoints are put inside a hashtable that shows for example 1-3 skillpoints spent on a specific talent.
The problem is I need to link this information to the RAW codes of these talents (abilites).
Now what I was thinking: what if I made a dummy unit cast the ability in which someone increased a point in, then catch the event of the ability being cast and simply save that inside the hashtable.
The thing is, I need to be sure that the ability can be cast even though it doesn't have a target.
Some abilities have a specific target like mechanical units only.
How would I go around this so that I'm abled to catch only the casting of the ability? (Not starts the effect).
Is there a way of doing this?
Is there a way of checking wether an ability has a specific type of target allowed through some native perhaps?
I've got a talent tree where skillpoints are put inside a hashtable that shows for example 1-3 skillpoints spent on a specific talent.
The problem is I need to link this information to the RAW codes of these talents (abilites).
Now what I was thinking: what if I made a dummy unit cast the ability in which someone increased a point in, then catch the event of the ability being cast and simply save that inside the hashtable.
The thing is, I need to be sure that the ability can be cast even though it doesn't have a target.
Some abilities have a specific target like mechanical units only.
How would I go around this so that I'm abled to catch only the casting of the ability? (Not starts the effect).
Is there a way of doing this?
Is there a way of checking wether an ability has a specific type of target allowed through some native perhaps?