HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spawn Problem

09-01-2004, 10:38 PM#1
Progniss
Ok i have 3 triggers. One generates the units (after timer finishes), One Sets a timer (after each level when all the units are dead), and the other Levels up the heros (after each level is complete). These triggers work and all, but my problem comes when I get to level 9. On level 9 I have spiders... you kill a spider two spiderlings spawn from that spider.

The trigger that sets the timer for each level, and the trigger that levels the heros up after each level keep on fireing after all the main spiders are dead and the death of the newly created spiderlings occur. So you get mass level'd up when you get to level nine and thats something I dont want to happen.

I tried putting this in the condition of the level up trigg and the timer trigg to make it work, but it did not work.
Code:
(Number of living Spiderling (Level 9) units owned by Player 11 (Dark Green)) Equal to 0

The even that fires the two triggers are this
Code:
Unit - A unit owned by Player 11 (Dark Green) Dies

If you where wondering.

Any ideas?
09-01-2004, 10:59 PM#2
BleedBastards
i have my spawner setup like this...

player 12 foot becomes equal to zero
run start timer
timer expires
run count round
roundcount=x
start x level

this is the same thing your doing if i read properly (sometimes i dont =)

if your hero leveling trigger is based on the food supply count of the enemy then you should check the food limit on big/little spiders and make sure the little ones are 0...this probably wont help you at all but hell...it was the only thing i could think of and i'm trying to be helpful =)


and also if you end up having to redow your spawning methods and hero leveling methods, this might work better...

draw a big region where the enemies are
every 2 seconds (initialy turned off)
if/then/multiple functions
number of units owned by player (enemy) in region = 0 then do hero trigger timer trigger else do nothing
number of units owned by player (enemy) in region = 0 then do turn this trigger off

beginning of every other round turn this trigger on


my triggering is a bit unorganized but the concept in there...somewhere in there =P
09-02-2004, 01:50 AM#3
Progniss
Ummm nope that stops everything from working...
And I want the spiderlings to count as food.
09-02-2004, 02:22 AM#4
Progniss
Ahhh I figured it out. I had to remove the ability Spiderling Spawn from the spiders and make a trigger that on the death of "Spider" that belong to player 11 create 2 spiderlings in the postion of "Spider" that died. Then the former code I had works with this
*** (Number of living Spiderling (Level 9) units owned by Player 11 (Dark Green)) Equal to 0 ***

Just incase you wanted to know if you ever have a problem with this, and also so you know Im not struggling anymore. ^_^