The 2 commands are used all throughout the script, so I'll just post the whole thing.
;Artificial Intelligence Script
by TheStoryteller01 2010
;Header
desc=
This script only works with FPSC 1.16.18, because FPGCRAWTEXT is used AND if using a mod that supports the PICKOBJECT condition.
Made for non-weapon/non-ammo items that can be picked up.
To start the script at any time, the player has to move the cursor over the item and press <Enter>.
While the script is running the player cannot move or use mouselook but still shoot. Pressing <Del> at any time ends the script.
Best ist to set the item properties "Isimmobile" to "Yes" and "Strength" to "0" (=indestructible)
To skip the second line of text (the "flavour text") delete all "state=4" lines and rename "state=4" in the 5th line to "state=6"
;Triggers
:state=0:state=1
:state=1,pickobject=1,plrdistwithin=50,plrusingaction=1:timerstart,plrdisable=100000,state=2,
:state=2:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=2:fpgcrawtext=There's a rusty key here.
:state=2,timergreater=500,plrusingaction=1:timerstart,state=4
:state=2,scancodekeypressed=14:plrdisable=0,state=0
:state=4:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=4:fpgcrawtext=It's labeled "Prep Room".
:state=4,timergreater=500,plrusingaction=1:timerstart,state=6
:state=4,scancodekeypressed=14:plrdisable=0,state=0
:state=6:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=6:fpgcrawtext=Press <Enter> to take or <Del> to leave it here.
:state=6,timergreater=500,plrusingaction=1:plrsound=audiobank\thestoryteller01\keypickup.wav,state=9
:state=6,scancodekeypressed=14:plrdisable=0,state=0
:state=9:playertake,coloff,plrdisable=0
;End of Script
I've entered my own text to display, but everything else is as TheStoryTeller01 provided it.
EDIT: I'm aware that some characters don't work with FPGCRAWTEXT, and I usually just swap those out with ones that do afterwards. But it seems as though the script isn't even being run. I have also tried 2 other scripts, even on another object. But the same thing happens.
"Never tell me the sky's the limit when there are footprints on the moon."