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 change when you fighting?

Author
Message
Gorol
12
Years of Service
User Offline
Joined: 3rd Mar 2012
Location: Sosnowiec
Posted: 22nd May 2012 21:06
Music change when you fighting?
maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 23rd May 2012 10:46 Edited at: 23rd May 2012 10:47
3.16.2.3 MUSICOVERRIDE=FilePath
Description: This replaces the current background sound/music with a new file and plays the new file continuously.

Range: FilePath = *.ogg and *.wav files only.

Example: :state=1:musicoverride=audiobank\music\generic\main.wav

you can include this into the appear/mainscript of the character, or a triggerzone in the area where the fight will happen.

JD2
14
Years of Service
User Offline
Joined: 13th Feb 2010
Location:
Posted: 23rd May 2012 11:03 Edited at: 23rd May 2012 12:42
The "music=" command is used to set the music in FPI scripts.

The "musicoverride=" command will change the playing music from the default setting for the level to a new music file.

However, you need to be more specific about what you want.

Do you already have music defined to play throughout the level and just want to simply override/change from that default music when combat/fighting begins?

Or, do you want the music to just change from one song to the next randomnly as long as you are engaging enemies?

Or, do you want the music to change on specific events such as player or enemies losing certain amounts of health?

Be more specific about what you want so that people will know what to tell you.

Login to post a reply

Server time is: 2024-11-24 00:54:56
Your offset time is: 2024-11-24 00:54:56