Hi all, Today I have a question about using if else statements in conditional branches. I'm using a basic day/time system, and I'd like to have 3 different screen tints for different times of day. Normal for day, sunset for the hours between 6 and 8 pm, and then dark for night. How would I implement that in the conditional branch?
This is what I tried, but it flashes from sunset to dark and back again over and over after 8pm.
If : Hours >= 18
Tint Screen : (68,-34,-34,0), 60 frames (Wait)
If : Hours >= 20
Tint Screen : (-68,-68,0,68), 60 frames (Wait)
:End
:Else
Tint Screen : (0,0,0,0), 60 frames (Wait)
How do I use an if else in a conditional branch or check for a variable that's within a range? I'm not a scripter to any degree so it doesn't make sense to me.
Thanks
This is what I tried, but it flashes from sunset to dark and back again over and over after 8pm.
If : Hours >= 18
Tint Screen : (68,-34,-34,0), 60 frames (Wait)
If : Hours >= 20
Tint Screen : (-68,-68,0,68), 60 frames (Wait)
:End
:Else
Tint Screen : (0,0,0,0), 60 frames (Wait)
How do I use an if else in a conditional branch or check for a variable that's within a range? I'm not a scripter to any degree so it doesn't make sense to me.
Thanks