Need help on the name of an order

Status
Not open for further replies.
Level 6
Joined
Apr 27, 2006
Messages
186
For my condition for my GUI trigger I want to detect when a unit is ordered to pick up an item NOT PICKS IT UP, but is ordered to pick it up.
What is the order comparison string for a unit attempting to pick up an item (the only ones I know are stop, move, attack, and harvest).
 
Level 6
Joined
Mar 2, 2006
Messages
306
  • DetectPickupOrder
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Issued order) Equal to (Order(smart))
      • (Target item of issued order) Not equal to No item
    • Actions
      • Game - Display to (All players) the text: (Go, + ((Proper name of (Ordered unit)) + , go!))
the order you wanted is "smart" ( = right-click)...
comparing target item with null is necessary because smart order is given when we right-click an enemy unit to attack, friendly unit to follow, resource to harvest, ground to move... but in all those other cases, target-item is null and target-unit is non-null.
 
Status
Not open for further replies.
Top