System Weather System

Naminator

Coming Back To Life
Reaction score
76
Well. I made this Weather System. I sea people claiming for random weather, it's not so hard to do but here it's is.

Make a system to change things. One show Celcius and Kilometers and the other show Fahrenheit and Miles.

Celcius Km System

You have to type what do you want. For the first this:

Code:
First System
    Events
        Player - Player 1 (red) types a chat message containing -First weather as An exact match
    Conditions
    Actions
        Game - Display to (All players) for 10.00 seconds the text:                                                                    |cffffcc00First weather activated.
        Environment - Remove (Last created weather effect)
        Trigger - Turn on Celcius Km System <gen>
        Trigger - Turn off Fahrenheit Miles System <gen>

Code:
Celcius Km System
    Events
        Time - Every 20.00 seconds of game time
    Conditions
    Actions
        Environment - Remove (Last created weather effect)
        Wait 2.00 seconds
        Set RandomWeather = (Random integer number between 1 and 4)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomWeather Equal to 1
            Then - Actions
                Game - Display to (All players) for 10.00 seconds the text: The weather predict...
                Game - Display to (All players) for 10.00 seconds the text: (|cffffcc00Temperature:|r  + ((String((Random integer number between 9 and 18))) + ºC))
                Game - Display to (All players) for 10.00 seconds the text: (|cffffcc00Wind:|r + ((String((Random integer number between 6 and 12))) +  Km/h))
                Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Heavy)
                Environment - Turn (Last created weather effect) On
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomWeather Equal to 2
            Then - Actions
                Game - Display to (All players) for 10.00 seconds the text: The weather predict...
                Game - Display to (All players) for 10.00 seconds the text: (|cffffcc00Temperature:|r  + ((String((Random integer number between -10 and -1))) + ºC))
                Game - Display to (All players) for 10.00 seconds the text: (|cffffcc00Wind:|r  + ((String((Random integer number between 5 and 10))) +  Km/h))
                Environment - Create at (Playable map area) the weather effect Northrend Blizzard
                Environment - Turn (Last created weather effect) On
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomWeather Equal to 3
            Then - Actions
                Game - Display to (All players) for 10.00 seconds the text: The weather predict...
                Game - Display to (All players) for 10.00 seconds the text: (|cffffcc00Temperature:|r  + ((String((Random integer number between 25 and 38))) + ºC))
                Game - Display to (All players) for 10.00 seconds the text: (|cffffcc00Wind:|r  + ((String((Random integer number between 0 and 4))) +  Km/h))
                Environment - Create at (Playable map area) the weather effect Rays Of Light
                Environment - Turn (Last created weather effect) On
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomWeather Equal to 4
            Then - Actions
                Game - Display to (All players) for 10.00 seconds the text: The weather predict...
                Game - Display to (All players) for 10.00 seconds the text: (|cffffcc00Temperature:|r  + ((String((Random integer number between 4 and 14))) + ºC))
                Game - Display to (All players) for 10.00 seconds the text: (|cffffcc00Wind:|r  + ((String((Random integer number between 15 and 28))) +  Km/h))
                Environment - Create at (Playable map area) the weather effect Outland Wind (Heavy)
                Environment - Turn (Last created weather effect) On
            Else - Actions

Fahrenheit Miles System


Code:
Second System
    Events
        Player - Player 1 (red) types a chat message containing -Second weather as An exact correspondence
    Conditions
    Actions
        Game - Display to (All players) for 10.00 seconds the text:                                                                    |cffffcc00Second weather activated.
        Environment - Remove (Last created weather effect)
        Trigger - Turn on Fahrenheit Miles System <gen>
        Trigger - Turn off Celcius Km System <gen>

Code:
Fahrenheit Miles System
    Events
        Time - Every 25.00 seconds of game time
    Conditions
    Actions
        Environment - Remove (Last created weather effect)
        Wait 2.00 seconds
        Set RandomWeather = (Random integer number between 1 and 4)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomWeather Equal to 1
            Then - Actions
                Game - Display to (All players) for 10.00 seconds the text: The weather predict...
                Game - Display to (All players) for 10.00 seconds the text: (|cffffcc00Temperature:|r  + ((String((Random real number between 48.20 and 64.40))) + ºF))
                Game - Display to (All players) for 10.00 seconds the text: (|cffffcc00Wind:|r  + ((String((Random integer number between 4 and 8))) +  Miles/h))
                Environment - Create at (Playable map area) the weather effect Ashenvale Rain (Heavy)
                Environment - Turn (Last created weather effect) On
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomWeather Equal to 2
            Then - Actions
                Game - Display to (All players) for 10.00 seconds the text: The weather predict...
                Game - Display to (All players) for 10.00 seconds the text: (|cffffcc00Temperature:|r  + ((String((Random real number between 14.00 and 30.20))) + ºF))
                Game - Display to (All players) for 10.00 seconds the text: (|cffffcc00Wind:|r  + ((String((Random integer number between 5 and 10))) +  Miles/h))
                Environment - Create at (Playable map area) the weather effect Northrend Blizzard
                Environment - Turn (Last created weather effect) On
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomWeather Equal to 3
            Then - Actions
                Game - Display to (All players) for 10.00 seconds the text: The weather predict...
                Game - Display to (All players) for 10.00 seconds the text: (|cffffcc00Temperature:|r  + ((String((Random real number between 77.00 and 100.40))) + ºF))
                Game - Display to (All players) for 10.00 seconds the text: (|cffffcc00Wind:|r  + ((String((Random integer number between 0 and 3))) +  Miles/h))
                Environment - Create at (Playable map area) the weather effect Rays Of Light
                Environment - Turn (Last created weather effect) On
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RandomWeather Equal to 4
            Then - Actions
                Game - Display to (All players) for 10.00 seconds the text: The weather predict...
                Game - Display to (All players) for 10.00 seconds the text: (|cffffcc00Temperature:|r  + ((String((Random real number between 39.20 and 57.20))) + ºF))
                Game - Display to (All players) for 10.00 seconds the text: (|cffffcc00Wind:|r  + ((String((Random integer number between 10 and 18))) +  Miles/h))
                Environment - Create at (Playable map area) the weather effect Outland Wind (Heavy)
                Environment - Turn (Last created weather effect) On
            Else - Actions

