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 / Basic Instruction Screen (for beginners)

Author
Message
SecretiveOps
15
Years of Service
User Offline
Joined: 13th Sep 2010
Location:
Posted: 22nd Sep 2010 00:15 Edited at: 11th Oct 2010 18:33
First, make a notepad file, and call it instruction1.fpi

Now make a HUD in PAINT.NET, Photoshop, whatever your preference is. Make it 512x512 or 1024x1024 for higher texture games, and use the magic wand utility on the white background. Eliminate the background and add text accordingly.

Now save it as instruction1.dds

Open notepad and add this script:



Now save that as instruction1.fpi

Now move the instruction1.dds file to your FPS Creator/Files/gamecore/huds folder, and your instruction1.fpi file to FPS Creator/Files/gamecore/scriptbank folder. Now make a trigger zone and add that script to the Main Script selection. When you start, it should look like what is attached to this post.

Please list me in your game credits if you used this script. Note, this shows the hud for 7 seconds before disappearing. (pic will be a while, srry.)

EDIT: The first post was noobish, this is my first script. I just fixed it and it should be fully masterable.

Why does life suck the life out of you?
Brunopark09
16
Years of Service
User Offline
Joined: 7th Jul 2010
Location: Santiago de Chile
Posted: 22nd Sep 2010 06:27
That script will not work, that should be some like:



I think that should work

Mi fira esta en español por que ese es mi idioma, si no te gusta metete tu disgusto por el ***
Conjured Entertainment
AGK Developer
20
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 22nd Sep 2010 14:37 Edited at: 22nd Sep 2010 14:44
Quote: "

:state=1,hudshow=myownhud
:state=1,timergreater=7000,unshowhud=myownhud

"


You have commas where colons should be...

:state=1:hudshow=myownhud
:state=1,timergreater=7000:unshowhud=myownhud

...and the HUD will probably flash since after the timer is 7000 then state=1 is showing and unshowing the HUD constantly.
We can resolve that by moving to another state, like so...



I moved to another state after the unshow as well, so we don't stay in state=2 checking the timer forever.
I also moved the timerstart to when the HUD is shown rather than in state=0 so we are not tick tocking while the HUD is being created.
That really didn't need to be done for funtionality, but I think it is a bit cleaner that way.

It is nice to see newcomers trying their hand at scripting right away, and it is also nice to see that they want to share their scripts.
Keep up the good work guys.

   Conjured Entertainment

 WARNING: Intense Madness
Gencheff
16
Years of Service
User Offline
Joined: 12th Jun 2010
Location: UK by way of USSR
Posted: 22nd Sep 2010 15:05


Wrong,wrong,wrong...!

You mix conditions with actions,don't close conditions,didn't started a timer,didn't use the right syntaxis...



I also believe it's hudunshow not unshowhud.

Mr illusionest
17
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 22nd Sep 2010 18:08
Wow , 3 of you used unshowhud=x ! It's hudunshow=x guys .

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest
SecretiveOps
15
Years of Service
User Offline
Joined: 13th Sep 2010
Location:
Posted: 23rd Sep 2010 00:27
Thanks guys, I realized my mistake last night (if im still on probation, then it'll be two nights before), i did do all of what you said, but hudfadeout=x will work too.

Why does life suck the life out of you?
Brunopark09
16
Years of Service
User Offline
Joined: 7th Jul 2010
Location: Santiago de Chile
Posted: 23rd Sep 2010 07:44
Quote: "Wow , 3 of you used unshowhud=x ! It's hudunshow=x guys ."


That's because we just edited the script, not made it again

SCI FI MEDIA IS NEVER ENOUGH!
Conjured Entertainment
AGK Developer
20
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 24th Sep 2010 02:48 Edited at: 24th Sep 2010 02:54
Quote: "Wow , 3 of you used unshowhud=x ! It's hudunshow=x guys ."

Some of us knew that, we just didn't catch the typo.

Quote: "That's because we just edited the script, not made it again"

Yeah, I didn't catch that when I edited it.

Good call, because that was another mistake.

Correction


   Conjured Entertainment

 WARNING: Intense Madness
SecretiveOps
15
Years of Service
User Offline
Joined: 13th Sep 2010
Location:
Posted: 26th Sep 2010 02:13
Thank you all for your active viewing I guess.

BTW, at the end of the 4th or 5th line, add ",state=8"

Why does life suck the life out of you?

Login to post a reply

Server time is: 2026-07-26 05:23:03
Your offset time is: 2026-07-26 05:23:03