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

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