- Joined
- Mar 15, 2007
- Messages
- 230
I have a quick question. I have three triggers for this ability I'm making called Condemn. What it does is the caster channels for a few seconds before creating a unit that thunderclaps. I have one trigger with "starts the effect of an ability" where I get the location, and a second "finishes casting an ability" where the dummy unit is summoned. It works fine, but I don't know how to remove the location.
So, here are my triggers:
So, here are my triggers:
-
Get Condemn Point
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Condemn (Inquisitor)
-
Actions
- Set VariableSet UDex = (Custom value of (Casting unit))
- Set VariableSet Condemn_Point[UDex] = (Target point of ability being cast)
-
Events
-
Condemn Damage
-
Events
- Unit - A unit Finishes casting an ability
-
Conditions
- (Ability being cast) Equal to Condemn (Inquisitor)
-
Actions
- Set VariableSet UDex = (Custom value of (Casting unit))
- Unit - Create 1 Condemn Dummy for (Owner of (Casting unit)) at Condemn_Point[UDex] facing Default building facing degrees
- Unit - Set level of Condemn dummy (Inquisitor) for (Last created unit) to (Level of Condemn (Inquisitor) for (Casting unit))
- Unit - Order (Last created unit) to Human Mountain King - Thunder Clap.
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- -------- Add Units to Fire Nova Group --------
-
Unit Group - Pick every unit in (Units within 150.00 of Condemn_Point[UDex].) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) belongs to an enemy of (Owner of (Casting unit)).) Equal to True
- ((Picked unit) is A structure) Equal to False
- ((Picked unit) is alive) Equal to True
- ((Picked unit) is hidden) Equal to False
-
Then - Actions
- Set VariableSet UDex = (Custom value of (Picked unit))
- Set VariableSet Condemn_Caster[UDex] = (Casting unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) is in Condemn_Group.) Equal to False
-
Then - Actions
- Unit Group - Add (Picked unit) to Condemn_Group
- Else - Actions
-
If - Conditions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Condemn DoT <gen> is on) Equal to False
-
Then - Actions
- Trigger - Turn on Condemn DoT <gen>
- Else - Actions
-
If - Conditions
-
Events