First of all, I know this has been asked 99999 times, but the answers turned up in the search function don't work at all for me.
That is the code that seems to work for everyone else, but does nothing for me. I turn the switch ON, yet I get no change in the battle music playing or not. Yes, I've changed the [10] to the switch I'm using, and yes the script is placed above Main. Is there something I'm missing here? I'd have put this in the scripts forum, but the original answers where on this one, so I posted it here. Feel free to move it if it's in the wrong place.
Code:
class Scene_Map
def call_battle
$game_temp.battle_calling = false
$game_temp.menu_calling = false
$game_temp.menu_beep = false
$game_player.make_encounter_count
$game_temp.map_bgm = $game_system.playing_bgm
if !$game_switches[10] # Change 10 to the switch for keeping current music
$game_system.bgm_stop
end
$game_system.se_play($data_system.battle_start_se)
if !$game_switches[10] # Change 10 to the switch for keeping current music
$game_system.bgm_play($game_system.battle_bgm)
end
$game_player.straighten
$scene = Scene_Battle.new
end
end
That is the code that seems to work for everyone else, but does nothing for me. I turn the switch ON, yet I get no change in the battle music playing or not. Yes, I've changed the [10] to the switch I'm using, and yes the script is placed above Main. Is there something I'm missing here? I'd have put this in the scripts forum, but the original answers where on this one, so I posted it here. Feel free to move it if it's in the wrong place.