F
forsaken240
Guest
I don't have a clue why this isn't working. Probably something really trivial. There's a bunch of triggers, but they're not very long. Everything works except the units aren't spawning.
The Units are peasant cause I was testing. I have nextwave as one-shot instead of repeating, but I don't see what the difference would make. I think it might be something going wrong with variable: wavenumber. Any ideas? Thanks in advance.
Code:
SpawnChange
Events
Time - StarCountdown expires
Conditions
Actions
Set WaveNumber = (WaveNumber + 1)
Countdown Timer - Start NextWave as a One-shot timer that will expire in 90.00 seconds
Trigger - Turn off (This trigger)
Code:
SpawnChange Copy
Events
Time - NextWave expires
Conditions
Actions
Set WaveNumber = (WaveNumber + 1)
Countdown Timer - Start NextWave as a One-shot timer that will expire in 90.00 seconds
Code:
Monster Type
Events
Conditions
Actions
-------- Wave 1 --------
If (WaveNumber Equal to 1) then do (Set Monster_Type = Peasant) else do (Do nothing)
If (WaveNumber Equal to 1) then do (Game - Display to (All players) for 10.00 seconds the text: Wave 1) else do (Do nothing)
-------- Wave 2 --------
If (WaveNumber Equal to 2) then do (Set Monster_Type = Peasant) else do (Do nothing)
If (WaveNumber Equal to 2) then do (Game - Display to (All players) for 10.00 seconds the text: Wave 2) else do (Do nothing)
Code:
First Monster1
Events
Time - Every 5.00 seconds of game time
Conditions
Actions
Unit - Create Monster_Amount Monster_Type for Player 12 (Brown) at (Center of Spawn 1 <gen>) facing (Center of (Playable map area))
Unit - Create Monster_Amount Monster_Type for Player 12 (Brown) at (Center of Spawn 2 <gen>) facing (Center of (Playable map area))
Unit - Create Monster_Amount Monster_Type for Player 12 (Brown) at (Center of Spawn 3 <gen>) facing (Center of (Playable map area))
Unit - Create Monster_Amount Monster_Type for Player 12 (Brown) at (Center of Spawn 4 <gen>) facing (Center of (Playable map area))
Unit - Create Monster_Amount Monster_Type for Player 12 (Brown) at (Center of Spawn 5 <gen>) facing (Center of (Playable map area))
Unit - Create Monster_Amount Monster_Type for Player 12 (Brown) at (Center of Spawn 6 <gen>) facing (Center of (Playable map area))
Unit - Create Monster_Amount Monster_Type for Player 12 (Brown) at (Center of Spawn 7 <gen>) facing (Center of (Playable map area))
Unit - Create Monster_Amount Monster_Type for Player 12 (Brown) at (Center of Spawn 8 <gen>) facing (Center of (Playable map area))
The Units are peasant cause I was testing. I have nextwave as one-shot instead of repeating, but I don't see what the difference would make. I think it might be something going wrong with variable: wavenumber. Any ideas? Thanks in advance.


