would any one mine checking for leaks? i think i did it properly
Trigger:
- create
- Events
- Time - Every 2.00 seconds of game time
- Conditions
- Actions
- -------- Team 1 --------
- -------- Red/Purple --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Or - Any (Conditions) are true
- Conditions
- (Player 1 (Red) slot status) Equal to Is playing
- (Player 1 (Red) controller) Equal to Computer
- Conditions
- Or - Any (Conditions) are true
- Then - Actions
- Set TempPointunit[1] = (Player 4 (Purple) start location)
- Unit - Create 1 Toy Soldier for Player 4 (Purple) at TempPointunit[1] facing Default building facing degrees
- Unit - Order (Last created unit) to Attack-Move To (Center of Top Target <gen>)
- Custom script: call RemoveLocation (udg_TempPointunit[1])
- Else - Actions
- Do nothing
- If - Conditions
- -------- Blue/Yellow --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Or - Any (Conditions) are true
- Conditions
- (Player 2 (Blue) slot status) Equal to Is playing
- (Player 2 (Blue) controller) Equal to Computer
- Conditions
- Or - Any (Conditions) are true
- Then - Actions
- Set TempPointunit[2] = (Player 5 (Yellow) start location)
- Unit - Create 1 Toy Soldier for Player 5 (Yellow) at TempPointunit[2] facing Default building facing degrees
- Unit - Order (Last created unit) to Attack-Move To (Center of Top Target <gen>)
- Custom script: call RemoveLocation (udg_TempPointunit[2])
- Else - Actions
- Do nothing
- If - Conditions
- -------- Teal/Orange --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Or - Any (Conditions) are true
- Conditions
- (Player 3 (Teal) slot status) Equal to Is playing
- (Player 3 (Teal) controller) Equal to Computer
- Conditions
- Or - Any (Conditions) are true
- Then - Actions
- Set TempPointunit[3] = (Player 6 (Orange) start location)
- Unit - Create 1 Toy Soldier for Player 6 (Orange) at TempPointunit[3] facing Default building facing degrees
- Unit - Order (Last created unit) to Attack-Move To (Center of Top Target <gen>)
- Custom script: call RemoveLocation (udg_TempPointunit[3])
- Else - Actions
- Do nothing
- If - Conditions
- -------- Team 2 --------
- -------- Green/Light Blue --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Or - Any (Conditions) are true
- Conditions
- (Player 7 (Green) slot status) Equal to Is playing
- (Player 7 (Green) controller) Equal to Computer
- Conditions
- Or - Any (Conditions) are true
- Then - Actions
- Set TempPointunit[4] = (Player 10 (Light Blue) start location)
- Unit - Create 1 Toy Soldier for Player 10 (Light Blue) at TempPointunit[4] facing Default building facing degrees
- Unit - Order (Last created unit) to Attack-Move To (Center of Bottom Target <gen>)
- Custom script: call RemoveLocation (udg_TempPointunit[4])
- Else - Actions
- Do nothing
- If - Conditions
- -------- Pink/Dark Green --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Or - Any (Conditions) are true
- Conditions
- (Player 8 (Pink) slot status) Equal to Is playing
- (Player 8 (Pink) controller) Equal to Computer
- Conditions
- Or - Any (Conditions) are true
- Then - Actions
- Set TempPointunit[5] = (Player 11 (Dark Green) start location)
- Unit - Create 1 Toy Soldier for Player 11 (Dark Green) at TempPointunit[5] facing Default building facing degrees
- Unit - Order (Last created unit) to Attack-Move To (Center of Bottom Target <gen>)
- Custom script: call RemoveLocation (udg_TempPointunit[5])
- Else - Actions
- Do nothing
- If - Conditions
- -------- Gray/ Brown --------
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Or - Any (Conditions) are true
- Conditions
- (Player 9 (Gray) slot status) Equal to Is playing
- (Player 9 (Gray) controller) Equal to Computer
- Conditions
- Or - Any (Conditions) are true
- Then - Actions
- Set TempPointunit[6] = (Player 12 (Brown) start location)
- Unit - Create 1 Toy Soldier for Player 12 (Brown) at TempPointunit[6] facing Default building facing degrees
- Unit - Order (Last created unit) to Attack-Move To (Center of Bottom Target <gen>)
- Custom script: call RemoveLocation (udg_TempPointunit[6])
- Else - Actions
- Do nothing
- If - Conditions
- Events