Hello All,
In the game i'm currently creating, I'm attempting to create a "Demented Vision" effect, similar to that seen in Dead Space. What I am trying to do is change the light range during the process. For whatever reason, it isn't working. The idea I had uses a variable. The scripts using the variable are posted below.
Set Up Variable
;Artificial Intelligence Script
;Header
desc = Set Up Lights Variable
;Triggers
:state=0:state=1
:state=1:dimvar=lights,setvar=lights 0
;End of Script
Script For Lights
;Artificial Intelligence Script
;Header
desc = Light Toggle With Variable
;Triggers
:state=0:state=1
:state=1,varequal=lights 1:lightrange=0,state=0
:state=1,varequal=lights 0:lightrange=100,state=0
;End of Script
Script Changing The Variable
;Artificial Intelligence Script
;Header
desc = Trigger Vision
;Triggers
:state=0,plrwithinzone=1:activateifused=1,camshake=20,setvar=lights 1,state=1
:state=1:etimerstart,ambience=5,ambienceblue=0,ambiencegreen=0,ambiencered=255,state=2
:state=2,etimergreater=500:camshake=20,state=3
:state=3,etimergreater=1000:camshake=20,state=4
:state=4,etimergreater=1500:camshake=20,state=5
:state=5,etimergreater=2000:camshake=20,state=6
:state=6,etimergreater=2500:camshake=20,state=7
:state=7,etimergreater=3000:camshake=20,state=8
:state=8,etimergreater=3500:camshake=20,state=9
:state=9,etimergreater=4000:setvar=lights 0,camshake=0,ambience=2,ambienceblue=255,ambiencegreen=255,state=10
;End Of Script
If anyone knows where I'm going wrong, or can tinker with it, or can point out how I would get it working, the help would be appreciated.
P.S. I'd be willing to post a tutorial on how to set up a "Demented Vision", though only AFTER the game is finished.
RR3.