Blizzard Sector
Quick Trigger Help please - Printable Version

+- Blizzard Sector (https://www.blizzsector.co)
+-- Forum: Blizzard Games (https://www.blizzsector.co/forum-8.html)
+--- Forum: Starcraft (https://www.blizzsector.co/forum-94.html)
+---- Forum: Starcraft Maps (https://www.blizzsector.co/forum-62.html)
+---- Thread: Quick Trigger Help please (/thread-44522.html)



Quick Trigger Help please - chiodos92307 - 07-30-2008

im making a map where when you create a building, it spawns a unit in the corner of the map and it masses towards the other team.
depending on how many of one building u build, depends on how many units spawn and keep massing

you build 1 barrack, it spawns 1 rine that masses towards the other team
you build 2 barracks, it spawns 2 rines that mass... ect
up to 4


so i need a trigger that every 10 seconds it will continue to spawn the same amount of units depending on how many buildings i have

if u need more detail, feel free to ask.

thanks!laugh:


Quick Trigger Help please - AngelSpirit - 12-13-2008

I'm not sure if this is the best way to do it, but here goes. I'm assuming you have some experience with map making.
Make 4 triggers, one per barracks owned. You'll also need several locations.

Players:
[Whichever player you need it for]
Conditions:
[Current Player] commands [exactly] [1] [Terran Barracks].
Actions:
Create [1] [Terran Marine] for [Current Player] at [Location].
Issue order to all [Terran Marine] owned by [Current Player] at [Location]: [Attack] to [Location]
Wait for [10000] milliseconds.
Preserve trigger.

Create another similar trigger, except instead of 1 marine and 1 barrack, use 2 marines and 2 barracks. Repeat for all four barracks that can be owned.

Note: The [] represents what you can edit in the trigger.