HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Realistic Random Weather/Fog

03-21-2006, 10:23 AM#1
n00b11
yeah like the title says, i need this for my map kinda like 1 time its rains for 4 wc3 hours then it get sunshine and normal again.. and maybe after a while it will get windy for maybe 1-8 hours.. u know what i say? i need realistict, random time, random weather! and afther the weather effects have happend it should ALWAYS go back to normal so it looks realistict..


so anyone has an idea how to do this?
03-21-2006, 10:35 AM#2
Vexorian
It is not that difficult actually.

Trigger:
init
Collapse Events
Map initialization
Conditions
Collapse Actions
Countdown Timer - Start weathertime as a One-shot timer that will expire in (Random real number between 10.00 and 150.00) seconds
Trigger:
weather
Collapse Events
Time - weathertime expires
Conditions
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Random integer number between 1 and 100) <= 60
Collapse Then - Actions
Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Heavy)
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Random integer number between 1 and 40) <= 12
Collapse Then - Actions
Environment - Create at (Playable map area) the weather effect Rays Of Light
Collapse Else - Actions
Environment - Create at (Playable map area) the weather effect Wind (Heavy)
Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Heavy)
Set weffect = (Last created weather effect)
Environment - Turn weffect On
Trigger - Turn off (This trigger)
Trigger - Turn on weatherend <gen>
Countdown Timer - Start weathertime as a One-shot timer that will expire in (Random real number between 10.00 and 50.00) seconds
Trigger (initially turned off):
weatherend
Collapse Events
Time - weathertime expires
Conditions
Collapse Actions
Environment - Remove weffect
Countdown Timer - Start weathertime as a One-shot timer that will expire in (Random real number between 10.00 and 150.00) seconds
Trigger - Turn off (This trigger)
Trigger - Turn on weather <gen>

Required variables:
NameType
weathertimeCountdown timer
weffectWeather effect
03-21-2006, 11:38 AM#3
emjlr3
have you looked at my demo map??

it has just what you are looking for, which happens to me the same thing Vexorian just showed you

http://www.wc3campaigns.net/showthread.php?t=80192
03-21-2006, 03:03 PM#4
n00b11
ehm i dl emjlr3's map that will be easier ;p cause i really suck at doing triggers =) thnx anyway for information
03-21-2006, 03:52 PM#5
Vexorian
you'd eventually have to be kind of good at triggers else you would rely too much on having a team