• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Cancelling of Training a Unit

Status
Not open for further replies.
Level 13
Joined
Mar 4, 2009
Messages
1,156
  • Untitled Trigger 003
    • Events
      • Unit - A unit Begins training a unit
    • Conditions
    • Actions
      • Unit - Change ownership of (Triggering unit) to (Player(((Player number of (Owner of (Triggering unit))) + 1))) and Change color
      • Unit - Change ownership of (Triggering unit) to (Player(((Player number of (Owner of (Triggering unit))) - 1))) and Change color
      • Selection - Select (Triggering unit) for (Owner of (Triggering unit))
:D
 
Level 18
Joined
Jan 21, 2006
Messages
2,552
You can figure out the ID of any order by displaying the GetIssuedOrderId() value. There are lots and lots of orders that are not associated with any names. For instance, this cancel order.

If you go into our resources section, there is a library [vJass]PrintOrders which prints out all orders issued. You can use that to find the values for orders that you may not think are issued initially. Sorry that may have been confusing I hope you get what I mean.
 
Status
Not open for further replies.
Top