• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • The Hive's 34th Texturing Contest: Void is now concluded, time to vote for your favourite set of icons! Click here to vote!

help with weather

Status
Not open for further replies.
Level 10
Joined
Feb 19, 2006
Messages
237
Can someone please tell me how i can make a simple weather system.

This is what i want.

Every 120 seconds, pick a random number from 1-4

If random number =1 then make "weather rain" (maybe a variable for this??)
If random number =2 then make "weather snow" (variable for this too??)
If random number =3 then make "weather wind" (variable for this too??)
If random number =3 then make "WEATHER NONE) (no variable needed right?)

Thats the outline of the trigger, i have tried this for the past 12 hours or so...lol and it seems like something goes wrong EVERY time...

So i dont think mine works, can someone come up with one? I just want the system to change the weather in the game every 120 seconds to a random weather, and sometimes no weather at all.
 
Level 6
Joined
Nov 28, 2007
Messages
203
  • ftw
    • Events
      • Time - Every 120.00 seconds of game time
    • Conditions
    • Actions
      • Set Integer_Var = (Random integer number between 1 and 4)
      • Environment - Remove WeatherEffect_Var
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Integer_Var Equal to 1
        • Then - Actions
          • Environment - Create at Your Region <gen> the weather effect Ashenvale Rain (Heavy)
          • Set WeatherEffect_Var = (Last created weather effect)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Integer_Var Equal to 2
        • Then - Actions
          • Environment - Create at Your Region <gen> the weather effect Northrend Snow (Heavy)
          • Set WeatherEffect_Var = (Last created weather effect)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Integer_Var Equal to 3
        • Then - Actions
          • Environment - Create at Your Region <gen> the weather effect Outland Wind (Heavy)
          • Set WeatherEffect_Var = (Last created weather effect)
        • Else - Actions
Note: Weather Effects can't be created at too big regions.
 
Level 2
Joined
Aug 15, 2008
Messages
25
Wow... I would like a weather systems like that, but I have no idea about triggers. Only time i played with triggers is in the AoM Map Editor, which is so straight foward.
 
Status
Not open for further replies.
Top