I have my own version of Switch Code Script. This is harder to work but it works better than original. Regulal code of that Code Snippet is 1-2-3-4 of right number pad.
Original version bugs: if right code is e.g. 1-2-3-4-5 and you put e.g. 1-5-2-6-3-5-4-5, code is right and door or other entity is action.. ??
Very complicated script, can anybody test?
And, nobody hack!
; Artifical Intelligence Script
; Edited by Arska
; Header
desc = Switch activated (enter pass code=random) Regulal Code 1234 of 0-9
; Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecorehudsenteraccesscode.tga,hudname=useswitchcode,hudhide=1,hudmake=dispaly,state=10
:plrdistwithin=50:hudshow=useswitchcode,hudfadeout=useswitchcode
:state=10,plrdistwithin=50,scancodekeypressed=79:state=11,sound=audiobank/switches/activate.wav
:state=11,plrdistwithin=50,scancodekeypressed=80:state=12,sound=audiobank/switches/activate.wav
:state=12,plrdistwithin=50,scancodekeypressed=81:state=13,sound=audiobank/switches/activate.wav
:state=13,plrdistwithin=50,scancodekeypressed=75:state=14,sound=audiobank/switches/deactivate.wav
:state=10,plrdistwithin=50,scancodekeypressed=71:sound=audiobank/switches/activate.wav
:state=10,plrdistwithin=50,scancodekeypressed=72:sound=audiobank/switches/activate.wav
:state=10,plrdistwithin=50,scancodekeypressed=73:sound=audiobank/switches/activate.wav
:state=10,plrdistwithin=50,scancodekeypressed=75:sound=audiobank/switches/activate.wav
:state=10,plrdistwithin=50,scancodekeypressed=76:sound=audiobank/switches/activate.wav
:state=10,plrdistwithin=50,scancodekeypressed=77:sound=audiobank/switches/activate.wav
:state=10,plrdistwithin=50,scancodekeypressed=80:sound=audiobank/switches/activate.wav
:state=10,plrdistwithin=50,scancodekeypressed=81:sound=audiobank/switches/activate.wav
:state=10,plrdistwithin=50,scancodekeypressed=82:sound=audiobank/switches/activate.wav
:state=11,plrdistwithin=50,scancodekeypressed=71:state=10,sound=audiobank/switches/activate.wav
:state=11,plrdistwithin=50,scancodekeypressed=72:state=10,sound=audiobank/switches/activate.wav
:state=11,plrdistwithin=50,scancodekeypressed=73:state=10,sound=audiobank/switches/activate.wav
:state=11,plrdistwithin=50,scancodekeypressed=75:state=10,sound=audiobank/switches/activate.wav
:state=11,plrdistwithin=50,scancodekeypressed=76:state=10,sound=audiobank/switches/activate.wav
:state=11,plrdistwithin=50,scancodekeypressed=77:state=10,sound=audiobank/switches/activate.wav
:state=11,plrdistwithin=50,scancodekeypressed=80:state=10,sound=audiobank/switches/activate.wav
:state=11,plrdistwithin=50,scancodekeypressed=81:state=10,sound=audiobank/switches/activate.wav
:state=11,plrdistwithin=50,scancodekeypressed=82:state=10,sound=audiobank/switches/activate.wav
:state=12,plrdistwithin=50,scancodekeypressed=71:state=10,sound=audiobank/switches/activate.wav
:state=12,plrdistwithin=50,scancodekeypressed=72:state=10,sound=audiobank/switches/activate.wav
:state=12,plrdistwithin=50,scancodekeypressed=73:state=10,sound=audiobank/switches/activate.wav
:state=12,plrdistwithin=50,scancodekeypressed=75:state=10,sound=audiobank/switches/activate.wav
:state=12,plrdistwithin=50,scancodekeypressed=76:state=10,sound=audiobank/switches/activate.wav
:state=12,plrdistwithin=50,scancodekeypressed=77:state=10,sound=audiobank/switches/activate.wav
:state=12,plrdistwithin=50,scancodekeypressed=79:state=10,sound=audiobank/switches/activate.wav
:state=12,plrdistwithin=50,scancodekeypressed=81:state=10,sound=audiobank/switches/activate.wav
:state=12,plrdistwithin=50,scancodekeypressed=82:state=10,sound=audiobank/switches/activate.wav
:state=13,plrdistwithin=50,scancodekeypressed=71:state=10,sound=audiobank/switches/activate.wav
:state=13,plrdistwithin=50,scancodekeypressed=72:state=10,sound=audiobank/switches/activate.wav
:state=13,plrdistwithin=50,scancodekeypressed=73:state=10,sound=audiobank/switches/activate.wav
:state=13,plrdistwithin=50,scancodekeypressed=75:state=10,sound=audiobank/switches/activate.wav
:state=13,plrdistwithin=50,scancodekeypressed=76:state=10,sound=audiobank/switches/activate.wav
:state=13,plrdistwithin=50,scancodekeypressed=77:state=10,sound=audiobank/switches/activate.wav
:state=13,plrdistwithin=50,scancodekeypressed=79:state=10,sound=audiobank/switches/activate.wav
:state=13,plrdistwithin=50,scancodekeypressed=80:state=10,sound=audiobank/switches/activate.wav
:state=13,plrdistwithin=50,scancodekeypressed=82:state=10,sound=audiobank/switches/activate.wav
:state=14:state=1,plrsound=$0,activateifused=1,alttexture=1
:state=1,plrusingaction=0:state=2
:state=2,plrdistwithin=50,plrusingaction=1:state=3,plrsound=$1,activateifused=0,alttexture=0
:state=3,plrusingaction=0:state=10
; End of Script