Here is a quote taken from the FPSC Hints and Tips Guide:
Quote: "Have text appear when you walk near something.
By <Unknown - please email me if this is yours>
A: Here's how I do it. You can open NotePad and paste this in. Then name it whatever you want, just
remember to change the extension to FPI, and put it in the scriptbank.
;Artificial Intelligence Script
;Header
desc = My Own HUD
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=languagebank\english\g
amecore\text\myownhud.tga,hudname=myownhud,hudhide=1,hudmake=display,
state=1
:state=1,plrwithinzone=1:hudshow=myownhud,state=2
:state=2,plrwithinzone=0:hudunshow=myownhud,state=1
;End of Script
Here's what's going on.
state=0 This is the initial state where we create the HUD to display.
hudx and hudy are the coordinates to position it (depends on image size and where you want it)
hudimagefine=languageback\englishgamecore\text\myownhud.tga is the path to your custom "text-image"
(your message in a picture)
hudname=myownhud is what we name it (myownhud)
the rest hides the hud, creates it, and sets the state to state=1.
state=1 This waits until we're in the zone, then reveals our message.
FPS Creator Hint’s ‘n’ Tips Guide Page 29
----------------------- Page 30-----------------------
plrwithinzone=1 is a condition (1 means we're in the trigger zone)
hudshow=myownhud action that reveals our text message hud when condition is met
state=2 sets the next state
state=2 This hides the message when we leave the zone.
plrwithinzone=0 is a condition (0 means we're not in the trigger zone)
hudunshow=myownhud action that hides our text message hud when condition is met
state=1 returns us to state 1 to check for player re-entering triggerzone (loop)
In this example we named our Hud (TGA) "myownhud" as well as the FPI.
These names could be anything you want.
We placed our FPI in the scriptbank. We placed our Hud (TGA) in the following path.
gamecore\text\myownhud.tga
Note: that path is really languagebank\english\gamecore\text\myownhud.tga
The languagebank\english isn't in the script but you need to place it there. I decided to put the files in the
default folders rather than making new ones because of this.
Now just place a Trigger Zone Marker where you want it.
Then right click it and change the aimain to whatever you named your FPI.
"