• 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.

Unit Spawn Triggers

Status
Not open for further replies.
Level 3
Joined
Jul 6, 2005
Messages
51
Code:
Spawn foories
    Events
        Unit - A unit Begins training a unit
    Conditions
        Or - Any (Conditions) are true
            Conditions
                (Unit-type of (Trained unit)) Equal to Footman
                (Unit-type of (Trained unit)) Equal to Knight
                (Unit-type of (Trained unit)) Equal to Rifleman
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Number of units in (Units owned by (Owner of (Trained unit)))) Not equal to 3
            Then - Actions
                Do nothing
            Else - Actions

after the "Else - Actions" is hwre the training will be canceled!
It's been..6months since i looked at WE!
 
Status
Not open for further replies.
Top