• 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.

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