Help with my weather system

Pender

New Member
Reaction score
32
So there are two relevant triggers. The first is run during initialization:

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.
 

Pender

New Member
Reaction score
32
Update: If I set the first four levels to "Dungeon White Fog (heavy)," then it works for the first five levels, but again there is no weather afterwards.

I also tried putting a "Wait 0.01 seconds" in between deactivating the old weather and activating the new one in the second trigger, all to no avail.

What's the deal?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top