- Joined
- Jun 11, 2017
- Messages
- 993
I have simple weather system, that spawns weather in zones (map, divided by regions). I use loop to spawn in all zone regions, but message about happened weather shows, however weather isn't.
Question is: how I can show weather?
Post trigger below:
Question is: how I can show weather?
Post trigger below:
-
Events
-
Time - ForestTimer expires
-
-
Conditions
-
ForestWeatherIsOn Not equal to True
-
-
Actions
-
Trigger - Turn off (This trigger)
-
-------- [I]Randomize Weather Effect[/I] --------
-
Set VariableSet ForestWeatherRandom = (Random integer number between 10 and 100)
-
-------- [I]Nothing[/I] --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
ForestWeatherRandom Less than 75
-
-
Then - Actions
-
Game - Display to (All players) the text: [SYSTEM] Forest - N...
-
-------- Clear Weather Random Data --------
-
Set VariableSet ForestTimerTime = 0
-
Set VariableSet ForestWeatherRandom = 0
-
-------- Randomize New Weather Time --------
-
Set VariableSet ForestTimerTime = (Random integer number between 280 and 360)
-
-------- Start New Timer --------
-
Countdown Timer - Start ForestTimer as a One-shot timer that will expire in (Real(ForestTimerTime)) seconds
-
-------- Enable Weather Trigger --------
-
Trigger - Turn on (This trigger)
-
-------- Remove From Trigger Queue --------
-
Trigger - Remove (This trigger) from the trigger queue
-
-
Else - Actions
-
-------- [I]Light Rain[/I] --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
ForestWeatherRandom Greater than 75
-
ForestWeatherRandom Less than 84
-
-
Then - Actions
-
Game - Display to (All players) the text: [SYSTEM] Forest - L...
-
-------- Create Weather Effects & Forest is on --------
-
For each (Integer A) from 1 to 11, do (Actions)
-
Loop - Actions
-
Environment - Create at ForestWeather[(Integer A)] the weather effect Lordaeron Rain (Light)
-
Set VariableSet ForestWeatherSFX[(Integer A)] = (Last created weather effect)
-
Environment - Turn (Last created weather effect) On
-
-
-
Set VariableSet ForestWeatherIsOn = True
-
-------- Clear Weather Random Data --------
-
Set VariableSet ForestTimerTime = 0
-
Set VariableSet ForestWeatherRandom = 0
-
-------- Randomize New Weather Time --------
-
Set VariableSet ForestTimerTime = (Random integer number between 70 and 150)
-
-------- Start New Timer --------
-
Countdown Timer - Start ForestTimer as a One-shot timer that will expire in (Real(ForestTimerTime)) seconds
-
-------- Enable Weather Remover --------
-
Trigger - Turn on WeatherSystem DisableForest 01 <gen>
-
Trigger - Remove (This trigger) from the trigger queue
-
-
Else - Actions
-
-------- [I]Heavy Rain[/I] --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
ForestWeatherRandom Greater than 84
-
ForestWeatherRandom Less than 96
-
-
Then - Actions
-
Game - Display to (All players) the text: [SYSTEM] Forest - H...
-
-------- Create Weather Effects & Forest is on --------
-
For each (Integer A) from 1 to 11, do (Actions)
-
Loop - Actions
-
Environment - Create at ForestWeather[(Integer A)] the weather effect Lordaeron Rain (Heavy)
-
Set VariableSet ForestWeatherSFX[(Integer A)] = (Last created weather effect)
-
Environment - Turn (Last created weather effect) On
-
-
-
Set VariableSet ForestWeatherIsOn = True
-
-------- Clear Weather Random Data --------
-
Set VariableSet ForestTimerTime = 0
-
Set VariableSet ForestWeatherRandom = 0
-
-------- Randomize New Weather Time --------
-
Set VariableSet ForestTimerTime = (Random integer number between 50 and 100)
-
-------- Start New Timer --------
-
Countdown Timer - Start ForestTimer as a One-shot timer that will expire in (Real(ForestTimerTime)) seconds
-
-------- Enable Weather Remover --------
-
Trigger - Turn on WeatherSystem DisableForest 01 <gen>
-
Trigger - Remove (This trigger) from the trigger queue
-
-
Else - Actions
-
-------- [I]Moon Lights[/I] --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
ForestWeatherRandom Greater than or equal to 96
-
IsNight Equal to True
-
-
Then - Actions
-
Game - Display to (All players) the text: [SYSTEM] Forest - M...
-
-------- Create Weather Effects & Forest is on --------
-
For each (Integer A) from 1 to 11, do (Actions)
-
Loop - Actions
-
Environment - Create at ForestWeather[(Integer A)] the weather effect Rays Of Moonlight
-
Set VariableSet ForestWeatherSFX[(Integer A)] = (Last created weather effect)
-
Environment - Turn (Last created weather effect) On
-
-
-
Set VariableSet ForestWeatherIsOn = True
-
-------- Clear Weather Random Data --------
-
Set VariableSet ForestTimerTime = 0
-
Set VariableSet ForestWeatherRandom = 0
-
-------- Randomize New Weather Time --------
-
Set VariableSet ForestTimerTime = (Random integer number between 25 and 70)
-
-------- Start New Timer --------
-
Countdown Timer - Start ForestTimer as a One-shot timer that will expire in (Real(ForestTimerTime)) seconds
-
-------- Enable Weather Remover --------
-
Trigger - Turn on WeatherSystem DisableForest 01 <gen>
-
Trigger - Remove (This trigger) from the trigger queue
-
-
Else - Actions
-
-
-
-
-
-
-
-
-
Events
-
Time - ForestTimer expires
-
-
Conditions
-
ForestWeatherIsOn Equal to True
-
-
Actions
-
Trigger - Turn off (This trigger)
-
-------- *Disable & Remove Weather Effect --------
-
For each (Integer A) from 1 to 11, do (Actions)
-
Loop - Actions
-
Environment - Remove ForestWeatherSFX[(Integer A)]
-
-
-
-------- [I]Disable Forest Boolean[/I] --------
-
Set VariableSet ForestWeatherIsOn = False
-
-------- [I]Reset Weather Intergers[/I] --------
-
Set VariableSet ForestTimerTime = 0
-
Set VariableSet ForestWeatherRandom = 0
-
-------- [I]Randomize Weather Timer[/I] --------
-
Set VariableSet ForestTimerTime = (Random integer number between 280 and 360)
-
-------- [I]Start Weather Timer & Enable Trigger[/I] --------
-
Countdown Timer - Start ForestTimer as a One-shot timer that will expire in (Real(ForestTimerTime)) seconds
-
Trigger - Turn on WeatherSystem SelectForest 01 <gen>
-
Trigger - Remove (This trigger) from the trigger queue
-