Anti Block Unit
Events
Unit - Any Unit construction progress is Started
Local Variables
Point of Unit = (Position of (Triggering progress unit)) <point>
Conditions
(Controller of player (Triggering player)) == User
Actions
------- For player 1 and 5.
General - If (Conditions) then do (Actions) else do (Actions)
If
And
Conditions
(Pathing cost between Mobs Spawn 01 and Final Order Spot Left) == 65536
Or
Conditions
((Triggering progress unit) is in P1BuildArea) == true
((Triggering progress unit) is in P5BuildArea) == true
Then
UI - Display "You blocked... your tower was refun..." for (Player group((Triggering player))) to Subtitle area
Player - Modify player (Triggering player) Minerals: Add (Minerals cost of (Unit type of (Triggering progress unit)))
Unit - Remove (Triggering progress unit) from the game
Unit Group - Pick each unit in (Any units in (Region(Point of Unit, 3.5)) owned by player 15 matching Required: Ground; Excluded: Air, Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Order (Picked unit) to ( Move targeting Final Order Spot Left) (Replace Existing Orders)
Else
------- For player 2.
General - If (Conditions) then do (Actions) else do (Actions)
If
And
Conditions
(Pathing cost between Mobs Spawn 02 and Final Order Spot Left) == 65536
((Triggering progress unit) is in P2BuildArea) == true
Then
UI - Display "You blocked... your tower was refun..." for (Player group((Triggering player))) to Subtitle area
Player - Modify player (Triggering player) Minerals: Add (Minerals cost of (Unit type of (Triggering progress unit)))
Unit - Remove (Triggering progress unit) from the game
Unit Group - Pick each unit in (Any units in (Region(Point of Unit, 3.5)) owned by player 15 matching Required: Ground; Excluded: Air, Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Order (Picked unit) to ( Move targeting Final Order Spot Left) (Replace Existing Orders)
Else
------- For player 3 and 6
General - If (Conditions) then do (Actions) else do (Actions)
If
And
Conditions
(Pathing cost between Mobs Spawn 03 and Final Order Spot Right) == 65536
Or
Conditions
((Triggering progress unit) is in P3BuildArea) == true
((Triggering progress unit) is in P6BuildArea) == true
Then
UI - Display "You blocked... your tower was refun..." for (Player group((Triggering player))) to Subtitle area
Player - Modify player (Triggering player) Minerals: Add (Minerals cost of (Unit type of (Triggering progress unit)))
Unit - Remove (Triggering progress unit) from the game
Unit Group - Pick each unit in (Any units in (Region(Point of Unit, 3.5)) owned by player 15 matching Required: Ground; Excluded: Air, Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Order (Picked unit) to ( Move targeting Final Order Spot Right) (Replace Existing Orders)
Else
------- For player 4.
General - If (Conditions) then do (Actions) else do (Actions)
If
And
Conditions
(Pathing cost between Mobs Spawn 04 and Final Order Spot Right) == 65536
((Triggering progress unit) is in P4BuildArea) == true
Then
UI - Display "You blocked... your tower was refun..." for (Player group((Triggering player))) to Subtitle area
Player - Modify player (Triggering player) Minerals: Add (Minerals cost of (Unit type of (Triggering progress unit)))
Unit - Remove (Triggering progress unit) from the game
Unit Group - Pick each unit in (Any units in (Region(Point of Unit, 3.5)) owned by player 15 matching Required: Ground; Excluded: Air, Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Order (Picked unit) to ( Move targeting Final Order Spot Right) (Replace Existing Orders)
Else</point>
0
Anti Block Unit
Events
Unit - Any Unit construction progress is Started
Local Variables
Point of Unit = (Position of (Triggering progress unit)) <point>
Conditions
(Controller of player (Triggering player)) == User
Actions
------- For player 1 and 5.
General - If (Conditions) then do (Actions) else do (Actions)
If
And
Conditions
(Pathing cost between Mobs Spawn 01 and Final Order Spot Left) == 65536
Or
Conditions
((Triggering progress unit) is in P1BuildArea) == true
((Triggering progress unit) is in P5BuildArea) == true
Then
UI - Display "You blocked... your tower was refun..." for (Player group((Triggering player))) to Subtitle area
Player - Modify player (Triggering player) Minerals: Add (Minerals cost of (Unit type of (Triggering progress unit)))
Unit - Remove (Triggering progress unit) from the game
Unit Group - Pick each unit in (Any units in (Region(Point of Unit, 3.5)) owned by player 15 matching Required: Ground; Excluded: Air, Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Order (Picked unit) to ( Move targeting Final Order Spot Left) (Replace Existing Orders)
Else
------- For player 2.
General - If (Conditions) then do (Actions) else do (Actions)
If
And
Conditions
(Pathing cost between Mobs Spawn 02 and Final Order Spot Left) == 65536
((Triggering progress unit) is in P2BuildArea) == true
Then
UI - Display "You blocked... your tower was refun..." for (Player group((Triggering player))) to Subtitle area
Player - Modify player (Triggering player) Minerals: Add (Minerals cost of (Unit type of (Triggering progress unit)))
Unit - Remove (Triggering progress unit) from the game
Unit Group - Pick each unit in (Any units in (Region(Point of Unit, 3.5)) owned by player 15 matching Required: Ground; Excluded: Air, Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Order (Picked unit) to ( Move targeting Final Order Spot Left) (Replace Existing Orders)
Else
------- For player 3 and 6
General - If (Conditions) then do (Actions) else do (Actions)
If
And
Conditions
(Pathing cost between Mobs Spawn 03 and Final Order Spot Right) == 65536
Or
Conditions
((Triggering progress unit) is in P3BuildArea) == true
((Triggering progress unit) is in P6BuildArea) == true
Then
UI - Display "You blocked... your tower was refun..." for (Player group((Triggering player))) to Subtitle area
Player - Modify player (Triggering player) Minerals: Add (Minerals cost of (Unit type of (Triggering progress unit)))
Unit - Remove (Triggering progress unit) from the game
Unit Group - Pick each unit in (Any units in (Region(Point of Unit, 3.5)) owned by player 15 matching Required: Ground; Excluded: Air, Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Order (Picked unit) to ( Move targeting Final Order Spot Right) (Replace Existing Orders)
Else
------- For player 4.
General - If (Conditions) then do (Actions) else do (Actions)
If
And
Conditions
(Pathing cost between Mobs Spawn 04 and Final Order Spot Right) == 65536
((Triggering progress unit) is in P4BuildArea) == true
Then
UI - Display "You blocked... your tower was refun..." for (Player group((Triggering player))) to Subtitle area
Player - Modify player (Triggering player) Minerals: Add (Minerals cost of (Unit type of (Triggering progress unit)))
Unit - Remove (Triggering progress unit) from the game
Unit Group - Pick each unit in (Any units in (Region(Point of Unit, 3.5)) owned by player 15 matching Required: Ground; Excluded: Air, Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
Actions
Unit - Order (Picked unit) to ( Move targeting Final Order Spot Right) (Replace Existing Orders)
Else</point>