• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Is this weather trigger leaking?

Status
Not open for further replies.
Level 9
Joined
Sep 15, 2012
Messages
311
  • Weather Effects
    • Events
      • Time - Every 120.00 seconds of game time
    • Conditions
    • Actions
      • Set Weather = (Random percentage)
      • Wait 0.10 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Weather Greater than or equal to 80.00
        • Then - Actions
          • Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Light)
          • Environment - Turn (Last created weather effect) On
          • Set WeatherVar = (Last created weather effect)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Weather Greater than or equal to 60.00
              • Weather Less than or equal to 79.00
            • Then - Actions
              • Environment - Create at (Playable map area) the weather effect Lordaeron Rain (Heavy)
              • Environment - Turn (Last created weather effect) On
              • Set WeatherVar = (Last created weather effect)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Weather Less than or equal to 59.00
                • Then - Actions
                  • Environment - Turn WeatherVar Off
                  • Environment - Remove WeatherVar
                • Else - Actions
If yes, changing to this below, will save the problem?

  • Weather Effects
    • Events
      • Time - Every 120.00 seconds of game time
    • Conditions
    • Actions
      • Set Weather = (Random percentage)
      • Wait 0.10 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Weather Greater than or equal to 80.00
        • Then - Actions
          • Environment - Turn WeatherVar Off
          • Environment - Remove WeatherVar
          • Wait 0.10 seconds
          • Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Light)
          • Environment - Turn (Last created weather effect) On
          • Set WeatherVar = (Last created weather effect)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Weather Greater than or equal to 60.00
              • Weather Less than or equal to 79.00
            • Then - Actions
              • Environment - Turn WeatherVar Off
              • Environment - Remove WeatherVar
              • Wait 0.10 seconds
              • Environment - Create at (Playable map area) the weather effect Lordaeron Rain (Heavy)
              • Environment - Turn (Last created weather effect) On
              • Set WeatherVar = (Last created weather effect)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Weather Less than or equal to 59.00
                • Then - Actions
                  • Environment - Turn WeatherVar Off
                  • Environment - Remove WeatherVar
                • Else - Actions
 
Status
Not open for further replies.
Top