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 / how to display story text within game-play?

Author
Message
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 23rd Oct 2008 01:33
hey every1
have a look at this video
http://www.youtube.com/watch?v=JKQ2wyB9eAM
the second part he shows a story text in the form of an image at the bottom like the one appears when u pick an item, how did he do so?
ty..
Plystire
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 23rd Oct 2008 01:46
Please search the board for your answers before posting questions.

A simple search for "text" or "hud" would suffice in this instance.


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 23rd Oct 2008 09:41
actually I did I always do now..
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 23rd Oct 2008 13:59 Edited at: 23rd Oct 2008 14:00
well i found this


i modified it to


it doesn't work, i just walk into it n nthn happens.. am new to fpi scripting so plz can any1 point where the problem is?
* the image's path is correct n i use the fpi file in the Main of a trigger zone..
ty..
TZap
19
Years of Service
User Offline
Joined: 29th Aug 2005
Location:
Posted: 23rd Oct 2008 15:43
You are showing the hud and then fading it out immediately.

Change the last two lines of code to read:

:state=1,plrwithinzone=1:hudshow=keyprompt,state=2
:state=2,plrwithinzone=0:hudfadeout=keyprompt

As soon as you enter the zone your hud will display.
When you leave the zone, it will fade out.

If you want the hud to only display once, change the final line to read:

:state=2,plrwithinzone=0:hudfadeout=keyprompt,destroy
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 23rd Oct 2008 16:06
still doesn't work
does the hud image has to be in a specific place? i wrote it's filename and i put it in the main Files directory..
TZap
19
Years of Service
User Offline
Joined: 29th Aug 2005
Location:
Posted: 23rd Oct 2008 23:33 Edited at: 23rd Oct 2008 23:34
Put the tga file into Files\languagebank\english\gamecore\text

Change the hudimage=story.tga to read
hudimage=gamecore\text\story.tga
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 24th Oct 2008 01:40 Edited at: 24th Oct 2008 01:56
still no result, here's the exact code i write into the fpi file



i named it text.fpi saved it in scriptbank folder and loaded it in the trigger's main
what could possibly be wrong?
TY ALL
Plystire
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 24th Oct 2008 02:51
Quote: "hudname=story1"


THis gives your HUD a VERY SPECIFIC name, which you must then use in ANY "hudshow" or "hudefadeout" commands.

Notice that you did NOT use that name:

Quote: "hudshow=keyprompt"



Change it to use the HUD's proper name and I bet it'll work.


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 24th Oct 2008 10:11
oops didn't notice that TY SO MUCH

just one final question, can i make the hud disappear say after 10 seconds not when the player get out of the zone?
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 24th Oct 2008 10:15
solved too here's the code if anybody needs it


TY..

Login to post a reply

Server time is: 2025-05-22 21:29:19
Your offset time is: 2025-05-22 21:29:19