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 / Text on screen script question

Author
Message
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 4th Jan 2010 03:30
I am sure everyone is sick of people asking, but how can you get a picture/hud to appear on screen when the player is in a trigger zone. I have this script



but it won't work right, can anyone help shed some light on the reason why? thanks in advance.
OutdoorGamer
14
Years of Service
User Offline
Joined: 23rd Dec 2009
Location: everywhere...
Posted: 4th Jan 2010 04:43
try using a file name without the space for the hud file and make it all one state
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 5th Jan 2010 00:21
what do you mean?
The Master Dinasty
16
Years of Service
User Offline
Joined: 14th Sep 2008
Location: Valhalla
Posted: 5th Jan 2010 00:55
Quote: "what do you mean? "


The thing you are doing wrong is that you specify the filename when you are supposed to speceify the name under the file name in the script.

Example:


When you say "Hudshow=X" or "Hudunshow=X" You are not supposed to specify the file name, no you are supposed to specify the "name" that you have asigned under "Hudname=WWWII".

-Massap2

Beacause massa is the master!
Staring blankly at the sun waiting for my time to come...
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 5th Jan 2010 02:48
by "name" do you mean .FPI file name?
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 5th Jan 2010 03:30 Edited at: 5th Jan 2010 03:31
In the following script, just look at and edit the following:

Quote: "hudimagefine=gamecore\text\WWII hud.tga"


Take the "space" out of the filename, so it should read "wwIIhud.tga" or you can even give it "wwII_hud.tga". No spaces in the name.

Quote: "hudname=WWII hud.tga, hudshow=WWII hud.tga, hudunshow=WWII hud.tga"


These are just the name you assign the hud for the script. So I would call it the following:

hudname=WWII_hud
hudshow=WWII_hud
hudunshow=WWII_hud

These three items should be identical, but you do not need to specify the full name and extension, meaning drop the ".tga" part. I don't usually put spaces in my hud names. I use the "_" key if I need a space, such as the example I showed above.

Cheers

Mike

OutdoorGamer
14
Years of Service
User Offline
Joined: 23rd Dec 2009
Location: everywhere...
Posted: 5th Jan 2010 04:16
Thank you for explaining further black fox.
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 9th Jan 2010 04:51
maybe I am doing something wrong, but it still won't work. here's my script now




, it still is not working. I apply it to a trigger zone as its main script, but when I walk in to it nothing happen. I have tried this 10 0or eleven times now and still and lost.
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 9th Jan 2010 05:38
@ Gladius

Here is the script, taken from yours except I used the "Press Enter to Use" hud in place (see snippet):



I placed a trigger zone and in the AI Scripts-Main for the trigger zone assigned the above script. When I moved through the area where the trigger zone is, the hud "Press Enter to Use" displayed for me. So your script works.

Check to make sure your hud is actually not the issue. What I mean is to check to see if it is a script or hud error:

1. assign the "Press Enter To Use" hud in the script.
2. Then assign the script to your trigger and test it.

If the hud shows, then you know the script works. Go back to your script and assign your hud. Test it. If the hud does not show, you know it's a hud issue. This method has proven time and time again for us to quickly solve hud/script issues.

Cheers

Mike

gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 9th Jan 2010 23:11
alright, thank I'll check to see if its the hud
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 10th Jan 2010 01:42
It works, but I can only show one message per level, in the scene that if I apply 3 different scripts to a trigger zone, only one of the messages show up. any ideas?
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 10th Jan 2010 02:44 Edited at: 10th Jan 2010 02:45
Not too sure if I got your question- you want to display 3 messages when you hit the trigger zone?

If so, here is a script for that. Modify the hud image, and apply to the AI Script Main. Works for both characters or a trigger zone. One message comes up and when you press ENTER, a second shows, press Enter for the third.



If not, could you explain further for me so I know exactly what you are trying to do?

Cheers

Mike

gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 10th Jan 2010 23:02
thanks, but what I mean is if you have 3 separate trigger zones showing 3 separate huds, only one of the huds will show up, the other trigger zones also show this hud even though they don''t have that hud script appiled to them.
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 10th Jan 2010 23:58
Well it "appears" that the other trigger zones are showing that hud but they are not. You can't have three trigger zones in the same spot with a different hud showing. You would either have to use the script example I showed you, or move the triggers so as the player steps in one, the hud shows, then steps in the second, etc.

Cheers

Mike

gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 12th Jan 2010 01:27
Quote: "You can't have three trigger zones in the same spot with a different hud showing"


as you can see in the diagram the trigger zones are separated and each have a different script applied to them

every time the player enters any of the zones, the same hud shows up even though the scripts are different and each script is set show a different hud.

sorry if I was not explaining clearly, thanks for your patients.

Attachments

Login to view attachments
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 12th Jan 2010 03:47 Edited at: 12th Jan 2010 03:49
@ Gladius

Just off the top of my head to what may be the issue.

It seems strange that that is happening, unless your distance is set rather large. If your "plrdistwithin" has a large number, you may need to lower it. Or if you are using "plrwithinzone", check that value.

Make certain each script is pointing to the proper hud. You can't use the same hudname in all three scripts. If you use WWII_hud for script/hud/trigger #1, you have to change the hudname for script/hud/trigger #2.


Cheers

Mike

Login to post a reply

Server time is: 2024-11-25 03:27:54
Your offset time is: 2024-11-25 03:27:54