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 / Help with script

Author
Message
RedneckRambo
18
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Worst state in USA... California
Posted: 9th Jan 2007 05:52


What is wrong with this code. I though I did it good, apparently not. The game works fine, just the code doesn\'t work. Can someone please help.

Tiggle Bitties

Veron
18
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 9th Jan 2007 06:18
Probably because your path to the images has two "\\" things, there need only be one.
RedneckRambo
18
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Worst state in USA... California
Posted: 9th Jan 2007 06:22 Edited at: 9th Jan 2007 06:32
OMG!!! How did that happen. Let me fix that and see if it works. Thanks Veron.

[EDIT] Okay, for some reason I might have copied it wrong. The actual script doesn't have two dashes.

Any other ideas

Tiggle Bitties

RedneckRambo
18
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Worst state in USA... California
Posted: 9th Jan 2007 07:52 Edited at: 9th Jan 2007 08:02
Okay, I redid the script.



There is not two slashes, if it shows two slashes, I don't know. I haven't tested this out yet. Going to in a minute. Does it look good so far? I'm still learning scripting, I basically just started, I tried earlier but got caught up in other things.

[EDIT] <SIGH> It didn't work. Could someone help me? I don't know what to do now, I though I had it right. Someone really awesome at scripting, like airslide, ben A, locrian, les horribres, etc you get the point. I have a fealing one of you guys no what the problem is.

Tiggle Bitties

Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 9th Jan 2007 09:10
I'm not 100% sure as I'm just starting out in scripting myself but I think you need to call the other states from the end of each line.

When running the script, I don't think it goes through each line until it finds the right one, I think it just does state 0 and then stops unless you call the next state at the end of the line (:state=1). Try calling the next state from the end of each line. Like I said I'm not sure if this would even work but worth a try. Good luck.


xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 9th Jan 2007 15:24
Use state 0 to describe or initialize your HUD images. Then progress your health conditions to the next state until you reach the end. Then return the processing to state=1.

Quote: "
:state=0:hudreset,hudx=10,hudy=10,hudimagefine=languagebank\english\gamecore\huds\HaloHud\Halo1,hudname=Halo1,hudhide=1,hudmake=display
:state=0:hudreset,hudx=10,hudy=10,hudimagefine=languagebank\english\gamecore\huds\HaloHud\Halo2,hudname=Halo2,hudhide=1,hudmake=display
etc...
etc...
:state=0:state=1
:state=1,plrhealthless=100,plrhealthgreater=91:hudshow=Halo1,hudhide=Halo1,state=2
:state=2,plrhealthless=90,plrhealthgreater=81:hudshow=Halo2,hudhide=Halo2,state=3
etc...
etc...
::state=1
"

Now I'm not saying that this works. I don't know where your images are and although I have an idea what you're doing, it may not be what you actually want to accomplish. I'm only showing you the proper way to script. Glad to see you trying, it is the best way to learn. Keep looking at existing scripts for reference.
Best

I'm sorry, my answers are limited. You must ask the right question.

RedneckRambo
18
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Worst state in USA... California
Posted: 10th Jan 2007 02:00
Thanks Xplosys. I'll try that out right now. Oh and the path to the Images is correct. I'm 100% positive.

Tiggle Bitties

RedneckRambo
18
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Worst state in USA... California
Posted: 10th Jan 2007 03:23 Edited at: 10th Jan 2007 03:24
Okay, I redid the script. It's not working. I'm not sure if I re-did it correctly here it is


I'm pretty sure it's not the location. I'm going to put the huds in a different folder just to try it out. usually that stupid little bullet thing pops up when the location is wrong and that's what pops up (screeny attached)

Tiggle Bitties

Attachments

Login to view attachments
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 10th Jan 2007 04:06
Could be, but you also either have to put the last "state=1" at the end of the "state=10" line or put another colon in front of it.

::state=1

Best.

I'm sorry, my answers are limited. You must ask the right question.

RedneckRambo
18
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Worst state in USA... California
Posted: 10th Jan 2007 04:57
Okay let me try that.

Tiggle Bitties

RedneckRambo
18
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Worst state in USA... California
Posted: 10th Jan 2007 05:16
Dang, neither way worked. Any other ideas?

Tiggle Bitties

RedneckRambo
18
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Worst state in USA... California
Posted: 12th Jan 2007 06:43
Any help? I really want this to work.

Tiggle Bitties

Login to post a reply

Server time is: 2024-11-23 08:43:14
Your offset time is: 2024-11-23 08:43:14