• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Issued order (Road)

Status
Not open for further replies.
Level 14
Joined
Oct 28, 2019
Messages
536
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
 
Status
Not open for further replies.
Back
Top