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

Random Weather in several Regions HALP

Status
Not open for further replies.
Level 11
Joined
Jun 30, 2008
Messages
580
I want in region 1 random weather is created
I want in region 2 random weather is created.
But only one region has weather.

Also another thing I have a trigger for night and day
At night moonlight is created at region 3
at day rays are created at region 3.

And when it turns to night or day the weather that is already was there disapears.... How do I fix this?
 
  • Weather
  • Events
    • Game - The in-game time becomes Equal to 18.00
  • Conditions
  • Actions
    • If/ Then/ Else
      • If (Conditions)
        • NightOn Not Equal to True
      • Then (Actions)
        • Set NightOn = True
        • Set DayOn = False
        • Environment - Create at Region 0003 <gen> the weather effect Rays of Moonlight
        • Environment - Turn (Last created weather effect) On
      • Else (Actions)
  • Weather2
  • Events
    • Game - The in-game time becomes Equal to 6:30
  • Conditions
  • Actions
    • If/Then/Else
      • If (Conditions)
        • DayOn Not Equal to True
      • Then (Actions)
        • Set NightOn = False
        • Set DayOn = True
        • Environment - Create at Region 0003 <gen> the weather effect Rays of Light
        • Environment - Turn (Last created weather effect) On
 
Level 9
Joined
May 10, 2009
Messages
542
Use If Then Else's for the random weather.
Like, If random integer equal to 1 then blah blah blah,
Set Variable CurrentWeather[string] - LR (light rain...blah blah)
Set Variable CurrentWeatherEffect - last created weather effect, etc.
Ask me if I haven't provided enough help.
 
Status
Not open for further replies.
Top