• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Help checking my Seasons System

Status
Not open for further replies.
Level 4
Joined
Jun 30, 2008
Messages
92
  • Seasons
    • Events
      • Time - Elapsed game time is 24.00 seconds
    • Conditions
    • Actions
      • Environment - Create at (Playable map area) the weather effect Rays Of Light
      • Environment - Turn (Last created weather effect) On
      • Trigger - Turn on Chicken <gen>
      • Trigger - Turn on Pig <gen>
      • Trigger - Turn on Rabbit <gen>
      • Trigger - Turn on Sheep <gen>
      • Trigger - Turn on Stag <gen>
      • Trigger - Turn on Dog <gen>
      • Wait 140.00 seconds
      • Environment - Turn (Last created weather effect) Off
      • Environment - Remove (Last created weather effect)
      • Environment - Create at (Playable map area) the weather effect Rays Of Moonlight
      • Wait 20.00 seconds
      • Environment - Turn (Last created weather effect) On
      • Wait 140.00 seconds
      • Trigger - Turn off Chicken <gen>
      • Trigger - Turn off Pig <gen>
      • Trigger - Turn off Rabbit <gen>
      • Trigger - Turn off Sheep <gen>
      • Environment - Turn (Last created weather effect) Off
      • Environment - Remove (Last created weather effect)
      • Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Light)
      • Environment - Turn (Last created weather effect) On
      • Wait 300.00 seconds
      • Environment - Turn (Last created weather effect) Off
      • Environment - Remove (Last created weather effect)
      • Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Heavy)
      • Environment - Turn (Last created weather effect) On
      • Wait 300.00 seconds
      • Trigger - Turn off Stag <gen>
      • Trigger - Turn off Dog <gen>
      • Environment - Turn (Last created weather effect) Off
      • Environment - Remove (Last created weather effect)
      • Environment - Create at (Playable map area) the weather effect Northrend Snow (Heavy)
      • Environment - Turn (Last created weather effect) On
      • Wait 300.00 seconds
      • Environment - Turn (Last created weather effect) Off
      • Environment - Remove (Last created weather effect)
      • Trigger - Run (This trigger) (ignoring conditions)
A day is 300 seconds long, each day is a new season the first day starts as the first weather effect begins.
 
Level 4
Joined
Jun 30, 2008
Messages
92
I just put together this, would it work correctly, and without leaks?

Fall and Winter are the same as Summer, with their respective weather affects.


  • Seasons
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Environment - Create at (Playable map area) the weather effect Rays Of Light
      • Set Summer = (Last created weather effect)
      • Environment - Remove (Last created weather effect)
      • Environment - Create at (Playable map area) the weather effect Dungeon White Fog (Light)
      • Set Fall = (Last created weather effect)
      • Environment - Remove (Last created weather effect)
      • Environment - Create at (Playable map area) the weather effect Northrend Snow (Heavy)
      • Set Winter = (Last created weather effect)
      • Environment - Remove (Last created weather effect)
      • Environment - Create at (Playable map area) the weather effect Rays Of Moonlight
      • Set Night = (Last created weather effect)
      • Environment - Remove (Last created weather effect)
      • Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Heavy)
      • Set NightRain = (Last created weather effect)
      • Environment - Remove (Last created weather effect)
  • Day
    • Events
      • Game - The in-game time of day becomes Equal to 8.00
    • Conditions
    • Actions
      • Environment - Turn (Last created weather effect) Off
      • Set Weather = (Random integer number between 1 and 3)
      • If (Weather Equal to 1) then do (Trigger - Run Summer <gen> (ignoring conditions)) else do (Do nothing)
      • If (Weather Equal to 2) then do (Trigger - Run Fall <gen> (ignoring conditions)) else do (Do nothing)
      • If (Weather Equal to 3) then do (Trigger - Run Winter <gen> (ignoring conditions)) else do (Do nothing)
  • Night
    • Events
      • Game - The in-game time of day becomes Equal to 16.00
    • Conditions
    • Actions
      • Environment - Turn (Last created weather effect) Off
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Weather Equal to 1
        • Then - Actions
          • Environment - Turn Night On
        • Else - Actions
          • Environment - Turn NightRain On
  • Summer
    • Events
    • Conditions
    • Actions
      • Environment - Turn Summer On
 
Level 4
Joined
Jun 30, 2008
Messages
92
I've got it figured out now.


  • Seasons
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Environment - Create at (Playable map area) the weather effect Rays Of Light
      • Set Summer = (Last created weather effect)
      • Environment - Remove (Last created weather effect)
      • Environment - Create at (Playable map area) the weather effect Dungeon White Fog (Light)
      • Set Fall = (Last created weather effect)
      • Environment - Remove (Last created weather effect)
      • Environment - Create at (Playable map area) the weather effect Northrend Snow (Heavy)
      • Set Winter = (Last created weather effect)
      • Environment - Remove (Last created weather effect)
      • Environment - Create at (Playable map area) the weather effect Rays Of Moonlight
      • Set Night = (Last created weather effect)
      • Environment - Remove (Last created weather effect)
      • Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Heavy)
      • Set NightRain = (Last created weather effect)
      • Environment - Remove (Last created weather effect)
  • Day
    • Events
      • Game - The in-game time of day becomes Equal to 8.00
    • Conditions
    • Actions
      • Environment - Turn (Last created weather effect) Off
      • Set Weather = (Weather + 1)
      • If (Weather Equal to 4) then do (Set Weather = 1) else do (Do nothing)
      • If (Weather Equal to 1) then do (Trigger - Run Summer <gen> (ignoring conditions)) else do (Do nothing)
      • If (Weather Equal to 2) then do (Trigger - Run Fall <gen> (ignoring conditions)) else do (Do nothing)
      • If (Weather Equal to 3) then do (Trigger - Run Winter <gen> (ignoring conditions)) else do (Do nothing)
  • Summer
    • Events
    • Conditions
    • Actions
      • Environment - Turn Summer On
  • Winter
    • Events
    • Conditions
    • Actions
      • Environment - Turn Winter On
  • Fall
    • Events
    • Conditions
    • Actions
      • Environment - Turn Fall On
  • Night
    • Events
      • Game - The in-game time of day becomes Equal to 16.00
    • Conditions
    • Actions
      • Environment - Turn (Last created weather effect) Off
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Weather Equal to 1
        • Then - Actions
          • Environment - Turn Night On
        • Else - Actions
          • Environment - Turn NightRain On
 
Status
Not open for further replies.
Top