hello i need combining2 scripts into one
first script
;Artificial Intelligence Script
;Header
desc = twistactivateifused
;Triggers
:state=0:animate=0,state=1
:state=1,plrusingaction=1:animate=1,activateifused=1
;End of Script
second script
;Artificial Intelligence Script
;Header
desc = Switch Activate (toggle on and off) animated
;Triggers
:state=0:dimvar=allsreset,setvar=allsreset 0,dimlocalvar=hasbeenreset,alwaysactive=1,hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pressentertouse.tga,hudname=useswitchprompt,hudhide=1,hudmake=display,state=10
:plrdistwithin=100,pickobject=1:hudshow=useswitchprompt,hudfadeout=useswitchprompt
:state=10,plrdistwithin=100,pickobject=1,plrusingaction=1,varequal=nextsnum %sid:state=6,plrsound=$0
:state=10,plrdistwithin=100,pickobject=1,plrusingaction=1,varnotequal=nextsnum %sid:setvar=resetswitches 1,state=3
:state=6:incframe=0
:state=6,frameatend=0:state=4
:state=4,varnotequal=nextsnum %scount:addvar=nextsnum 1,state=3
:state=4,varequal=nextsnum %scount:activateifused=1,state=5
:varequal=resetswitches 1,varequal=hasbeenreset 0:setvar=hasbeenreset 1,setvar=nextsnum 1,addvar=allsreset 1,plrsound=$1,setframe=0
:state=3,plrusingaction=0,varequal=resetswitches 0:state=10
:vargreater=allsreset %scount:setvar=resetswitches 0,setvar=allsreset 0,setvar=hasbeenreset 0
:varequal=allsreset 0:setvar=hasbeenreset 0
;End of Script
so the final script, if you press Enter on the switch, every switch has start one entity animation, then the entities start the animation and if I activate all the switches in the correct order, all the entities animated and open the door thanks for help
My PC specs: AMD FX 4300 3,80Ghz
8 GB RAM
GIGABYTE R9 280 Ultra Durable VGA 3GB