Um could someone help me this is the first time i'm making an rpg map and i need to make a trigger so that when a player controlled hero gets nere a spawn building it will start spawning a specific unit and stop spawning once either a specific unit amount is reached or the spawning building dies. I want it to act like the spawners in video game rpg. 'm still getting used to triggers so any help would be reatly appreciated.
If you're interested in learning it, you can open up the Warchasers map that's included with the retail game. That has exactly the triggers you describe in it.
Event: Every ??? Second of elapsed game time Condition: (Region x) contains (hero) -or- Unit owned by Player)= true Action: Unit- Spawn a (unit-type) at center of (region x) Unit- Order (last created unit) to...(order)