• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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