- Joined
- Oct 28, 2019
- Messages
- 523
Im trying a Town Hall build roads
-
Building Roads
-
Events
-
Unit - A unit owned by Player 2 (Blue) Is issued an order targeting a point
-
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Town Hallll
-
(Issued order) Equal to (Order(road))
-
-
Actions
-
Custom script: call DestroyGroup(udg_UGroads)
-
Set VariableSet UGroads = (Units within 210.00 of (Target point of issued order) matching ((Unit-type of (Matching unit)) Equal to Road Dummy).)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Distance between (Target point of issued order) and (Position of (Random unit from UGroads))) Less than or equal to 210.00
-
-
Then - Actions
-
Game - Display to (All players) the text: YES
-
Unit - Create 1 DummyWorker for Player 2 (Blue) at (Target point of issued order) facing Default building facing degrees
-
Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
-
Unit - Order (Last created unit) to build a Road at (Target point of issued order)
-
-
Else - Actions
-
Game - Display to (All players) the text: NO
-
Game - Display to (All players) the text: Build near road sys...
-
Wait 0.50 seconds
-
Player - Add 50 to Player 1 (Red).Current gold
-
Unit - Kill (Constructing structure)
-
-
-
-