EDIT: The problem is continued below in another post. Please also see this post.
Hello, I'm working with the two triggers below to set fogs in my game. There is a gradual fog change from area to area that is player specific and these triggers are supposed to change the fogs from night to day and visa versa.
I don't know exactly what is wrong but it is not even releasing the game messages I put at the top. Might it not be triggering because of something else in my map? Or is it because something is wrong in the trigger? Whatever the solution, please help.
Thank you very much, I will really appreciate any help and I will +rep.
|| Fade Into Night ||
Hello, I'm working with the two triggers below to set fogs in my game. There is a gradual fog change from area to area that is player specific and these triggers are supposed to change the fogs from night to day and visa versa.
I don't know exactly what is wrong but it is not even releasing the game messages I put at the top. Might it not be triggering because of something else in my map? Or is it because something is wrong in the trigger? Whatever the solution, please help.
Thank you very much, I will really appreciate any help and I will +rep.
|| Fade Into Night ||
-
Events
-
Game - The in-game time of day becomes Equal to 18.00
-
-
Conditions
-
Actions
-
Set LeakPlayerGroup = (All players)
-
Game - Display to LeakPlayerGroup the text: |cFF282870Night Fal...
-
Game - Display to LeakPlayerGroup the text: Be wary of the dark.
-
Player Group - Pick every player in LeakPlayerGroup and do (Actions)
-
Loop - Actions
-
Set SpecificPlayer = (Picked player)
-
Custom script: if GetLocalPlayer() == udg_SpecificPlayer then
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
PlayerIsInArea[(Player number of (Picked player))] Equal to 2
-
-
Then - Actions
-
Set ColorRed = 100.00
-
Set ColorGreen = 100.00
-
Set ColorBlue = 55.00
-
For each (Integer A) from 1 to 50, do (Actions)
-
Loop - Actions
-
Set ColorRed = (ColorRed - 1.00)
-
Set ColorGreen = (ColorGreen - 1.00)
-
Set ColorBlue = (ColorBlue + 0.10)
-
Environment - Set fog to style Linear, z-start 1200.00, z-end 2700.00, density 0.00 and color (ColorRed%, ColorGreen%, ColorBlue%)
-
Wait 0.02 seconds
-
-
-
Environment - Set fog to style Linear, z-start 1200.00, z-end 2700.00, density 0.00 and color (50.00%, 50.00%, 60.00%)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
PlayerIsInArea[(Player number of (Picked player))] Equal to 1
-
PlayerIsInArea[(Player number of (Picked player))] Equal to 3
-
-
-
-
Then - Actions
-
Set ColorRed = 10.00
-
Set ColorGreen = 35.00
-
For each (Integer A) from 1 to 50, do (Actions)
-
Loop - Actions
-
Set ColorRed = (ColorRed - 0.20)
-
Set ColorGreen = (ColorGreen - 0.40)
-
Environment - Set fog to style Linear, z-start 600.00, z-end 2100.00, density 0.00 and color (ColorRed%, ColorGreen%, 15.00%)
-
Wait 0.02 seconds
-
-
-
Environment - Set fog to style Linear, z-start 600.00, z-end 2100.00, density 0.00 and color (0.00%, 15.00%, 15.00%)
-
-
Else - Actions
-
-
Custom script: endif
-
-
-
Custom script: call DestroyForce(udg_LeakPlayerGroup)
-
-
Events
-
Game - The in-game time of day becomes Equal to 6.00
-
-
Conditions
-
Actions
-
Set LeakPlayerGroup = (All players)
-
Game - Display to LeakPlayerGroup the text: |cFFAEE0FFDay Rises...
-
Game - Display to LeakPlayerGroup the text: (Today is: + GameDateString)
-
Player Group - Pick every player in LeakPlayerGroup and do (Actions)
-
Loop - Actions
-
Set SpecificPlayer = (Picked player)
-
Custom script: if GetLocalPlayer() == udg_SpecificPlayer then
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
PlayerIsInArea[(Player number of (Picked player))] Equal to 2
-
-
Then - Actions
-
Set ColorRed = 50.00
-
Set ColorGreen = 50.00
-
Set ColorBlue = 60.00
-
For each (Integer A) from 1 to 50, do (Actions)
-
Loop - Actions
-
Set ColorRed = (ColorRed + 1.00)
-
Set ColorGreen = (ColorGreen + 1.00)
-
Set ColorBlue = (ColorBlue - 0.10)
-
Environment - Set fog to style Linear, z-start 1200.00, z-end 2700.00, density 0.00 and color (ColorRed%, ColorGreen%, ColorBlue%)
-
Wait 0.02 seconds
-
-
-
Environment - Set fog to style Linear, z-start 1200.00, z-end 2700.00, density 0.00 and color (100.00%, 100.00%, 55.00%)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
PlayerIsInArea[(Player number of (Picked player))] Equal to 1
-
PlayerIsInArea[(Player number of (Picked player))] Equal to 3
-
-
-
-
Then - Actions
-
Set ColorRed = 0.00
-
Set ColorGreen = 15.00
-
For each (Integer A) from 1 to 50, do (Actions)
-
Loop - Actions
-
Set ColorRed = (ColorRed + 0.20)
-
Set ColorGreen = (ColorGreen + 0.40)
-
Environment - Set fog to style Linear, z-start 600.00, z-end 2100.00, density 0.00 and color (ColorRed%, ColorGreen%, 15.00%)
-
Wait 0.02 seconds
-
-
-
Environment - Set fog to style Linear, z-start 600.00, z-end 2100.00, density 0.00 and color (10.00%, 35.00%, 15.00%)
-
-
Else - Actions
-
-
Custom script: endif
-
-
-
Custom script: call DestroyForce(udg_LeakPlayerGroup)
-
Last edited: