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

[Trigger] Train 2 units at the same time

Status
Not open for further replies.
Level 7
Joined
Aug 13, 2011
Messages
142
What I need is something like a zerg zergling, you train at the cost of one unit and it trains 2 units. for example, i want to train a footman, i train a footman for the cost of 1( gold, lumber, food) after training instead of a single footman trained, there are 2.

i tried to this but only ONE barracks can do it.:ogre_rage:NOOB HERE!
 
Level 7
Joined
Sep 9, 2007
Messages
253
  • MyTrigger
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
      • (Unit-type of (Trained unit)) Equal to Footman
    • Actions
      • Unit - Create 1 Footman for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees

  • MyTrigger
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
      • (Unit-type of (Trained unit)) Equal to Footman
    • Actions
      • Set Temp_Point = (Position of (Triggering unit))
      • Unit - Create 1 Footman for (Owner of (Triggering unit)) at Temp_Point facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_Temp_Point)
Edit: Almia why so fast? I was fising them immediately haha. I wanted to show the difference :)
 
Status
Not open for further replies.
Top