- Joined
- Aug 6, 2014
- Messages
- 40
Okay, here's the goal: In my map I have re-spawning units going into an endless conflict. The units spawns will have no AI and be allied with player. The player has the ability to collect gold from doing various tasks on the side, or waiting for a period of time. With the gold I'm hoping to make it so the player can buy upgrades from the spawn zones(building in this case) to add more units to the periodic spawns.
So basically
Upgrade at barracks:
Train grunt
This will add one grunt to the periodic spawns
-1 gold
Train Tauren
this will add one tauren to the periodic spawns
-5 gold
etc.
My question is, how do I set up triggers to make this happen? I'm pretty noobish at triggers, right now I just have:
Ever 25 seconds 1 grunt spawns from barracks234,
then an auto-attack for units who enter region.
So basically
Upgrade at barracks:
Train grunt
This will add one grunt to the periodic spawns
-1 gold
Train Tauren
this will add one tauren to the periodic spawns
-5 gold
etc.
My question is, how do I set up triggers to make this happen? I'm pretty noobish at triggers, right now I just have:
Ever 25 seconds 1 grunt spawns from barracks234,
then an auto-attack for units who enter region.