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 / Music Selector

Author
Message
PWND
16
Years of Service
User Offline
Joined: 10th Jan 2008
Location: Anywhere but here
Posted: 16th Jan 2008 16:12
Is it possible to have the player select what music they want to listen to from a list that I have compiled? (could be a drop down menu, or hit a key, etc.)
0 Geoff 0
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location:
Posted: 16th Jan 2008 17:35
Yeah through scripting this is possible by making a hud that shows the options and if the player presses the number one key then it starts the soundtrack or number 2 key etc etc...
Good idea by the way.
Peter gee
16
Years of Service
User Offline
Joined: 11th Jan 2008
Location: behind you!!!!
Posted: 16th Jan 2008 18:19
eh??? how would u do this for a noob plz?

noob and proud
the 12 year old game creator
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 16th Jan 2008 18:53
You could use say, the M key for the music selector. Just be sure to place it in the instructions/loading screen (M = Music Selection).

Then like 0 Geoff 0 said, display a hud with the possible selections. Then the player can press the corresponding key to choose. I think using the number keys will be an issue, since they are hard coded to the weapons. You will have to use letter or symbols and I would suggest keeping the list short, perhaps giving 3 choices like classical/pop/heavy metal.... whatever.

But yeah, it can be done and done well, would be a nice addition to a game.

Best.

0 Geoff 0
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location:
Posted: 16th Jan 2008 19:46
If your new and want to do this then really you need to lean how to script i would recommend this tutorial written by various people and put together by Nickydude its where i learned to script.
http://forum.thegamecreators.com/?m=forum_view&t=93081&b=21
PWND
16
Years of Service
User Offline
Joined: 10th Jan 2008
Location: Anywhere but here
Posted: 17th Jan 2008 01:40
Thank you everyone I just downloaded the pdf will try to learn how to script will post findings if any.
PWND
16
Years of Service
User Offline
Joined: 10th Jan 2008
Location: Anywhere but here
Posted: 17th Jan 2008 02:28
;3Dmajid AL - editted by PWND

;Header

desc = select music !

;Triggers

:state=0:hudreset,hudx=50,hudy=50,hudimagefine=texturebank\(HUD),hudname=(hud name),hudhide=0,hudmake=display,state=1
:state=1,scancodekeypressed=59:sound=audiobank\(insertsound1),hudfadeout=(hud name),state=4
:state=1,scancodekeypressed=60:sound=audiobank\(insertsound2),hudfadeout=(hud name),state=4
:state=1,scancodekeypressed=61:sound=audiobank\(insertsound3),hudfadeout=(hud name),state=4


;end of script

Would this work?

Attachments

Login to view attachments
Keo C
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location: Somewhere between here and there.
Posted: 17th Jan 2008 03:35
I could try to make a Jukebox Script.


Image made by the overworked Biggadd.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 17th Jan 2008 06:37
As long as you put the HUD and music in the right folders and call them correctly, then I don't see why it wouldn't work.


The one and only,
~PlystirE~

Urlforce:
Dude, I'd rather be declared a dbpro noob than an fpsc legend any day!
PWND
16
Years of Service
User Offline
Joined: 10th Jan 2008
Location: Anywhere but here
Posted: 17th Jan 2008 15:45
k ty
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 18th Jan 2008 04:51
...here's an updated version that I threw together.

It allows the player to scroll through the playlist by pressing the F1, F2 and F3 keys. If the END key is pressed, the audio stops. By default, all selections will loop.




Widow 13 - ©2008 Harsh Games, Inc

Attachments

Login to view attachments
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 18th Jan 2008 15:10
I can see consoles place strategically in a level, where you approach and get objective information, health, ammo, keys/access, select background music, lighting, control and move other items/mechs, etc, etc. Sort of an in-game control system. All possible already, and with the coming variables, who knows what will be done.

Nice one again Seth.

Best.

Peter gee
16
Years of Service
User Offline
Joined: 11th Jan 2008
Location: behind you!!!!
Posted: 18th Jan 2008 17:02
once again another life saving script from seth thanks

noob and proud
the 12 year old game creator

Login to post a reply

Server time is: 2024-11-24 03:39:40
Your offset time is: 2024-11-24 03:39:40