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 / questions about scripts in the offical community guide

Author
Message
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 7th Nov 2009 04:21
I was trying to use the script in the community guide that causes some text or sound to pop up when the player approaches an npc. the script is located on pg 63. I can't figure out how to change the message(s) or what entity to assign the script to. If anyone can shed some light on this, I would be very happy.
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 7th Nov 2009 17:13
I use a similar script. The script is attached to the NPC, so in my case I had it set in the SS Officer's Main Script. Select your entity, right-click on it to edit the properties, and in the Entity's Main script, select the script you are working on. To change the message you will need to edit the hud files either with GIMP or Photoshop.

For example, let's look at this line:

:state=0:hudreset,hudx=50,hudy=50,hudimagefine= [path to your image with text1] ,hudname=talk1,hudhide=1,hudmake=display

The part "hudimagefine= [path to your image with text1]" is the hud image. In my directory structure, the huds I am using for our game in development are located in a specific directory. I insert my path in where the script says "path to your..." and then navigate and edit that file. For example, one of my huds for my conversation script is located in the following path:

gamecore\huds\ww2_bf\ww2_bf_l6objhud04a.tga

I can then open that TGA file in Photoshop and edit the file, placing the text I want.

Hopefully that was not too confusing.

Cheers
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 7th Nov 2009 19:26
Good explanation Mike.

Most people don't know at first that the text in game is an image. Once they realize that the script calls an image and that they can create text HUDs in most any image software, they have no problem.

Brian.

gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 7th Nov 2009 19:43 Edited at: 7th Nov 2009 20:21
I tried what you said, but I still got nothing, Iam using this script



I have 3 test huds called testhud.tga, testhud2.tga and testhud3.tga. I have the locations for all three huds, so I can't figure out whats wrong.
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 7th Nov 2009 20:35 Edited at: 7th Nov 2009 20:46
@ Xplosys

I was hoping it made some sense.

@ gladius

Here is the conversation script I use:



In your script, remove the "c:\program Files\The Game Creators\FPS Creator" and make the path "gamecore\huds\<yourhudhere>.tga", where <yourhudhere> is the path and tga file of your hud. Also remove the "[" and "]" from the paths in the script. I am not too sure if spaces for pathlines cause issues, hence the reason I use the format I have and it has never failed me.

Also in your script you have "[path to a sound]", which also may need to be changed.

Keep me posted.

Cheers
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 8th Nov 2009 02:25
I tried doing what you said, still no luck. Here is my script now



My FPI pad tells me that line


is wrong, but I don't know why.
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 8th Nov 2009 03:55 Edited at: 8th Nov 2009 03:58
@ Gladius

I tested your script and it worked fine for me. Here is how I have the script. Note that I removed the "sound= [path to a sound]" and placed my paths for the "[path to your image with text]" lines.



I notice that on this script I posted, the first conversation hud is up and stays on the screen, then fades and the second comes in, etc. So what you have does work, except the "[path to your image with text]" lines. I assume you are specifying the path like my script is.

Cheers
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 9th Nov 2009 02:31
thanks, problem solved!
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 9th Nov 2009 06:18
No problem. Glad to be of help.

Cheers

Login to post a reply

Server time is: 2024-11-25 07:50:14
Your offset time is: 2024-11-25 07:50:14