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 / What's wrong with this script?

Author
Message
BeauPratten
15
Years of Service
User Offline
Joined: 16th Feb 2010
Location: Newy, Australia
Posted: 8th Dec 2010 10:06
Hello all! I recently attempted to make an adaptation of a script from the storyteller's adventure script pack...but the problem is that I suck at scripting. So what I would like the script to do is when the player presses enter the hud of the sign shows up so you can see the map on it but the text is at the bottom and still functions. Could anyone please shed some light on this matter?
Much appreciated



Red Eye
16
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 8th Dec 2010 11:52
I havnt looked at the rest of the script but the first line is incorrect, it should be:



RedEye

BeauPratten
15
Years of Service
User Offline
Joined: 16th Feb 2010
Location: Newy, Australia
Posted: 8th Dec 2010 11:57
Thanks, I'll see if it worked

BlackFox
FPSC Master
17
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 8th Dec 2010 17:27 Edited at: 9th Dec 2010 00:54
The first line should be:



However, I did notice you have languagebank\english\gamecore\gamecore\huds\. Did you mean to list \gamecore twice? I only have the one, so I'm not sure if that is part of the issue.

Second, you called the hud noticesign, but in your script you have this:



The hudshow= should be hudshow=noticesign. In other words, whatever you give the hudname in the first line is what you use on hudshow, hudhide,and/or hudfadeout commands.

- BlackFox

RPG Mod- Create a world full of adventure
OutdoorGamer
15
Years of Service
User Offline
Joined: 23rd Dec 2009
Location: everywhere...
Posted: 8th Dec 2010 23:59
BlackFox is correct, you are simply confusing the engine by not using the name you have given the hud in the first line.

signatures are dumb.....
idk why....
BeauPratten
15
Years of Service
User Offline
Joined: 16th Feb 2010
Location: Newy, Australia
Posted: 9th Dec 2010 01:17
Thanks that made the hud show up...but how do I make it go away at the end of the script?

BlackFox
FPSC Master
17
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 9th Dec 2010 01:32 Edited at: 9th Dec 2010 01:37
You can either-

* assign the scancodekeypressed=#:hudunshow=noticesign so when a key is pressed, the hud disappears

Example line:



OR

* when the player reaches a certain distance away, the hud disappears



* You can also use hudfadeout instead of hudunshow.

- BlackFox

RPG Mod- Create a world full of adventure

Login to post a reply

Server time is: 2025-06-04 21:05:58
Your offset time is: 2025-06-04 21:05:58