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

Spawn Trigger Like Footy Maps

Status
Not open for further replies.
Level 2
Joined
Feb 22, 2008
Messages
7
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
 
Level 25
Joined
Mar 23, 2008
Messages
1,813
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 :)
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
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
 
Level 5
Joined
Jan 13, 2008
Messages
173
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...
 
Level 2
Joined
Feb 22, 2008
Messages
7
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.
Top