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:
Fahrenheit Miles System
In the message part. Be creative!
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!