In the message part. Be creative! :D

weathersystemha6.jpg
 

Attachments

  • Weather System.w3x
    13 KB · Views: 560

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
AHH! SPANISH EDITOR! :p Looks good. I'm not sure, but do Weather Effects leak?
 

Sim

Forum Administrator
Staff member
Reaction score
534
Random suggestion:

Add a way to switch between miles and kilometers per hour, as well as Celcius and Fahrenheit degrees.

Also, "Tempeture" should be Temperature ;)
 

Naminator

Coming Back To Life
Reaction score
76
Random suggestion:

Add a way to switch between miles and kilometers per hour, as well as Celcius and Fahrenheit degrees.

Also, "Tempeture" should be Temperature ;)

What do you mean by swicht? You me random miles and kilometers or just to change it in the text to put mile and kilometers per hour, Celcius and Fahrenheit?
 

Anachron

New Member
Reaction score
53
Celsius and Fahrenheit are temperature values, europe and other..
Celsius 0 is cold point, Fahrenheit 31 I think is it aswell.
So add 31 if you change it to fharenheit from Celsius.
And Km=1,4 miles btw. ;) ( x0.6 from miles in km, x 1,4 vom kmin miles )
 

Naminator

Coming Back To Life
Reaction score
76
Celsius and Fahrenheit are temperature values, europe and other..
Celsius 0 is cold point, Fahrenheit 31 I think is it aswell.
So add 31 if you change it to fharenheit from Celsius.
And Km=1,4 miles btw. ;) ( x0.6 from miles in km, x 1,4 vom kmin miles )

I already know that. :p He means like a system like, instead of showing Celcius and Kilometeres. Show Fahrenheit and Miles.

Working on that. Soon be updated.
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
Nice one...:D
But i wonder...what type of map will be using system like this? temperature and wind spd
 

Naminator

Coming Back To Life
Reaction score
76
Nice one...:D
But i wonder...what type of map will be using system like this? temperature and wind spd

What type of map any map. In the other actions you can use how weather can affect unit. Like

Rainy: Slow unit movement
Snow: Slow attack unit
Sun: Normal Function
Wind: Hard to see, so hard to hi.

Can customize this. Invent your own..In rpg..etc.
 

Chocobo

White-Flower
Reaction score
409
What type of map any map. In the other actions you can use how weather can affect unit. Like

Rainy: Slow unit movement
Snow: Slow attack unit
Sun: Normal Function
Wind: Hard to see, so hard to hi.

Can customize this. Invent your own..In rpg..etc.

.. for :
- rainy : put a dummy unit with Endurance Aura, clean up snow dummy and evasion abilities
- snow : put a dummy unit with Endurance Aura, clean up rainy dummy and evasion abilities
- sun : clean up snow dummy, rainy dummy, and evasion abilities
- wind : give evasion to every unit (and also to created units) or use cloud of fog with no art on the entire map (LOL)
 

Naminator

Coming Back To Life
Reaction score
76
.. for :
- rainy : put a dummy unit with Endurance Aura, clean up snow dummy and evasion abilities
- snow : put a dummy unit with Endurance Aura, clean up rainy dummy and evasion abilities
- sun : clean up snow dummy, rainy dummy, and evasion abilities
- wind : give evasion to every unit (and also to created units) or use cloud of fog with no art on the entire map (LOL)

Yes. Just telling Gals how can you make it for any map.
 

Sim

Forum Administrator
Staff member
Reaction score
534
> So add 31 if you change it to fharenheit from Celsius.

False.

To switch between Celcius and Kelvin, you can add/subtract 273.

To switch between Fahrenheit and Celcius is a bit more complicated.

--

You might want to rename the 2 systems :p

"First" and "Second" are not what I call descriptive names.
 

Sim

Forum Administrator
Staff member
Reaction score
534
There there there Naminator, I translated your code.

Also, the weather doesn't show up :p

It said "Snowy" but the result was more like no snow at all!
 

Naminator

Coming Back To Life
Reaction score
76
Maybe you forgot 2 things. Since In my case work, I can see all the weather.

1- Your particles is in Low, change to medium or high (You know..Options>Video>Particles..)
2- When you put, for example -First weather, you have to wait the time that weather change to start seeing.

Hope it's that. :D
 

Sim

Forum Administrator
Staff member
Reaction score
534
The first point proved to be true.

Works very well.

Approved ;)
 

Magentix

if (OP.statement == false) postCount++;
Reaction score
107
Easy way to switch rather accuratly from C° to F° is:

(C°+12)*2 or 2C°+24


Easy way to switch rather accuratly from F° to C° is:

(F°-24)/2 or (F°/2)-12
 

chewett

New Member
Reaction score
0
can you put a celcius and miles system

this would help for me as i am enlish and we are awarkward
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top