First of all, thank you to Galv for providing the music switch script, which is
module BattleManager B_MUSIC_SWITCH = 1 # Turn switch ON to disable battle AND victory music # Battle Background Music def self.play_battle_bgm $game_system.battle_bgm.play if $game_switches[B_MUSIC_SWITCH] == false RPG::BGS.stop end # Victory Background Music def self.play_battle_end_me $game_system.battle_end_me.play if $game_switches[B_MUSIC_SWITCH] == false endendI would just like to know, how can I toggle the B_MUSIC_SWITCH ingame? I would like to know because only during certain parts of the game I want the BGM to continue to play throughout the battle.
module BattleManager B_MUSIC_SWITCH = 1 # Turn switch ON to disable battle AND victory music # Battle Background Music def self.play_battle_bgm $game_system.battle_bgm.play if $game_switches[B_MUSIC_SWITCH] == false RPG::BGS.stop end # Victory Background Music def self.play_battle_end_me $game_system.battle_end_me.play if $game_switches[B_MUSIC_SWITCH] == false endendI would just like to know, how can I toggle the B_MUSIC_SWITCH ingame? I would like to know because only during certain parts of the game I want the BGM to continue to play throughout the battle.