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 / Script idea...

Author
Message
Foxhound7
18
Years of Service
User Offline
Joined: 19th May 2006
Location:
Posted: 17th Dec 2006 22:19
I was hoping to put a script into my game that would display a small meter on the screen tat would slowly drain ovder time. As it got lower and lower, the player would begin to hear random noises and see flashes of thigns on the screen. The player could pick up certain in game items to replenish the bar and stop the sounds and flashes. I can make the hud and flashes in Photoshop and I can record and edit the sounds in Audacity, but I'm not sure about how to script it. I would appreciate any insight any experienced scripters here might have.

Peace Out

Your signature has been erased by a mod
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 17th Dec 2006 22:33 Edited at: 17th Dec 2006 22:36
You could make multiple huds of the meter displaying different strengths. It would have to be tied to a timer. The script would just have to call the proper hud depending on the state of the timer.

Picking up an item would decrease the timer by x thereby changing the HUD. Seems simple enough. That's if the timer is universal and changing it in one script applies to another.

Best.

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

Foxhound7
18
Years of Service
User Offline
Joined: 19th May 2006
Location:
Posted: 17th Dec 2006 22:36 Edited at: 17th Dec 2006 22:52
Yeah thats what I was thinking...but the problem I'm facing is trying to find a way to make random noises sound and random images flash on the screen during the different stages of the bar decreasing. They would get increasingly worse as the bar got lower and lower. Any ideas? Unfortunately I am all thumbs when it comes to scripting.

EDIT: I've decided that if an experienced scripter here wants to script this for me that I'll pay them for the script. Just thought I'd put that out there...

Your signature has been erased by a mod
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 17th Dec 2006 23:01
Someone may take you up on that, I don't know. If you want to send me the work you have done and your concept I'll give it a shot. I don't care to charge you and it will be difficult (certainly not impossible) to do it the way you want without your content. If it's a matter of trust then I understand.

Normally I wouldn't bother with this type of request because it's probably something I will never use, but this one sounds interesting.

It's up to you and best of luck with it.

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

Foxhound7
18
Years of Service
User Offline
Joined: 19th May 2006
Location:
Posted: 17th Dec 2006 23:16
Currently I'm working on the images and sounds. Each flash would probably be about 4" by 4", the smaller ones that is, and the larger ones would be 1024 by 768 pixels, the size of the screen. I'd be deeply indebted to you if you figured this out and would gladly put you in the credits and send you a copy of the completed game.

Your signature has been erased by a mod
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 17th Dec 2006 23:26
No problem. Like I said, I like the idea on this one. When you have everything together, just zip and mail it to me with your concept of how it should work and I'll do what I can.

Best.

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

Foxhound7
18
Years of Service
User Offline
Joined: 19th May 2006
Location:
Posted: 17th Dec 2006 23:29
No problem I should have most of the images and sounds done in a week or so.

Your signature has been erased by a mod
Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 18th Dec 2006 18:39
Quote: "EDIT: I've decided that if an experienced scripter here wants to script this for me that I'll pay them for the script. Just thought I'd put that out there..."


My fee is $60 an hour...

::followplr

:activated=0,timergreater=1000:incstate=1,timerstart
:activated=1:incstate=-1,activate=0
:activated=2:incstate=-2,activate=0
:activated=3:incstate=-4,activate=0
:activated=4:incstate=-8,activate=0
:activated=5:incstate=-16,activate=0


:state=0:timerstart

:state=50:sound=blah/blah

:state=100:hudshow=blah blah



box, skull, doesn't matter. No hud, that is for the gui oriented, but would be relativly simple (each state loads a certain hud or moves an existing one).

To increase the value, have the healing object's script be

:plrdistwithin=40:activateifused=(1-5),destroy

Unfortunatly, since I am unaware of any "stateless" commands (empty could easily put that in... if you ask) you will have to have the sound= on every one... and unload the hud on every one lower. I would recommend just asking empty to implement a "stateless" command so (and "stategreater") so it could be done much easier.

If you fear speaking for yourself, make use the words of others while discovering your own voice.
Foxhound7
18
Years of Service
User Offline
Joined: 19th May 2006
Location:
Posted: 18th Dec 2006 19:31
@ Les

Well unless you can script the whole thing in about an hour and it's better than what xplosys is willing to do for free, I'll think I'll pass, but thank you for the offer anyway.

Your signature has been erased by a mod
tyrano man
18
Years of Service
User Offline
Joined: 26th Oct 2006
Location: Battle City - Kalspher :)
Posted: 18th Dec 2006 21:52
um dude i think that was a joke... he just gave you basically the base for the script...

gw:tyrano man-lvl 20 E/Mo
tyrano man kill-Lvl 8 W/Mo
rs:tyrano man 2-lvl 68
Swhale aka The FPS Creator
20
Years of Service
User Offline
Joined: 22nd Oct 2004
Location: My computer chair, no zip code sorry
Posted: 18th Dec 2006 22:09
yea, I was going to say, can't you just acivate the sounds to trigger just as easily as the change in the hud?

Your signature has been erased by a mod because it's larger than 600x120

Login to post a reply

Server time is: 2024-11-23 07:22:42
Your offset time is: 2024-11-23 07:22:42