This script has definitely helped me in my game I'm building...
;Artificial Intelligence Script
by TheStoryteller01 2010
;Header
desc=
This script only works with FPSC 1.16.18, because FPGCRAWTEXT is used.
;Made for trigger zones that play information when the player steps into the zone but only once.
While the script is running the player cannot move or use mouselook but still shoot.
The script is running on its own but the player can speed up the display of the messages and ending the script by pressing <Enter>
after each text display.Pressing <Del> at any time ends the script.
;Triggers
:state=0:state=1
:state=1,plrwithinzone=1:timerstart,plrdisable=100000,state=2
:state=2:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=80
:state=2:fpgcrawtext=ENTER TEXT HERE
:state=2,timergreater=500,plrusingaction=1:timerstart,state=3
:state=2,timergreater=3000:timerstart,state=3
:state=2,scancodekeypressed=14:plrdisable=0,state=10
:state=3:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=80
:state=3:fpgcrawtext=ENTER TEXT HERE
:state=3,timergreater=500,plrusingaction=1:timerstart,state=4
:state=3,timergreater=3000:timerstart,state=4
:state=3,scancodekeypressed=14:plrdisable=0,state=10
:state=4:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=80
:state=4:fpgcrawtext=ENTER TEXT HERE
:state=4,timergreater=500,plrusingaction=1:timerstart,state=5
:state=4,timergreater=3000:timerstart,state=5
:state=4,scancodekeypressed=14:plrdisable=0,state=10
:state=5:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=80
:state=5:fpgcrawtext=ENTER TEXT HERE
:state=5,timergreater=500,plrusingaction=1:timerstart,state=6
:state=5,timergreater=3000:timerstart,state=6
:state=5,scancodekeypressed=14:plrdisable=0,state=10
:state=6:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=80
:state=6:fpgcrawtext=ENTER TEXT HERE
:state=6,timergreater=500,plrusingaction=1:timerstart,state=7
:state=6,timergreater=3000:timerstart,state=7
:state=6,scancodekeypressed=14:plrdisable=0,state=10
:state=7:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=80
:state=7:fpgcrawtext=ENTER TEXT HERE
:state=7,timergreater=500,plrusingaction=1:timerstart,state=8
:state=7,timergreater=3000:timerstart,state=8
:state=7,scancodekeypressed=14:plrdisable=0,state=10
:state=8:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=80
:state=8:fpgcrawtext=ENTER TEXT HERE
:state=8,timergreater=500,plrusingaction=1:timerstart,state=9
:state=8,timergreater=3000:timerstart,state=9
:state=8,scancodekeypressed=14:plrdisable=0,state=10
:state=9:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=80
:state=9:fpgcrawtext=ENTER TEXT HERE
:state=9,timergreater=500,plrusingaction=1:plrdisable=0,state=10
:state=9,timergreater=3000:plrdisable=0,state=10
:state=9,scancodekeypressed=14:plrdisable=0,state=10
;End of Script
Things to note:
1) I do not take credit for this script. The credit goes to Storyteller for this, so thank him.
2) Place a trigger zone in your map editor where you want the script to appear.
3) If the script is too long for you, or you don't need to enter that much text, please set the script to state=9 after you're done and delete the rest. The state=9 ends the communication you are making with the player, the entity, etc.
Hope this helps you. Oh, and take people's advice on here like I did. Play around with these scripts and change them to your liking. Test and see what happens. And learn how to script like I'm doing right now.
One last thing: Nickydude's Community Forum FPSC Guide Part 2, I think, has a bunch of scripts you can use, like changing ambience per level, etc. Check out that resource. It will help you out a ton.
--King Cobra