Well, it works perfectly fine except for boss fights, in my game I use different boss themes depending on the boss fought. The problem with it is that I can't change the Battle BGM that plays during the boss fight via event without it playing for every non-boss battle after the boss fight also. (Before you ask, yes I did turn on the switch that turns off the RBM before I changed it, then after the Battle Processing event I turned off the switch that turns off the RBM.)
If you don't know what the RBM script is, here it is:
I'm wondering if there's anything that can be done to fix that so I can use more than one boss battle theme (I have four different boss themes I use for the various bosses in my game.)
If you don't know what the RBM script is, here it is:
Code:
#==========================================================================
# ** SG Random Battle Music
#==========================================================================
# sandgolem
# Version 1
# 28.06.06
#==========================================================================
Scene_Map::SG_Random_BattleMusic = ['001-Battle01','002-Battle02']
Scene_Map::SG_Disable_RandomMusic = 11
#==========================================================================
#
# To check for updates or find more scripts, visit:
# http://www.gamebaker.com/rmxp/scripts/
#
# To use this script, copy it and insert it in a new section above "Main",
# under the default scripts, and the SDK if you're using it.
#
# Have problems? Official topic:
# http://forums.gamebaker.com/showthread.php?t=157
#
#==========================================================================
begin
SDK.log('SG Random Battle Music', 'sandgolem', 1, '28.06.06')
if SDK.state('SG Random Battle Music') != true
@sg_randbattlebgm_disabled = true
end
rescue
end
if !@sg_randbattlebgm_disabled
#--------------------------------------------------------------------------
class Scene_Map
alias sandgolem_randombattlebgm_map_callbattle call_battle
def call_battle
sg_tempmusic = $data_system.battle_bgm.name.clone
if !$game_switches[SG_Disable_RandomMusic]
sg_temp = rand(SG_Random_BattleMusic.size)
$data_system.battle_bgm.name = SG_Random_BattleMusic[sg_temp]
end
sandgolem_randombattlebgm_map_callbattle
$data_system.battle_bgm.name = sg_tempmusic.clone
end
end
#--------------------------------------------------------------------------
end
I'm wondering if there's anything that can be done to fix that so I can use more than one boss battle theme (I have four different boss themes I use for the various bosses in my game.)