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!
Hey.
Can someone help me with make Weather System?
I want to weather change every 2 mins to diffrent one .
But totaly i dont know how to do this.
Hope you understand me .
Regards
Hm, ok let's see. Start by creating a Weather-type variable.
Trigger
Events
Map Initialization
Conditions
Hashtable - Create a hashtable
Set Hashtable = (Last created hashtable)
Set Weather[1] = Snow
Set Weather[2] = Rain
Set Weather[3] = Wind (Heavy)
Set ...
Set RandomInteger = (Random integer from 1 to X) //X is the maximum array, for this specific example, it's "3", because I created 3 arrays for the "Weather" variable.
Environment - Create at (Playable map area) the weather effect Weather[(RandomInteger)]
Environment - Turn (Last created weather effect) On
Hashtable - Save (RandomInteger) as (Key(number)) of (Key(Playable Map Area)) in Hashtable
Trigger2
Events
Time - Every 120.00 seconds of game-time
Conditions
Actions
Set RandomInteger = (Random integer from 1 to X)
If (All conditions are true) then do (Actions) else do (Actions)
If - Conditions
(RandomInteger) Not Equal to (Load (Key(number)) of (Key(Playable Map Area)) from Hashtable)
Then - Actions
Hashtable - Clear all child hashtables of child (Key (Playable map area)) in (Hashtable)
Environment - Create at (Playable map area) the weather effect Weather[(RandomInteger)]
Environment - Turn (Last created weather effect) On
Hashtable - Save (RandomInteger) as (Key(number)) of (Key(Playable Map Area)) in Hashtable
RandomInteger is an Integer variable.
Weather is a Weather-type variable.
Hashtable is a hashtable variable.
Note: weather-type variables don't exist and never have (lol @ 2010 solution). You'll have to use weather variables directly.
Yes. I don't see any reason to store any information in a hashtable like these fellas were doing here. You could just use an integer variable or a weather variable to store the 'current' weather.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.