Need a little help with an existing Door Pin Number script. Here's the one taken from my guide:
;Artificial Intelligence Script
;Header
desc = Key Pad (Enter the correct combination!)
;Must use keypad to the right!
;1 - 79, 2 - 80, 3 - 81, 4 - 75, 5 - 76, 6 - 77, 7 - 71, 8 - 72, 9 - 73, 0 - 82
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecoretextenteraccesscode.tga,hudname=useswitchprompt,hudhide=1,hudmake=display,state=50
:state=50,plrdistwithin=50,scancodekeypressed=79:state=0
:state=50,plrdistwithin=50,scancodekeypressed=80:state=0
:state=50,plrdistwithin=50,scancodekeypressed=81:state=0
:state=50,plrdistwithin=50,scancodekeypressed=75:state=0
:state=50,plrdistwithin=50,scancodekeypressed=76:state=0
:state=50,plrdistwithin=50,scancodekeypressed=77:state=0
:state=50,plrdistwithin=50,scancodekeypressed=71:state=0
:state=50,plrdistwithin=50,scancodekeypressed=72:state=0
:state=50,plrdistwithin=50,scancodekeypressed=73:state=0
:state=50,plrdistwithin=50,scancodekeypressed=82:state=0
:state=50:state=1
:state=1,plrdistwithin=50,scancodekeypressed=79:state=11
:state=1,plrdistwithin=50,scancodekeypressed=80:state=11
:state=1,plrdistwithin=50,scancodekeypressed=81:state=2,sound=$0
:state=1,plrdistwithin=50,scancodekeypressed=75:state=11
:state=1,plrdistwithin=50,scancodekeypressed=76:state=11
:state=1,plrdistwithin=50,scancodekeypressed=77:state=11
:state=1,plrdistwithin=50,scancodekeypressed=71:state=11
:state=1,plrdistwithin=50,scancodekeypressed=72:state=11
:state=1,plrdistwithin=50,scancodekeypressed=73:state=11
:state=1,plrdistwithin=50,scancodekeypressed=82:state=11
:state=2:state=3
:state=3,scancodekeypressed=81:state=2
:state=3:state=4
:state=4,plrdistwithin=50,scancodekeypressed=79:state=11 :state=4,plrdistwithin=50,scancodekeypressed=80:state=11 :state=4,plrdistwithin=50,scancodekeypressed=81:state=11 :state=4,plrdistwithin=50,scancodekeypressed=75:state=5,sound=$0 :state=4,plrdistwithin=50,scancodekeypressed=76:state=11 :state=4,plrdistwithin=50,scancodekeypressed=77:state=11
:state=4,plrdistwithin=50,scancodekeypressed=71:state=11 :state=4,plrdistwithin=50,scancodekeypressed=72:state=11 :state=4,plrdistwithin=50,scancodekeypressed=73:state=11 :state=4,plrdistwithin=50,scancodekeypressed=82:state=11
:state=5:state=6
:state=6,scancodekeypressed=75:state=5 :state=6:state=7
:state=7,plrdistwithin=50,scancodekeypressed=79:state=11 :state=7,plrdistwithin=50,scancodekeypressed=80:state=11 :state=7,plrdistwithin=50,scancodekeypressed=81:state=11 :state=7,plrdistwithin=50,scancodekeypressed=75:state=11 :state=7,plrdistwithin=50,scancodekeypressed=76:state=11 :state=7,plrdistwithin=50,scancodekeypressed=77:state=11 :state=7,plrdistwithin=50,scancodekeypressed=71:state=8,sound=$0 :state=7,plrdistwithin=50,scancodekeypressed=72:state=11 :state=7,plrdistwithin=50,scancodekeypressed=73:state=11 :state=7,plrdistwithin=50,scancodekeypressed=82:state=11
:state=8:state=9
:state=9,scancodekeypressed=71:state=8
:state=9:state=10
:state=10,plrdistwithin=50,scancodekeypressed=79:state=12,sound=$0 :state=10,plrdistwithin=50,scancodekeypressed=80:state=11 :state=10,plrdistwithin=50,scancodekeypressed=81:state=11 :state=10,plrdistwithin=50,scancodekeypressed=75:state=11 :state=10,plrdistwithin=50,scancodekeypressed=76:state=11 :state=10,plrdistwithin=50,scancodekeypressed=77:state=11 :state=10,plrdistwithin=50,scancodekeypressed=71:state=11 :state=10,plrdistwithin=50,scancodekeypressed=72:state=11 :state=10,plrdistwithin=50,scancodekeypressed=73:state=11 :state=10,plrdistwithin=50,scancodekeypressed=82:state=11
:state=12:activateifused=1,alttexture=1,state=13
:state=11:sound=$1,state=0
;End of Script
But I don't think it's complete and I've been trying to get it to work but can't manage it. What bits are missing? Could somebody possibly complete it so I can place the updated version in my guide?