• 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 Like Footy Maps

Status
Not open for further replies.

Jax828

J

Jax828

How do I make a trigger so units spawn around a building

So if player 1 had a castle knights would spawn 1 everyone 2 seconds or something like that
 
You need two triggers actually (if you dont only have one building that is created from start and cant be upgraded)..
  • Events
    • Unit - A unit Finishes construction/upgrade
  • Conditions
    • Constructed/Upgraded structure equal to *your building*
  • Actions
    • Trigger - Turn on Spawn <gen>
And here is the one that spawns, this one is initially off.
  • Events
    • Time - Every 2.00 seconds of game time
  • Actions
    • Unit - Create 1 Knight for Player 1 (Red) at (Position of (Triggering unit)) facing Default building facing degrees
Hope it helped you :)
 
Every x seconds
Pick every unit in region x matching unit-type of matching unit is a unit of type y and do:
- If picked unit = Tier Lv 1 then do create 1 footman for owner of picked unit at pos. of picked unit else do if picked unit = Tier Lv 2 then do create 1 knight for owner of picked unit at pos. of picked unit else do blah..

should go like this
 
I was wondering if someoen could tell me where the condition for counting how many units you have is... So like

number of unit owned by player equal to...
 
Every x seconds
Pick every unit in region x matching unit-type of matching unit is a unit of type y and do:
- If picked unit = Tier Lv 1 then do create 1 footman for owner of picked unit at pos. of picked unit else do if picked unit = Tier Lv 2 then do create 1 knight for owner of picked unit at pos. of picked unit else do blah..

should go like this

How do i do that I dont know what condition/action i need please explain more :cry:
 
Status
Not open for further replies.
Back
Top