The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Kwiqsilvr on January 03, 2006, 02:00:05 PM

Title: Music Continuation Request
Post by: Kwiqsilvr on January 03, 2006, 02:00:05 PM
The request I want to make ought to be easy (or it may be effortless).

Basically what I want to do is this: make the world music continue after a battle instead of reseting to the begining of the song.

This is the default of how RUBY configures music related to battles:

World Music Start --> Initiate Battle --> Battle Music Start --> Victory Music Start --> World Music Restart

Instead I rather have it be:

World Music Start (Save Point A) --> Initiate Battle --> Battle Music Start --> Victory Music Start --> World Music RESUME from Point A

If this makes sense and is doable I would appreciate it!

Thanks ^_^
Title: Music Continuation Request
Post by: haloOfTheSun on January 03, 2006, 09:18:30 PM
YES! I have requested this before, and no one knew what I meant. Ha! I want this script as well!  :^^:  :^^:
Title: Music Continuation Request
Post by: SiR_VaIlHoR on January 04, 2006, 03:26:22 PM
no need ruby for that.
use rmxp...
Title: Music Continuation Request
Post by: Kwiqsilvr on January 05, 2006, 12:24:59 AM
?...

Could you lead the way >.<...I have asked this very question in RMXP and they didn't give me ANY answer -_-...is it so uncommon no one has ever tried to do this?
Title: Music Continuation Request
Post by: Tsunokiette on January 05, 2006, 12:28:54 AM
$game_system.memorize_bgm
$game_system.resume_bgm

...

:O_o:

The methods may not be named the same but look in Game_System to find them.
Title: Re: Music Continuation Request
Post by: skyrune83 on February 25, 2007, 12:18:19 AM
Where do you enter these lines of code?
Title: Re: Music Continuation Request
Post by: kathis on February 25, 2007, 12:21:26 AM
I would asume at the top of your battle handlar script  and at the end of it.

I'll give it a test before I can say for sure.


Quote from: Tsunokiette on January 05, 2006, 12:28:54 AM
$game_system.memorize_bgm
$game_system.resume_bgm

...

:O_o:

The methods may not be named the same but look in Game_System to find them.

these methods are not the same for when you even call the script $game_system.memorize_bgm it crashes so to say


$game_system.bgm_memorize
$game_system.bgm_restore

are the ones that works for me >.> but they DO NOT remember the exact point in the song it was remembered JUST the song that we being played


*edited at 11:18 pm*

Oh I remember something the BGS and the ME do what you want a bit

the bgs could be playing then you play an me, and the background contiunes where it left off when the me finished. Perhaps you can inport your battle music into your ME resorce and then ...work from there?
Title: Re: Music Continuation Request
Post by: skyrune83 on February 25, 2007, 11:01:10 PM
Not sure how that would work... Wouldn't the map song have to be playing the whole time during battle then?  And if SiR_VaIlHoR is there, could you explain how you did this?
Title: Re: Music Continuation Request
Post by: skyrune83 on February 27, 2007, 01:50:01 AM
OK, I found a way to do this, but somehow I need to change the volume of the BGS in the script when a random battle occurs.  Does anyone know how to change the volume of a BGS using code?
Title: Re: Music Continuation Request
Post by: skyrune83 on February 28, 2007, 03:16:57 AM
Upon further research, I found I can use:
Audio.bgs_play($game_system.playing_bgs, 0, 100)

But it cannot change the "RPG::AudioFile into String"

Is there a way to change it to a format that it can play?
Title: Re: Music Continuation Request
Post by: Blizzard on February 28, 2007, 11:34:56 AM
Quote from: skyrune83 on February 28, 2007, 03:16:57 AM
Upon further research, I found I can use:
Audio.bgs_play($game_system.playing_bgs, 0, 100)

But it cannot change the "RPG::AudioFile into String"

Is there a way to change it to a format that it can play?

Should be

Audio.bgs_play($game_system.playing_bgs.name, 100, 100)

But what was ACTUALLY requested in this topic is pretty much impossible without rewriting the entire sound engine of RMXP.
Title: Re: Music Continuation Request
Post by: skyrune83 on March 01, 2007, 01:15:48 AM
Thanks a bunch!  That's just what I was looking for.  :lol: