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 / issues with a script, help needed please

Author
Message
gorba flamingo
17
Years of Service
User Offline
Joined: 16th Oct 2007
Location: between crazy and all out insane!
Posted: 7th Dec 2008 03:51
hi all, im trying to make a health bar but am having trouble, the huds i made do not show up.
The images are named "h0-H20" and the script runs through em all.
when i hit the preview the hus does not show up, the script and an attachment of the fps creator



Attachments

Login to view attachments
Marc Steene
FPSC Master
19
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 7th Dec 2008 16:51
Try this:



If it doesnt work let me know

Free Segment Packs: V1-http://forum.thegamecreators.com/?m=forum_view&t=124552&b=24
V2 - http://forum.thegamecreators.com/?m=forum_view&t=124709&b=24
gorba flamingo
17
Years of Service
User Offline
Joined: 16th Oct 2007
Location: between crazy and all out insane!
Posted: 7th Dec 2008 17:51
it didnt work
all i have is the default health thing.


Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 7th Dec 2008 19:06 Edited at: 7th Dec 2008 19:15
Quote: ":state=1,plrhealthgreater=499:hudreset,hudshow=h20,hudunshow=h19,hudunshow=h18,hudunshow=h17,hudunshow=h16,hudunshow=h15,hudunshow=h14,hudunshow=h13,hudunshow=h12,hudunshow=h11,hudunshow=h10,hudshow=h9,hudunshow=h8,hudunshow=h7,hudunshow=h6,hudunshow=h5,hudunshow=h4,hudunshow=h3,hudunshow=h2,hudunshow=h1,hudunshow=h0"


Shouldn't hudreset only be used when creating/defining the hud, not when you display/show it?

Try taking HUDRESET out of state=1 .

Don't forget to visit Conjured Entertainment

Marc Steene
FPSC Master
19
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 8th Dec 2008 07:14
@Conjured

I don't think so, I recently made a HUD similar to what he is trying to achieve.

@gorba

Try this: (P.S you have two HUD shows in each line, is it meant to be like this?)



Free Segment Packs: V1-http://forum.thegamecreators.com/?m=forum_view&t=124552&b=24
V2 - http://forum.thegamecreators.com/?m=forum_view&t=124709&b=24
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 8th Dec 2008 14:56 Edited at: 8th Dec 2008 15:15
Quote: "@Conjured

I don't think so"

Suit yourself.

@ Marc
Your script above will not work, and no I don't have to try it to know, I can see errors.
You are missing the slashes for the paths in state=0.

Another thing that might be going wrong is the langauagebank/english thing.
If you put a HUD in the lanaguagebank/english/gamecore/huds then you only need to say gamecore/huds because it looks in the english language bank as a root.
So, try copy and paste all of the HUD images into that folder but leave the script paths the same.
Maybe it is lookiing in the wrong place. (this happened to me in an older version, maybe its fixed now)

One more thing: Why are you handling the pause in this script? OIC you made the health huds part of the setup.
A health hud script could be set up on its own without tying it in to any of that.

Quote: "@Conjured

I don't think so"

Suit yourself.
Sorry, I couldn't help.
Good luck.

Don't forget to visit Conjured Entertainment

Marc Steene
FPSC Master
19
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 9th Dec 2008 08:29
@Conjured

Sorry if I sounded rude, I was typing with one hand which is slow and I couldn't be bothered to type anything else. What I meant was, yesterday I had made a similar HUD script to this, which included hudreset on every line. The slashes were missing in the script which he originally posted, so I just added them where I could see them missing.

Also Gorba, there are more problems with the script:

plrhealthless=450,plrhealthgreater=425
plrhealthless=425..etc

The values which you set are missing out the number 425 itself, as the range goes from 426+ and 424-

Free Segment Packs: V1-http://forum.thegamecreators.com/?m=forum_view&t=124552&b=24
V2 - http://forum.thegamecreators.com/?m=forum_view&t=124709&b=24
gorba flamingo
17
Years of Service
User Offline
Joined: 16th Oct 2007
Location: between crazy and all out insane!
Posted: 10th Dec 2008 06:45
alright, ill go back to the notepad board and fix theese, thank you for the help and ill post if i need more help


Login to post a reply

Server time is: 2025-05-23 06:55:42
Your offset time is: 2025-05-23 06:55:42