Код
;Artificial Intelligence Script
;Header
desc = FakeSteps
;Triggers
:state=0:dimvar=footstep,setvar=footstep 100,etimerstart,state=1
:state=1,keypressed=200 1,plrnotrunning:etimerstart,state=10
:state=1,keypressed=203 1,plrnotrunning:etimerstart,state=10
:state=1,keypressed=205 1,plrnotrunning:etimerstart,state=10
:state=1,keypressed=208 1,plrnotrunning:etimerstart,state=10
:state=1,keypressed=17 1,plrnotrunning:etimerstart,state=10
:state=1,keypressed=30 1,plrnotrunning:etimerstart,state=10
:state=1,keypressed=31 1,plrnotrunning:etimerstart,state=10
:state=1,keypressed=32 1,plrnotrunning:etimerstart,state=10
:state=1,keypressed=200 1,plrisrunning:etimerstart,state=20
:state=1,keypressed=203 1,plrisrunning:etimerstart,state=20
:state=1,keypressed=205 1,plrisrunning:etimerstart,state=20
:state=1,keypressed=208 1,plrisrunning:etimerstart,state=20
:state=1,keypressed=17 1,plrisrunning:etimerstart,state=20
:state=1,keypressed=30 1,plrisrunning:etimerstart,state=20
:state=1,keypressed=31 1,plrisrunning:etimerstart,state=20
:state=1,keypressed=32 1,plrisrunning:etimerstart,state=20
:state=10,etimergreater=250:state=11
:state=11,random=2,varnotequal=footstep 3:plrsound=audiobank\user\footsteps11.wav,setvar=footstep 3,etimerstart,state=50
:state=11,random=1,varnotequal=footstep 2:plrsound=audiobank\user\footsteps22.wav,setvar=footstep 2,etimerstart,state=50
:state=11,random=0,varnotequal=footstep 1:plrsound=audiobank\user\footsteps33.wav,setvar=footstep 1,etimerstart,state=50
:state=50,etimergreater=500:state=1
:state=20,etimergreater=200:state=21
:state=21,random=2,varnotequal=footstep 3:plrsound=audiobank\user\footsteps11.wav,setvar=footstep 3,etimerstart,state=100
:state=21,random=1,varnotequal=footstep 2:plrsound=audiobank\user\footsteps22.wav,setvar=footstep 2,etimerstart,state=100
:state=21,random=0,varnotequal=footstep 1:plrsound=audiobank\user\footsteps33.wav,setvar=footstep 1,etimerstart,state=100
:state=100,etimergreater=300:state=1
:varequal=win 5:destroy
;End of Script