• 🏆 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!

Changing the weather randomly

Status
Not open for further replies.
Level 2
Joined
Aug 3, 2012
Messages
19
I found this on another forum... here http://www.thehelper.net/threads/random-events.13650/


  • Random weather
    • Events
      • Time - Every (Random real number between 0.00 and 40.00) seconds of game time
    • Conditions
    • Actions
      • Environment - Turn Weather Off
      • Set Weatherintg = (Random integer number between 1 and 3)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Weatherintg Equal to 1
        • Then - Actions
          • Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Heavy)
          • Game - Display to (All players) the text: There has been a ch...
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Weatherintg Equal to 2
        • Then - Actions
          • Environment - Create at (Playable map area) the weather effect Wind (Heavy)
          • Game - Display to (All players) the text: There has been a ch...
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Weatherintg Equal to 3
        • Then - Actions
          • Environment - Create at (Playable map area) the weather effect Dungeon Green Fog (Heavy)
          • Game - Display to (All players) the text: There has been a ch...
        • Else - Actions
      • Environment - Turn Weather On

and it isnt working can someone tell me whats wrong? Weather is a variable Weather Effect and Weatherintg is a variable integer... +Rep for help
 
Status
Not open for further replies.
Top