- Joined
- May 7, 2016
- Messages
- 38
Ok so for this trigger i have this events
So i first tried this
So now i have 0 idea why this is not working
-
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Picked unit)) Equal to Scout Tower
-
-
Then - Actions
-
Unit Group - Add (Picked unit) to T_US_TR_Towers
-
-
Else - Actions
-
-
-
-
Unit Group - Pick every unit in T_US_TR_Towers and do (Actions)
-
Loop - Actions
-
Trigger - Add to Tower Range Selection <gen> the event (Unit - (Picked unit) Is selected)
-
-
So i first tried this
-
For each (Integer A) from 1 to 4, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in (Units currently selected by (Player((Integer A))))) Equal to 1
-
-
Then - Actions
-
Set T_US_TR_OneSelect[(Integer A)] = True
-
Set T_US_TR_Unit[(Integer A)] = (Triggering unit) <--------------------Marked
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of T_US_TR_Unit[(Integer A)]) Equal to Scout Tower
-
-
Then - Actions
-
Set T_US_TR_Type[(Integer A)] = 1
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of T_US_TR_Unit[(Integer A)]) Equal to Guard Tower
-
-
Then - Actions
-
Set T_US_TR_Type[(Integer A)] = 2
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of T_US_TR_Unit[(Integer A)]) Equal to Cannon Tower
-
-
Then - Actions
-
Set T_US_TR_Type[(Integer A)] = 3
-
-
Else - Actions
-
-
-
-
-
-
-
Else - Actions
-
Set T_US_TR_OneSelect[(Integer A)] = False
-
-
-
-
-
For each (Integer A) from 1 to 4, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in (Units currently selected by (Player((Integer A))))) Equal to 1
-
-
Then - Actions
-
Set T_US_TR_OneSelect[(Integer A)] = True
-
Unit Group - Pick every unit in T_US_TR_Towers and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is selected by (Player((Integer A)))) Equal to True
-
-
Then - Actions
-
Set T_US_TR_Unit[(Integer A)] = (Picked unit) <--------------------Marked
-
-
Else - Actions
-
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of T_US_TR_Unit[(Integer A)]) Equal to Scout Tower
-
-
Then - Actions
-
Set T_US_TR_Type[(Integer A)] = 1
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of T_US_TR_Unit[(Integer A)]) Equal to Guard Tower
-
-
Then - Actions
-
Set T_US_TR_Type[(Integer A)] = 2
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of T_US_TR_Unit[(Integer A)]) Equal to Cannon Tower
-
-
Then - Actions
-
Set T_US_TR_Type[(Integer A)] = 3
-
-
Else - Actions
-
-
-
-
-
-
-
Else - Actions
-
Set T_US_TR_OneSelect[(Integer A)] = False
-
-
-
-
-
Game - Display to (All players) the text: Check
So now i have 0 idea why this is not working
Last edited: