We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch
Without checking, this sounds like it could be it.
As an ironical sidenote, if you don't understand my system, then don't use it.
Okay, joking aside, it's always a good idea to come up with things on your own, because then you learn a lot more. Nevertheless here's a brief description how it works:
New spawning round:
If nobody is spawning ('spawn state' dc = 0, Switch 'Spawn Y/B' cleared) then start a new spawning round by setting 'spawn state' to 1 for the force.
Who's spawning next:
When countdown is 0 *) nobody is currently spawning then the next player whose 'spawn state' is still 1 get set his dc to 2, indicating hes spawning next and restart countdown, so noone else's 'spawn state' is set to 2.
End spawning:
When player has no buildings of list 1 (need 2 condition checks because limit of 16 conditions), set 'spawn state' to 3. When no buildings of 2nd list, then set 'spawn state' to 0 and clear 'Spawn Y/B' to finally end spawning for that player/round.
And finally if only list one was true, but not list 2 then set back 'spawn state' to 2 to continue until both lists show true.
Then it loops back to "Who's spawning next" until all players of that force have spawned, then it loops back to new spawning round. Check the 'spawn state' dc to see how.
*) I got into some trouble due to cross-player behavior of triggers because I used the global countdown timer instead of a death counter. Basically when Force 1 spawned they set the countdown to 46, which prevented Force 3's "Who's spawning next" trigger to run. That's why P4 sets it back to 0 if it detects 46.
Hope this explanation helps you rooting out possible future problems or at least gives you a better understanding. If you still have open questions, don't hesitate to ask.
Oh and good luck with your new map! What will be the main differences to Desert Strike, if I may ask? I'm curious to see what will become of your Desert Strike offspring.
Post has been edited 1 time(s), last time on Apr 21 2009, 12:08 am by NudeRaider.