Hi guys, I'm new, so please forgive me if I make any mistakes.
Anyways, I recently tried two scripts, to see if I had what it takes. One script was to use a button on the keyboard to pick up the key instead of just walking over it. The second was a script to stop the door from saying a key is required to open it, even though you have the key. I wrote them in notepad, and called them "keydooruse.fpi" and "kepickup.fpi" I put these scripts in a folder called "my scripts" in the scriptbank folder where the usual scripts are. Here is what I have...
This is the "keydooruse" script.
;Artificial Intelligence Script
;Header
desc = Key Door (Open 'With Key' and Close)
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecoretextlockeddoor.tga,hudname=keydoorprompt,hudhide=1,hudmake=display :state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecoretextpressentertouse.tga,hudname=entertouse,hudhide=1,hudmake=display,state=10 :state=10,plrdistwithin=60,plrhaskey=0:hudshow=keydoorprompt,hudfadeout=keydoorprompt :state=10,plrdistwithin=60,plrhaskey=1:hudshow=entertouse,hudfadeout=entertouse :state=10,plrdistwithin=60,plrhaskey=1,plrusingaction=1:state=1,setframe=0,sound=$0 :state=1:incframe=0 :state=1,frameatend=0:state=2,coloff :state=2,plrdistfurther=60:state=3,sound=$1,colon :state=3:decframe=0 :state=3,frameatstart=0:state=10,setframe=0
;End of Script
and this one is the "keypickup" script.
;Artificial Intelligence Script
;Header
desc = Pickup Key
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupakey.tga,hudname=keyprompt,hudhide=1,hudmake=display,state=10
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pressentertouse.tga,hudname=usedoorprompt,hudhide=1,hudmake=display
:state=10,plrdistwithin=40;hudshow=usekeyprompt,hudfadeout-=usekeyprompt
:state=10,plrdistwithin=40,plrusingaction=1,playertake,coloff,plrsound=audiobank\misc\ping.wav,hudshow=keyprompt,hudfadeout=keyprompt
:state=1:rundecal=5
;End of Script
~L~