-
Spawn
-

Events
-

Conditions
-

Actions
-


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



If - Conditions
-




WaveLevelAmount[WaveLevel] Equal to 0
-
-



Then - Actions
-




Trigger - Turn off (This trigger)
-
-



Else - Actions
-




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





If - Conditions
-






WaveLevelAmount[WaveLevel] Equal to 6
-
-





Then - Actions
-






-------- BossSpawns --------
-






Countdown Timer - Start WaveTimer as a One-shot timer that will expire in 45.00 seconds
-






Countdown Timer - Create a timer window for WaveTimer with title (Level + ((String(WaveLevel)) + in:))
-






Set WaveTimerWindow = (Last created timer window)
-






Wait 45.00 seconds
-






Countdown Timer - Destroy WaveTimerWindow
-






Game - Display to (All players) the text: (((Bosswave + (String(WaveLevel))) + incoming: ) + ((String(WaveLevelAmount[WaveLevel])) + ( + (String(WaveUnitType[WaveLevel])))))
-






For each (Integer A) from 1 to WaveLevelAmount[WaveLevel], do (Actions)
-







Loop - Actions
-








Unit - Create 1 WaveUnitType[WaveLevel] for Player 8 (Pink) at (Center of Bosspawn <gen>) facing 250.00 degrees
-








Unit - Order (Last created unit) to Attack-Move To (Center of Mob attack <gen>)
-








Wait 0.50 seconds
-
-
-
-





Else - Actions
-






-------- MobSpawns --------
-






Countdown Timer - Start WaveTimer as a One-shot timer that will expire in 30.00 seconds
-






Countdown Timer - Create a timer window for WaveTimer with title (Level + ((String(WaveLevel)) + in:))
-






Set WaveTimerWindow = (Last created timer window)
-






Wait 30.00 seconds
-






Countdown Timer - Destroy WaveTimerWindow
-






Game - Display to (All players) the text: (((Wave + (String(WaveLevel))) + incoming: ) + ((String(WaveLevelAmount[WaveLevel])) + ( + (String(WaveUnitType[WaveLevel])))))
-






For each (Integer A) from 1 to WaveLevelAmount[WaveLevel], do (Actions)
-







Loop - Actions
-








Unit - Create 1 WaveUnitType[WaveLevel] for Player 8 (Pink) at (Center of Mob spawn <gen>) facing 180.00 degrees
-








Unit - Order (Last created unit) to Attack-Move To (Center of Mob attack <gen>)
-








Wait InternalWaveSpawnDelay seconds
-
-
-
-
-
-
-


Set WaveLevel = (WaveLevel + 1)
-


Trigger - Run (This trigger) (checking conditions)
-
-
Anyhow, the WaveLevelAmount is an Array that is defined from 1-7 for example, and then when WaveLevel hits 8 it should contain 0 and therefor quit the loop. But I don't see that happening. Anyone got any clues?








