BGMs Transition Script Search [Resolved]

Yeah, um... I know there was a script somewhere that allowed BGMs to transition into battles (like what Master of the Wind does), but I don't know where to find it.

EDIT: I should probably mention that this is for XP. Darned kids and their VX and their PS3s and their...
I may be wrong, but can't that be solved by just not setting a battle music?
como wrote:
I may be wrong, but can't that be solved by just not setting a battle music?


Having no Battle BGM set just makes the music stop when the fight begins.
Just go to the "def call_battle" from "Scene_Map" and delete the line "$game_system.bgm_stop".

I wonder why the hell EB added this line on the code, since after that the battle bmg start to play, so thare would be no need for stop the current music...
Atoa wrote:
Just go to the "def call_battle" from "Scene_Map" and delete the line "$game_system.bgm_stop".

I wonder why the hell EB added this line on the code, since after that the battle bmg start to play, so thare would be no need for stop the current music...


Tried it. Didn't seem to work. Is there something else I'm supposed to do?
Dachimotsu wrote:
Atoa wrote:
Just go to the "def call_battle" from "Scene_Map" and delete the line "$game_system.bgm_stop".

I wonder why the hell EB added this line on the code, since after that the battle bmg start to play, so thare would be no need for stop the current music...


Tried it. Didn't seem to work. Is there something else I'm supposed to do?


In addition to what Atoa said, you must also delete the line "$game_system.bgm_play($game_system.battle_bgm)". This line tells the game to play whatever battle BGM you have set in the database.

Also, if you don't want to hear the sound effect when entering a battle, delete the line "$game_system.se_play($data_system.battle_start_se)" This line tells the game to play whatever battle start SE you have set in the database.

Does this solve your problem? Let us know if there is anything else...
If you're trying to get the BGMs to fade into each other, it's unfortunately not going to happen. The default RMXP Audio class does not include any handling for fading out a piece of audio, which means that there is no real way to transition between two different tracks. If that isn't what you were after, being more specific about exactly what you want would help. (Since not everyone has played MotW, myself included)
XeroVolume wrote:
Dachimotsu wrote:
Atoa wrote:
Just go to the "def call_battle" from "Scene_Map" and delete the line "$game_system.bgm_stop".

I wonder why the hell EB added this line on the code, since after that the battle bmg start to play, so thare would be no need for stop the current music...


Tried it. Didn't seem to work. Is there something else I'm supposed to do?


In addition to what Atoa said, you must also delete the line "$game_system.bgm_play($game_system.battle_bgm)". This line tells the game to play whatever battle BGM you have set in the database.

Also, if you don't want to hear the sound effect when entering a battle, delete the line "$game_system.se_play($data_system.battle_start_se)" This line tells the game to play whatever battle start SE you have set in the database.

Does this solve your problem? Let us know if there is anything else...


Yup! That did it!
Thanks a bunch!
Oh yes i forget one thing: you must not leave the battle bgm = none, you must simply make the battle bgm equal the map bmg via events.

That way you can have battle bmg when you want (link in bosses for example).
if you remove "$game_system.bgm_play($game_system.battle_bgm)" you will have to change the map bmg on battles wich you want specific music. wich will make an strange effect when the battle end, the battle music will continue after the battle end ME.
I know. But every battle in my game is scripted, so I was gonna end up doing that, anyway.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=71080