Alright, so for some reason my timer works, then stops working.
I created the timer variable, and the triggers to create the :30 one shot timer, and also the trigger action to make a visible window for it.That works fine. Game starts and timer starts. Yay.
Now, one of my other triggers is starts when the timer expires. Timer hits 0 (expires), then trigger spawns tons of units. Okay that works. Then when last unit dies, timer needs to reset.
Then what should happen is timer expires, units spawn, last unit dies, timer resets, timer expires, units spawn... etc. etc.
Well it works the first time. The first time the timer gets reset, I see it reset, and when it expires the spawning happens. Then the unit dies and the timer resets again... but this time when it expires, nothing happens. Why doesn't it continue to work?
The triggers all work the first few times. Last unit dies, timer gets reset, and when timer expires units spawn. But it never keeps working, it just finishes the second wave of units, starts the timer, and when that timer expires nothing happens.
Hope I was clear enough.
edit:
I've tried changing the original timer to a repeating timer, and then pause it when the units spawn, but the pause never works and then the units just keep coming. I've also tried adding a condition in the trigger with the last unit death, so that it creates another timer, but that didn't work.
Problem must be within this IF statement (Number of living units...)
Add some debug messages for both cases (if, else) and see which one is executed and when.
Also, if you don't mind you can send me the map using PM.
Maybe I will be able to help this way.
OKAY!
Check this:
You have set wave type for array indexes 0,1,3,4,5.
2 is missing, fill this up.
Alright, so for some reason my timer works, then stops working.
I created the timer variable, and the triggers to create the :30 one shot timer, and also the trigger action to make a visible window for it.That works fine. Game starts and timer starts. Yay.
Now, one of my other triggers is starts when the timer expires. Timer hits 0 (expires), then trigger spawns tons of units. Okay that works. Then when last unit dies, timer needs to reset. Then what should happen is timer expires, units spawn, last unit dies, timer resets, timer expires, units spawn... etc. etc.
Well it works the first time. The first time the timer gets reset, I see it reset, and when it expires the spawning happens. Then the unit dies and the timer resets again... but this time when it expires, nothing happens. Why doesn't it continue to work? The triggers all work the first few times. Last unit dies, timer gets reset, and when timer expires units spawn. But it never keeps working, it just finishes the second wave of units, starts the timer, and when that timer expires nothing happens.
Hope I was clear enough.
edit: I've tried changing the original timer to a repeating timer, and then pause it when the units spawn, but the pause never works and then the units just keep coming. I've also tried adding a condition in the trigger with the last unit death, so that it creates another timer, but that didn't work.
Hmm, not much info.
Posting screens from your triggers would help a lot.
My guess would be that you have:
and you need to have:
Regards
Okay, I added pics. I also added in the condition that you suggested. Same thing happen.
Right now, with what I have, the timer works fine for the first 3 times. Which is game start, after first wave, and after the second wave.
The spawning works fine twice, after the first time the timer expires, and the second time it expires. After that everything stops.
Hmm again...
Your timer triggers are just fine.
Problem must be within this IF statement (Number of living units...)
Add some debug messages for both cases (if, else) and see which one is executed and when.
Also, if you don't mind you can send me the map using PM.
Maybe I will be able to help this way.
OKAY!
Check this:
You have set wave type for array indexes 0,1,3,4,5.
2 is missing, fill this up.
Regards and happy mapping!
Those sneaky waves....
I put in the missing link, and it worked. Thanks :D
In the future I'll have to make sure I double check everything. Thanks for the help!