Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / [LOCKED] On screen text request

Author
Message
Changes
17
Years of Service
User Offline
Joined: 7th May 2007
Location: Scotland
Posted: 20th May 2007 16:18
you know in games how you can have on screen text i need something liek tht if it has been posted pls let me know.

jamie
MikeB
17
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 20th May 2007 17:20
Trigger zone.
Hud.
Script.
Create your own hud.
Find the Script in a post within 4 of yours.

Voila.

E.D.

Mark1
17
Years of Service
User Offline
Joined: 12th Jan 2007
Location:
Posted: 20th May 2007 20:38
what???
Run3_Kn1ght
18
Years of Service
User Offline
Joined: 27th Jul 2006
Location:
Posted: 23rd May 2007 04:53
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.

"

Login to post a reply

Server time is: 2024-11-23 17:44:01
Your offset time is: 2024-11-23 17:44:01