Hello, i try to edit the codedoor script to choose between 5 images:
1. shows _ _ _ _ to type code
2. shows first number X _ _ _
3. shows two numbers X X _ _
etc.
;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=55,hudimagefine=gamecore\text\kod1.dds,hudname=enterthecode,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=55,hudimagefine=gamecore\text\kod2.dds,hudname=enterthecode1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=55,hudimagefine=gamecore\text\kod3.dds,hudname=enterthecode2,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=55,hudimagefine=gamecore\text\kod4.dds,hudname=enterthecode3,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=55,hudimagefine=gamecore\text\kod5.dds,hudname=enterthecode4,hudhide=1,hudmake=display,state=20
:state=20: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:hudunshow=enterthecode,hudunshow=enterthecode1,hudunshow=enterthecode2,hudunshow=enterthecode3,hudunshow=enterthecode4
:state=50:state=1
:state=1,plrdistwithin=50:hudshow=enterthecode
:state=1,plrdistwithin=50,scancodekeypressed=79:state=11
:state=1,plrdistwithin=50,scancodekeypressed=80:state=11
:state=1,plrdistwithin=50,scancodekeypressed=81:state=11
:state=1,plrdistwithin=50,scancodekeypressed=75:state=11
:state=1,plrdistwithin=50,scancodekeypressed=76:state=11
:state=1,plrdistwithin=50,scancodekeypressed=77:sound=audiobank\switches\click.wav,hudunshow=enterthecode,hudshow=enterthecode1,state=2,
: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=1,plrdistwithin=51:hudunshow=enterthecode
:state=2:state=3
:state=3,scancodekeypressed=77:state=2
:state=3:state=4
:state=4,plrdistwithin=50,scancodekeypressed=79:sound=audiobank\switches\click.wav,hudunshow=enterthecode1,hudshow=enterthecode2,state=5
:state=4,plrdistwithin=50,scancodekeypressed=80:state=11
:state=4,plrdistwithin=50,scancodekeypressed=81:state=11
:state=4,plrdistwithin=50,scancodekeypressed=75:state=11
: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=4,plrdistwithin=51:hudunshow=enterthecode1
:state=5:state=6
:state=6,scancodekeypressed=79: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:sound=audiobank\switches\click.wav,hudunshow=enterthecode2,hudshow=enterthecode3,state=8
: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=11
: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=7,plrdistwithin=51:hudunshow=enterthecode2
:state=8:state=9
:state=9,scancodekeypressed=81:state=8
:state=9:state=10
:state=10,plrdistwithin=50,scancodekeypressed=79:state=11
:state=10,plrdistwithin=50,scancodekeypressed=80:state=11
:state=10,plrdistwithin=50,scancodekeypressed=81:state=11
:state=10,plrdistwithin=50,scancodekeypressed=75:sound=audiobank\switches\click.wav,hudunshow=enterthecode3,hudshow=enterthecode4,state=12
: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=10,plrdistwithin=51:hudunshow=enterthecode3,hudunshow=enterthecode4
:state=12:activateifused=1,alttexture=1,state=13
:state=13:hudunshow=enterthecode,hudunshow=enterthecode1,hudunshow=enterthecode2,hudunshow=enterthecode3,hudunshow=enterthecode4,state=0
;End of Script
It's strange that it doesn't know (i can only press first number).