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
The above would work if you use no other wait somewhere.
But as a general rule for sc mapediting I tell you
not to use waits at all.
They will cause wait blocks (prevents triggers from firing) and/or throw off timing as your maps becomes more complex (when executing a wait action other triggers will run again).
Use a death counter system instead.
Death counters (DCs) can be used for many more things, so its wise you learn them ASAP.
The basic idea is you take a unit you dont use in your map and
modify (set, add, subtract) the death counts (sc counts how often a certain type of unit has been killed) for this unit. This can be done
by triggers AND actual kills ingame, but because you dont use the unit it cant be killed, so you have full control over the DC. Simply count up every trigger loop until you reach the desired delay. Then you spawn the units and reset your counter to 0.
Take a unit lets say neutral - critters - kakaru and rename it to "Spawn Counter"
Create a location over every command center and rename them to "Spawn Loc 1-6"
So lets say you want to spawn untis every 10s (1 trigger loop take 2s of sc game time, an about 1,5s real time on speed 7)
Here are sample triggers how you can do it:
Trigger 1: CounterHuman Players (e.g. P1-6)Conditions:Always
Actions:Add 1 for death counts of "Spawn Counter" for current player
preserve trigger
Trigger 2: Spawn / ResetPlayer 1Conditions:Current player brings at least 1 Command Center to "Spawn Loc 1"
Current player has suffered at least 5 deaths of "Spawn Counter"
Actions:Create 1 unit for current player at "Spawn Loc 1"
Set to 0 for death counts of "Spawn Counter" for current player
preserve trigger
Trigger 3: Spawn / ResetPlayer 2Conditions:Current player brings at least 1 Command Center to "Spawn Loc 2"
Current player has suffered at least 5 deaths of "Spawn Counter"
Actions:Create 1 unit for current player at "Spawn Loc 2"
Set to 0 for death counts of "Spawn Counter" for current player
preserve trigger
...
For all players.
Then you are on the safe side.