#--------------------------------------------------------------------------
# * Menu Music
#--------------------------------------------------------------------------
#Instrustions: Place this script above main. You can assign BGMs to switches.
#When the switch is turned on, the assigned menu BGM will play. If all
#switches (4991-5000) are off, then the map music will play on the menu screen.
#Use only one switch at a time (when you turn another one on, turn the last one
#off).
class Scene_Map
def call_menu
# Clear menu call flag
$game_temp.menu_calling = false
# If menu beep flag is set
if $game_temp.menu_beep
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Clear menu beep flag
$game_temp.menu_beep = false
end
# Straighten player position
$game_player.straighten
if $game_switches[5000] == true
# Memorize map BGM and stop BGM
$game_temp.map_bgm = $game_system.playing_bgm
$game_system.bgm_stop
end
if $game_switches[4999] == true
# Memorize map BGM and stop BGM
$game_temp.map_bgm = $game_system.playing_bgm
$game_system.bgm_stop
end
if $game_switches[4998] == true
# Memorize map BGM and stop BGM
$game_temp.map_bgm = $game_system.playing_bgm
$game_system.bgm_stop
end
if $game_switches[4997] == true
# Memorize map BGM and stop BGM
$game_temp.map_bgm = $game_system.playing_bgm
$game_system.bgm_stop
end
if $game_switches[4996] == true
# Memorize map BGM and stop BGM
$game_temp.map_bgm = $game_system.playing_bgm
$game_system.bgm_stop
end
if $game_switches[4995] == true
# Memorize map BGM and stop BGM
$game_temp.map_bgm = $game_system.playing_bgm
$game_system.bgm_stop
end
if $game_switches[4994] == true
# Memorize map BGM and stop BGM
$game_temp.map_bgm = $game_system.playing_bgm
$game_system.bgm_stop
end
if $game_switches[4993] == true
# Memorize map BGM and stop BGM
$game_temp.map_bgm = $game_system.playing_bgm
$game_system.bgm_stop
end
if $game_switches[4992] == true
# Memorize map BGM and stop BGM
$game_temp.map_bgm = $game_system.playing_bgm
$game_system.bgm_stop
end
if $game_switches[4991] == true
# Memorize map BGM and stop BGM
$game_temp.map_bgm = $game_system.playing_bgm
$game_system.bgm_stop
end
# Switch to menu screen
$scene = Scene_Menu.new
# Play menu BGM
if $game_switches[5000] == true
Audio.bgm_play("Audio/BGM/025-Town03", 100, 100) #Sets BGMs to switches
end
if $game_switches[4999] == true
Audio.bgm_play("Audio/BGM/026-Town04", 100, 100)
end
if $game_switches[4998] == true
Audio.bgm_play("Audio/BGM/025-Town03", 100, 100)
end
if $game_switches[4997] == true
Audio.bgm_play("Audio/BGM/025-Town03", 100, 100)
end
if $game_switches[4996] == true
Audio.bgm_play("Audio/BGM/025-Town03", 100, 100)
end
if $game_switches[4995] == true
Audio.bgm_play("Audio/BGM/025-Town03", 100, 100)
end
if $game_switches[4994] == true
Audio.bgm_play("Audio/BGM/025-Town03", 100, 100)
end
if $game_switches[4993] == true
Audio.bgm_play("Audio/BGM/025-Town03", 100, 100)
end
if $game_switches[4992] == true
Audio.bgm_play("Audio/BGM/025-Town03", 100, 100)
end
if $game_switches[4991] == true
Audio.bgm_play("Audio/BGM/025-Town03", 100, 100)
end
end
end
class Scene_Menu
def update_command
# If B button was pressed
if Input.trigger?(Input::B)
# Play cancel SE
$game_system.se_play($data_system.cancel_se)
# Switch to map screen
$scene = Scene_Map.new
if $game_switches[5000] == true
$game_system.bgm_stop
$game_system.bgm_play($game_temp.map_bgm)
end
if $game_switches[4999] == true
$game_system.bgm_stop
$game_system.bgm_play($game_temp.map_bgm)
end
if $game_switches[4998] == true
$game_system.bgm_stop
$game_system.bgm_play($game_temp.map_bgm)
end
if $game_switches[4997] == true
$game_system.bgm_stop
$game_system.bgm_play($game_temp.map_bgm)
end
if $game_switches[4996] == true
$game_system.bgm_stop
$game_system.bgm_play($game_temp.map_bgm)
end
if $game_switches[4995] == true
$game_system.bgm_stop
$game_system.bgm_play($game_temp.map_bgm)
end
if $game_switches[4994] == true
$game_system.bgm_stop
$game_system.bgm_play($game_temp.map_bgm)
end
if $game_switches[4996] == true
$game_system.bgm_stop
$game_system.bgm_play($game_temp.map_bgm)
end
if $game_switches[4992] == true
$game_system.bgm_stop
$game_system.bgm_play($game_temp.map_bgm)
end
if $game_switches[4991] == true
$game_system.bgm_stop
$game_system.bgm_play($game_temp.map_bgm)
end
return
end
end
end