Hello all I have created a key pickup with text. It allows for the player to need to press enter to pick it up. When it gets picked up it then plays a sound and displays two messages to let the player know he has picked up a key and what door it has unlocked. I found this useful as a detailed key script. I hope you guys find it just as useful.
;HEADER
DESC= Key Pickup script with display text!
;TRIGGERS
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pressentertouse.tga,hudname=useswitchprompt,hudhide=1,hudmake=display,state=1
:state=1,plrdistwithin=75:hudshow=useswitchprompt,hudfadeout=useswitchprompt
:state=1,plrdistwithin=75,plrusingaction=1:state=2,playertake,coloff,plrsound=audiobank\misc\ping.wav
:state=2:etimerstart,state=5
:State=5:fpgcrawtextsize=20,fpgcrawtextfont=verdana,fpgcrawtextr=200,fpgcrawtextg=0,fpgcrawtextb=0,fpgcrawtextx=50,fpgcrawtexty=40
:state=5:fpgcrawtext=*Picked up Key.
:STATE=5,ETIMERGREATER=1500:STATE=6
:State=6:fpgcrawtextsize=20,fpgcrawtextfont=verdana,fpgcrawtextr=200,fpgcrawtextg=0,fpgcrawtextb=0,fpgcrawtextx=50,fpgcrawtexty=40
:state=6:fpgcrawtext=*Keycode for confrence room obtained.,STATE=7
:state=7:state=8
;END OF SCRIPT
Place this script in the main of a key.
IF YOUR NOT FAMILIAR WITH THE FPGCRAWTEXT COMMAND WHERE IT READS "FPGCRAWTEXT=" JUST REPLACE WITH WHATEVER YOU WANT IT TO READ.ADJUST COLORS AND POSITIONS AS DESIRED.
ONCE AGAIN I HAVE TO EXTEND THANKS TO ALL IN THE FORUMS FOR WITHOUT YOU I NEVER COULD HAVE WORKED THIS SCRIPT OUT.
End result made by Runiker, Runihadacow.