I ran in to a slight problem working on a level recently. The level's concept requires some drastic over all changes to the ambient lighting at various times, which I've been using trigger zones for.
The first zone works perfectly.
;Set Intial Background Music
:state=0,plrwithinzone=1:state=1,musicoverride=$0
;Set Intial Lighting (kinda warm and cheery)
:state=1,plrwithinzone=1:ambience=25,ambiencered=200,ambiencegreen=150,ambienceblue=0
The second zone... Not so much. The audio for it works fine, but the ambient lighting does not change.
:state=0,plrwithinzone=1:state=1,sound=$0
:state=1:timerstart,state=2,ambience=25,ambiencered=200,ambiencegreen=150,ambienceblue=0
; Set the mood (darker)
:state=2,timergreater=500:timerstart,state=3,ambience=24,ambiencered=190,ambiencegreen=140,ambienceblue=0
:state=3,timergreater=500:timerstart,state=4,ambience=23,ambiencered=180,ambiencegreen=130,ambienceblue=0
:state=4,timergreater=500:timerstart,state=5,ambience=22,ambiencered=170,ambiencegreen=120,ambienceblue=0
:state=5,timergreater=500:timerstart,state=6,ambience=21,ambiencered=160,ambiencegreen=110,ambienceblue=0
:state=6,timergreater=500:timerstart,state=7,ambience=20,ambiencered=150,ambiencegreen=100,ambienceblue=0
:state=7,timergreater=500:timerstart,state=8,ambience=19,ambiencered=140,ambiencegreen=90,ambienceblue=0
:state=8,timergreater=500:timerstart,state=9,ambience=18,ambiencered=130,ambiencegreen=80,ambienceblue=0
:state=9,timergreater=500:timerstart,state=10,ambience=17,ambiencered=120,ambiencegreen=70,ambienceblue=0
:state=10,timergreater=500:timerstart,state=11,ambience=16,ambiencered=110,ambiencegreen=60,ambienceblue=0
:state=11,timergreater=500:ambience=15,ambiencered=100,ambiencegreen=50,ambienceblue=0
My goal was to reduce the over-all ambient lighting gradually as a creepy sound effect played. What am I doing wrong here? Any tips?