• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Spawn trigger

Status
Not open for further replies.
Level 14
Joined
Oct 28, 2019
Messages
536
Hi folks, im trying make a map like castle wars. But when build a barracks, the spawn is 8 soldiers, how do over periodic time? After spwan he would follow a lane. Can u help me please

I wanna make a map like castle with spawn based in buildings. Ex a barracks spawn 8 footman, a blacksmith spawn 8 rifles,

How do a trigger like this:

Player 1 comands 1 barracks at location "x"
action:
create 8 footmans at location "y"

Need be a trigger or a custom units? TY
 
By trying.
  • A trigger
    • Events
      • Unit - A unit owned by Player 1 (Red) Dies
    • Conditions
      • ((Owner of (Triggering unit)) Food used) Equal to 0
    • Actions
      • Game - Display to (All players) the text: ALL DEAD
      • Trigger - Run Next wave? <gen> (ignoring conditions)
You need invest time playing around with the editor, in every aspect, so you understand how everything works, don't just jump into a project, specially when you don't understand the basics. Else it will take you a lot of more time learning by someone than self-learning. So just try, if you fail, it doesn't matter, we all improve by our mistakes and the computer won't explode anyway.
 
Unit Dies

If Total Food Used by Owner of Dying Unit Equal to 0 then do whatever

Edit: Wrda' example is basically the same as this just more detailed and just to expand on what he said about using the editor a good way to learn is to open other maps that inspired you and see how they do things, although some maps cant be opened in WE so if you want i can send you an old map of mine that may be similer to your own project.
 
Last edited:
Status
Not open for further replies.
Back
Top