I hoped that it would be clear. Ok i try to explain it again.
What i understood of what you want:
Second 1: Spawn a crab
Second 2: Spawn a turtle
Second 3: Spawn a crab
Second 4: Spawn a turtle
and so on until Second 15.
Now wait 15 seconds
Do that again with 2 different unittypes (e.g. dog and cat)
So the objective is to perform that spawn-action and then wait 15 seconds before it is done again.
What my suggestion was that:
There is a trigger that elapses after 15 seconds. Then there is a loop that does a spawn per second over a time of 15 seconds (Spawn something --> wait 1 second --> Spawn something --> wait 1 second --> ...)
There is an integer that counts the number of spawns (Integer A in the GUI-Version and the variable i in the jass code)
The spawning action in my triggers should work like that: if that integer can be devided by 2 (values would be: 2, 4, 6, 8, 10, 12, 14) then spawn a Unit of Type A else (values: 1, 3 , 5, 7, 9, 11, 13, 15) then spawn a unit from Type B
When that is done the Timer is restarted and will trigger this event again in 15 seconds. The if-clause is added to check if you have reached the final wave. (e.g. You have 20 waves and a variable CurrentWave it could be if(CurrentWave<20) )
About something that is likely confusing: Setting unittypes
You can initialize your unittypes like that:
-
Spawntest
-

Ereignisse
-

Bedingungen
-

Aktionen
-


Set Unittypes[0] = Crab
-


Set Unittypes[1] = Turtle
-


Set Unittypes[2] = Dog
-


Set Unittypes[3] = Cat
-


Set Unittypes[4] = Mouse
-


Set Unittypes[5] = Eagle
Then you can get unittype A using something like that (Assuming that the variable CurrentWave is at the beginning at 1)
Unittypes[CurrentWave*2-2] --> Values: 0, 2, 4
and the unittype B
Unittypes[CurrentWave*2-1] --> Values: 1, 3, 5
Other option: setting the variables after every wave which would look like that
-
SpawnTwo
-

Ereignisse
-

Bedingungen
-

Aktionen
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



'IF'-Bedingungen
-



'THEN'-Aktionen
-




Set UnittypeA = Crab
-




Set UnittypeB = Turtle
-



'ELSE'-Aktionen
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





'IF'-Bedingungen
-





'THEN'-Aktionen
-






Set UnittypeA = Dog
-






Set UnittypeB = Cat
-





'ELSE'-Aktionen
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







'IF'-Bedingungen
-







'THEN'-Aktionen
-








Set UnittypeA = Mouse
-








Set UnittypeB = Eagle
-







'ELSE'-Aktionen
Ok while i see this: better use option 1 instead of this long If-Then-Else-Construction
Is it clearer or still just confusing?