Cancelling a single order

WarToast

Active Member
Reaction score
3
..While still keeping the rest. How to do it?

I don't want to be ordered to stop, so I defined the single order in an order variable and want to cancel it.
 

WarToast

Active Member
Reaction score
3
Trigger:
  • Detect Order
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Peasant Building
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Issued order) Equal to (Order(farm))
        • Then - Actions
          • Game - Display to (All players) the text: Order detected
          • Set Order[1] = (Issued order)
          • Set BuildPoint[1] = (Target point of issued order)
          • Set TempPoint[1] = ((Position of (Triggering unit)) offset by (0.00, -128.00))
          • Item - Create Tiny Farm at TempPoint[1]
          • Set TinyBuilding[1] = (Last created item)
          • Trigger - Run Pick Worker <gen> (checking conditions)
        • Else - Actions
          • Game - Display to (All players) the text: Not a build order
 

Baltazhar

Active Member
Reaction score
55
Well on units you can hold shift while giving e.g. move orders, to make the unit run to the different checkpoints you make.
I'm not sure how to cancel one, but not the rest.

I think your only option is to give the unit a Stop order when it receives something you don't want it do. I don't think buildings can be given multiple orders though, and it sounds like "Peasant Building" is a structure, so I think a Stop order is in place.

Also, you have some possible leaks, unless it's on purpose for later reference.
 

WarToast

Active Member
Reaction score
3
Yeah, haven't fixed the leaks yet, but I'll do that.

to clear things up, I'm talking about multiple build orders. the unit Peasant Building is rooted and has 0 movement speed, but can be ordered to build.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top