• 🏆 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!

Conditions:Training Unit

Status
Not open for further replies.
Level 6
Joined
Aug 19, 2007
Messages
109
Under conditions: Is there one which responds to the "A unit begins training a unit" event? I want to mke it like this:

Event:A unit begins training a unit

Condition:Unit being trained is equal to Footman(or something)

Actions:(Other stuff)

What condition is it under o_O?
 
Level 14
Joined
Jul 1, 2008
Messages
1,314
Try it by getting the Order!

For Example. If a building is ordered to build a rifleman, the Order String is rifleman!
[U can find out by this Trigger by the way:
  • Events
    • Unit - A unit is ordered without any target
  • Conditions
  • Actions
    • Game - Display to (All players) the text: (String((Issued order)))
]

So yeah, now u got your Order String, so u can use it in a Trigger:
  • Events
    • Unit - A unit is ordered without any target
  • Conditions
    • (Issued order) Equal to (Order(rifleman))
  • Actions
    • // Do what ever you want ;)
Have fun
Greets Emm-A-

Edit

  • (Issued order) Equal to (Order((Name of Unit X)))
I just found out that The Order String, Building is using is just the Unit Name, that u can fill in in the Objekt Editor

Greets
 
Level 14
Joined
Jul 1, 2008
Messages
1,314
i just invented it when i saw your question xD

Btw. You really can change the name of the unit to what ever you like, "lol", "omgnoob", what ever.

U can use the Blizzard basic name, as is said before, or your Object Editor Name, so that is more comfortable in my mind :)

Greets

Edit: oh sorry i just saw, that i said this before, multiposting is bad :(

Edit 2: I tried again with several Units, and i dont know why, but sometimes the Object Editor Name doesnt work properly. U better use the basic name of the units, f.e. footman or rifleman

Finally. I found my mistake.
U can convert unitTypes to make it work properly!
Issued order Equal to (unit Type of ( Unit X) )
Im very sorry for these many edits
 
Last edited:
Status
Not open for further replies.
Top