- Joined
- Apr 10, 2010
- Messages
- 2,789
I just need to ask some help for this trigger. Basically a dialog menu pops up after you click attack and then you select the targets which are units 1,2 and 3 for 3 units, units 1 and 2 for 2 units and unit 1 for a single unit.
BattleTarget_Forest is just basically a unit.
-
Button Click Attack Target
-
Events
-
Dialog - A dialog button is clicked for AttackDialog
-
-
Conditions
-
Actions
-
Set ForestWarpLoc[1] = (Center of Unit1Forest <gen>)
-
Set ForestWarpLoc[2] = (Center of Unit2Forest <gen>)
-
Set ForestWarpLoc[3] = (Center of Unit3Forest <gen>)
-
Set ForestWarpLoc[4] = (Center of Unit4Forest <gen>)
-
Set ForestWarpLoc[5] = (Center of Unit5Forest <gen>)
-
Set ForestWarpLoc[6] = (Center of BossForest <gen>)
-
Set ForestWarpLoc[7] = (Center of ForestSpawn <gen>)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Clicked dialog button) Equal to DialogButton[1]
-
-
Then - Actions
-
Set DistanceAttack = (Distance between ForestWarpLoc[7] and ForestWarpLoc[1])
-
Unit - Order Mountain King 0009 <gen> to Move To ForestWarpLoc[1]
-
Wait until (DistanceAttack Less than or equal to 100.00), checking every 1.00 seconds
-
Unit - Order Mountain King 0009 <gen> to Stop
-
Unit - Order Mountain King 0009 <gen> to Attack BattleTarget_Forest[1]
-
Wait 0.50 seconds
-
Unit - Order Mountain King 0009 <gen> to Stop
-
Unit - Order Mountain King 0009 <gen> to Move To ForestWarpLoc[7]
-
Unit - Make Mountain King 0009 <gen> face ForestWarpLoc[6] over 0.00 seconds
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Clicked dialog button) Equal to DialogButton[2]
-
-
Then - Actions
-
Set DistanceAttack = (Distance between ForestWarpLoc[7] and ForestWarpLoc[2])
-
Unit - Order Mountain King 0009 <gen> to Move To ForestWarpLoc[2]
-
Wait until (DistanceAttack Less than or equal to 100.00), checking every 1.00 seconds
-
Unit - Order Mountain King 0009 <gen> to Stop
-
Unit - Order Mountain King 0009 <gen> to Attack BattleTarget_Forest[2]
-
Wait 0.50 seconds
-
Unit - Order Mountain King 0009 <gen> to Stop
-
Unit - Order Mountain King 0009 <gen> to Move To ForestWarpLoc[7]
-
Unit - Make Mountain King 0009 <gen> face ForestWarpLoc[6] over 0.00 seconds
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Clicked dialog button) Equal to DialogButton[3]
-
-
Then - Actions
-
Set DistanceAttack = (Distance between ForestWarpLoc[7] and ForestWarpLoc[3])
-
Unit - Order Mountain King 0009 <gen> to Move To ForestWarpLoc[3]
-
Wait until (DistanceAttack Less than or equal to 100.00), checking every 1.00 seconds
-
Unit - Order Mountain King 0009 <gen> to Stop
-
Unit - Order Mountain King 0009 <gen> to Attack BattleTarget_Forest[3]
-
Wait 0.50 seconds
-
Unit - Order Mountain King 0009 <gen> to Stop
-
Unit - Order Mountain King 0009 <gen> to Move To ForestWarpLoc[7]
-
Unit - Make Mountain King 0009 <gen> face ForestWarpLoc[6] over 0.00 seconds
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Clicked dialog button) Equal to DialogButton[4]
-
-
Then - Actions
-
Set DistanceAttack = (Distance between ForestWarpLoc[7] and ForestWarpLoc[4])
-
Unit - Order Mountain King 0009 <gen> to Move To ForestWarpLoc[4]
-
Wait until (DistanceAttack Less than or equal to 100.00), checking every 1.00 seconds
-
Unit - Order Mountain King 0009 <gen> to Stop
-
Unit - Order Mountain King 0009 <gen> to Attack BattleTarget_Forest[4]
-
Wait 0.50 seconds
-
Unit - Order Mountain King 0009 <gen> to Stop
-
Unit - Order Mountain King 0009 <gen> to Move To ForestWarpLoc[7]
-
Unit - Make Mountain King 0009 <gen> face ForestWarpLoc[6] over 0.00 seconds
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Clicked dialog button) Equal to DialogButton[5]
-
-
Then - Actions
-
Set DistanceAttack = (Distance between ForestWarpLoc[7] and ForestWarpLoc[5])
-
Unit - Order Mountain King 0009 <gen> to Move To ForestWarpLoc[5]
-
Wait until (DistanceAttack Less than or equal to 100.00), checking every 1.00 seconds
-
Unit - Order Mountain King 0009 <gen> to Stop
-
Unit - Order Mountain King 0009 <gen> to Attack BattleTarget_Forest[5]
-
Wait 0.50 seconds
-
Unit - Order Mountain King 0009 <gen> to Stop
-
Unit - Order Mountain King 0009 <gen> to Move To ForestWarpLoc[7]
-
Unit - Make Mountain King 0009 <gen> face ForestWarpLoc[6] over 0.00 seconds
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Clicked dialog button) Equal to DialogButton[6]
-
-
Then - Actions
-
Set DistanceAttack = (Distance between ForestWarpLoc[7] and ForestWarpLoc[6])
-
Unit - Order Mountain King 0009 <gen> to Move To ForestWarpLoc[6]
-
Wait until (DistanceAttack Less than or equal to 100.00), checking every 1.00 seconds
-
Unit - Order Mountain King 0009 <gen> to Stop
-
Unit - Order Mountain King 0009 <gen> to Attack BattleTarget_Forest[6]
-
Wait 0.50 seconds
-
Unit - Order Mountain King 0009 <gen> to Stop
-
Unit - Order Mountain King 0009 <gen> to Move To ForestWarpLoc[7]
-
Unit - Make Mountain King 0009 <gen> face ForestWarpLoc[6] over 0.00 seconds
-
-
Else - Actions
-
-
-
-
-
-
-
-
-
-
-
-
Custom script: call RemoveLocation (udg_ForestWarpLoc[1])
-
Custom script: call RemoveLocation (udg_ForestWarpLoc[2])
-
Custom script: call RemoveLocation (udg_ForestWarpLoc[3])
-
Custom script: call RemoveLocation (udg_ForestWarpLoc[4])
-
Custom script: call RemoveLocation (udg_ForestWarpLoc[5])
-
Custom script: call RemoveLocation (udg_ForestWarpLoc[6])
-
Custom script: call RemoveLocation (udg_ForestWarpLoc[7])
-
-
BattleTarget_Forest is just basically a unit.