If you are still searching for a solution to this: Open the script-editor. In the default scripts there is a line in "Scene_Map" (you can find the line by doing global-search CTRL+Shift+F) that looks like this:
Ruby:
BattleManager.play_battle_bgm
Just add a "#" to the start for commenting-out (or if you totally know what you are doing, remove the entire line; I don't recommend to do so!).
Ruby:
# BattleManager.play_battle_bgm
That should do it. There is also the exact same line inside "DataManager". You can keep it there unless you want the battle-debugger you can run from the troops-tab in database to feature no music at all (which you can also achieve by simply setting BGM for battle to none, so...).
Make sure to not define an ME-jingle for battle-end case if you want the BGM to run without interruption after a victory. Also, ME for gameover may be problematic if you lose a fight inside an event that the player is allowed to lose, but I'm not sure about that.
In case you are planning to change BGM mid-battle and want to still play it after battle has ended, there is still work to do. Now you search for the following lines inside "BattleManager":
Ruby:
def self.save_bgm_and_bgs
Ruby:
def self.replay_bgm_and_bgs
These are the functions, just do a commenting-out of their contents:
Ruby:
def self.save_bgm_and_bgs
@map_bgm = RPG::BGM.last
@map_bgs = RPG::BGS.last
end
Ruby:
def self.replay_bgm_and_bgs
@map_bgm.replay unless $BTEST
@map_bgs.replay unless $BTEST
end
Afterwards they'll look like this:
Ruby:
def self.save_bgm_and_bgs
# @map_bgm = RPG::BGM.last
# @map_bgs = RPG::BGS.last
end
Ruby:
def self.replay_bgm_and_bgs
# @map_bgm.replay unless $BTEST
# @map_bgs.replay unless $BTEST
end
This method changes the game's behaviour permanently! Just let me know if you need a solution that is needed to operate only while specific conditions are met and not for the entire game.
~炬燵あ