- Joined
- Nov 18, 2007
- Messages
- 48
I made this but I'm not sure if it's 100% correct, is there an easier way to check if a skill is target/no target/point ?
for some reason thunder clap has a target unit but invalid point while some other no target skills don't have either target or point, the target skills I tested have both target and point so I arranged the triggers this way so that it's more correct. I only tested a few abilities though. I also could check with orders but it seems a bit too excessive.
I know that the location leaks, I'm gonna turn it into jass later so if there is a relevant jass only function please tell me.
for some reason thunder clap has a target unit but invalid point while some other no target skills don't have either target or point, the target skills I tested have both target and point so I arranged the triggers this way so that it's more correct. I only tested a few abilities though. I also could check with orders but it seems a bit too excessive.
I know that the location leaks, I'm gonna turn it into jass later so if there is a relevant jass only function please tell me.
-
Starting Trigger
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-

Actions
-


Set p = (Target point of ability being cast)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(X of p) Not equal to 0.00
-




(Y of p) Not equal to 0.00
-
-



Then - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Target unit of ability being cast) Not equal to No unit
-
-





Then - Actions
-






Game - Display to (All players) the text: target
-
-





Else - Actions
-






Game - Display to (All players) the text: point
-
-
-
-



Else - Actions
-




Game - Display to (All players) the text: not point
-
-
-
-




