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: 569

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
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.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top