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 / display HUD problem- Same HUD showing up

Author
Message
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 6th Apr 2011 07:17
Here is my problem:

I have been using this wonderful script to display messages, but I discovered that this script has a problem.
the script allows the user (in this case me) to change the HUD image displayed by editing the location of the HUD image with in the FPS files. I have made several variations of the script all of which show different HUDs. When I walk into a trigger zone to activate the HUD,no matter what variation of the script is programed to be used, FPS only allows the first variation of the script to be used. This means that all the trigger zones which are supposed to show many different HUDs only show the same HUD. I am stumped, does anyone know how to fix this problem?

Sorry for so much writing...

here is the script I am using



-Thanks in advance, Gladius.
Anigma
13
Years of Service
User Offline
Joined: 25th Mar 2011
Location:
Posted: 6th Apr 2011 08:49
If I'm not mistaken (and I don't misunderstand your question) you need to create each different HUD as a separate TGA file for the game engine to display. If all your scripts call the same TGA file, that's all you'll see.
rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 7th Apr 2011 00:20 Edited at: 7th Apr 2011 00:26
At a guess I would say your problem is this:
hudname=myownhud
Bet your using the same for all of them.
Each hudname has to be unique.
When you grasp this you will realise you can actually show\unshow from other scripts which dont even create the huds, so long as you haven't destroyed them they are always in memory.
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 7th Apr 2011 04:24
no, all of the scripts use different TGAs to produce the HUD.
rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 7th Apr 2011 06:45
hudname=myownhud
Rename this in each of your scripts.
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 7th Apr 2011 21:18
"hudname=myownhud
Rename this in each of your scripts."

where? This phrase appears several times.
Wolf
17
Years of Service
User Offline
Joined: 8th Nov 2007
Location: Luxemburg
Posted: 7th Apr 2011 22:00
Quote: "where? This phrase appears several times. "


Every script needs a new name there...

"myownhud" is (according to you script) the "fuse box message.tga".



-Wolf

God Helps the Beast in Me!
Anigma
13
Years of Service
User Offline
Joined: 25th Mar 2011
Location:
Posted: 7th Apr 2011 22:01 Edited at: 7th Apr 2011 22:03
Quote: "where? This phrase appears several times. "


Hopefully I can explain this right. I'm working on a huge tutorial NPC script that's gonna have 33 of these suckers in it (yeah, I know - I'm nuts) so I've become somewhat of an expert in the past 24 hours on these types of HUD's (actually more like "knows just enough to be dangerous", but I digress). Anyway, in each script, the name must be unique per script.

So in your first script, where ever you see "myownhud" rename that to "myownhud1". In your second script, where ever you see "myownhud" rename that to "myownhud2".... and so on. Make sense? It should work after that. Give it a try and let us know.

Edit: Wolf beat me to it. I need to type faster I guess.
gladius
16
Years of Service
User Offline
Joined: 4th Aug 2008
Location:
Posted: 8th Apr 2011 01:57
thanks man, I'll try that!

Login to post a reply

Server time is: 2024-11-24 11:41:16
Your offset time is: 2024-11-24 11:41:16