HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

need help making a spawning system

03-17-2004, 12:25 AM#1
Lord_of_death2
Hello.

Im making a footman wars/aos style map, and so far i reached a temporary dead-end seeing as how im bad with triggers, and i need this particular trigger (or series of) to help my map work.

What i would like is so that the footmen belonging to the players begin to spawn after 2 minutes of game time pass, and so that when a player dies, exits the game or his slot is empty and non-playing they stop spawning, and all the units belonging to the player dissapear off the map.

can anyone please help me do this? i would really appreciate it.
03-17-2004, 12:53 AM#2
ThyFlame
time - period event - every 120 seconds

condition: player X is playing

event: [run spawn triggers]

if he isn't playing, spawn triggers for him aren't run, et voila.
03-17-2004, 03:22 AM#3
Lord_of_death2
ok i ran into a few problems with the advice you gave me.

First off, i want the footmen to spawn every 8 seconds about, but i only want them to begin spawning after 2 minutes have passed. You see, i made a timer which lasts about 120 seconds which begins counting down as soon as the map starts, and i want the footmen to begin spawning after the timer dissapears.

Second the thing with your "event-run spawning trigger" doesn't want to work for some reason. I try doing that but for some reason the footmen continue to spawn as soon as the map begins. Its as if i need to put the spawn trigger in some kind of queue, but i got not clue how to do that.
03-17-2004, 03:30 AM#4
RangeRofKaoS
Ok its easy:

You Need 2 Triggers

Trigger 1:

Event:
Every 8 Seconds
Action:
Pick Every Player In All players And Do If(Picked Player is = to Playing) Then (Create 1 Footman) Else (If (picked player is = to not playing) Then(Pick every unit in units owned by picked player and do remove picked unit) Else(Do Nothing))
03-17-2004, 03:30 AM#5
RangeRofKaoS
Trigger 2:

Event:
Elapsed Game Time is 120 seconds
Action:
Run Trigger1
03-17-2004, 03:31 AM#6
RangeRofKaoS
I Loooove doing triggers, love the challange of making the game do wat u want when u want, so if ya need any help pm me or just post it here ill try to find it =O