So there are two relevant triggers. The first is run during initialization:
And then the second one is run in between levels (as in, in between waves... not quite, but that's the concept: multiple "levels," or challenges, on the same map territory):
The weather works fine in levels 1-4, but on level 5 and onwards, there is no weather at all. Any idea what's going wrong? I know that both of these sections of code execute.
Code:
Actions
...
Environment - Create at Maze area <gen> the weather effect Dungeon White Fog (Light)
Set weather_catalog[0] = (Last created weather effect)
Set weather_catalog[1] = (Last created weather effect)
Set weather_catalog[2] = (Last created weather effect)
Set weather_catalog[3] = (Last created weather effect)
Set weather_catalog[4] = (Last created weather effect)
Environment - Create at Maze area <gen> the weather effect Dungeon White Fog (Heavy)
Set weather_catalog[5] = (Last created weather effect)
Environment - Create at Maze area <gen> the weather effect Dungeon Blue Fog (Light)
Set weather_catalog[6] = (Last created weather effect)
Set weather_catalog[7] = (Last created weather effect)
Set weather_catalog[8] = (Last created weather effect)
Set weather_catalog[9] = (Last created weather effect)
Environment - Create at Maze area <gen> the weather effect Dungeon Blue Fog (Heavy)
Set weather_catalog[10] = (Last created weather effect)
Environment - Create at Maze area <gen> the weather effect Dungeon Green Fog (Light)
Set weather_catalog[11] = (Last created weather effect)
Set weather_catalog[12] = (Last created weather effect)
Set weather_catalog[13] = (Last created weather effect)
Set weather_catalog[14] = (Last created weather effect)
Environment - Create at Maze area <gen> the weather effect Dungeon Green Fog (Heavy)
Set weather_catalog[15] = (Last created weather effect)
Environment - Create at Maze area <gen> the weather effect Dungeon Red Fog (Light)
Set weather_catalog[16] = (Last created weather effect)
Set weather_catalog[17] = (Last created weather effect)
Set weather_catalog[18] = (Last created weather effect)
Set weather_catalog[19] = (Last created weather effect)
Environment - Create at Maze area <gen> the weather effect Dungeon Red Fog (Heavy)
Set weather_catalog[20] = (Last created weather effect)
Environment - Create at Maze area <gen> the weather effect Dungeon Red Fog (Light)
Set weather_catalog[21] = (Last created weather effect)
...
And then the second one is run in between levels (as in, in between waves... not quite, but that's the concept: multiple "levels," or challenges, on the same map territory):
Code:
Actions
...
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Current_Level Less than 22
Then - Actions
Environment - Turn weather_catalog[(Current_Level - 1)] Off
Environment - Turn weather_catalog[Current_Level] On
Else - Actions
...
The weather works fine in levels 1-4, but on level 5 and onwards, there is no weather at all. Any idea what's going wrong? I know that both of these sections of code execute.