• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Issued order (Road)

Level 13
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)
the trigger was working until I add the new condition "(Issued order) Equal to (Order(road))" why this is wrong? Cause the Town Hall will build Walls too, and need other similiar trigger with other condition
 
Top