Battle/Map BGM Selector

Battle/Map BGM Selector - By Crazyninjaguy

Heya!
Time for me to post my second ever script!
Basically, it allows you to choose your favourite Music and either play it on the map, or play it in battle.
It's that simple really. The script itself is plug'n'play so all you have to do is paste it in a new script section, but i reccomend downloading the demo.

Screenshots:

Content Hidden Spoiler
Image

Image


Script:

Content Hidden Spoiler
  1.  
  2. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  3. #  * Battle BGM Selector by Crazyninjaguy
  4. #    http://www.planetdev.co.nr
  5. #   --------------------------------------------------------------------------
  6. #  ** Allows you to choose the battle music from the menu
  7. #   --------------------------------------------------------------------------
  8. #  *** Features
  9. #      -- Preview BGM before setting as battle bgm or map bgm
  10. #      -- Stop playing the BGM
  11. #      -- Set your favourite as the battle theme
  12. #      -- Play your favourite BGM on the map
  13. #   --------------------------------------------------------------------------
  14. #  *** Editable Fields
  15. #      -- Lines 87-99. The names of the BGM/Music. NOT THE FILENAME!
  16. #      -- Lines 174,182,190,198,206,214,222,230,238,246,254,262,270
  17. #         EXACT FILENAMES! CASE SENSITIVE!
  18. #   --------------------------------------------------------------------------
  19. #  *** Notes
  20. #      -- This is my second ever script so don't expect too much lol.
  21. #      -- Please give credit if you use this in your game.
  22. #      -- If anything goes wrong with the script then don't hesitate to PM
  23. #         me on my site http://www.planetdev.co.nr
  24. #      -- Also if you have any ideas on how i could improve the script,
  25. #         please PM me on my site http://www.planetdev.co.nr
  26. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  27.  
  28. module Music_Selection
  29.   #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  30.   #  * Constants
  31.   #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  32.   MUSIC_LABEL = 'Music'
  33.   MENU_INDEX = 4
  34. end
  35.  
  36. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  37. #  * This window simply displays text
  38. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  39. class Window_Text < Window_Base
  40.   def initialize
  41.     super(0, 0, 544, 70)
  42.     self.contents = Bitmap.new(width - 32, height - 32)
  43.     update
  44.   end
  45.  
  46.   def update
  47.     self.contents.clear
  48.     self.contents.draw_text(-50, 0, 612, 42, "Which Music Would You Prefer As The Battle Music?", 1)
  49.   end
  50. end
  51.  
  52. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  53. #  * Pop-up window showing that BGM choice was saved
  54. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  55. class Window_Saved < Window_Base
  56.   def initialize
  57.     super(120, 150, 300, 100)
  58.     self.contents = Bitmap.new(width - 32, height - 32)
  59.     update
  60.   end
  61.  
  62.   def update
  63.     self.contents.clear
  64.     self.contents.draw_text(0, 0, 268, 68, "BGM Selection Saved!", 1)
  65.   end
  66. end
  67.  
  68. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  69. #  * Space filling window
  70. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  71. class Window_Misc < Window_Base
  72.   def initialize
  73.     super(272, 198, 272, 216)
  74.     self.contents = Bitmap.new(width - 32, height - 32)
  75.     update
  76.   end
  77.  
  78.   def update
  79.     self.contents.clear
  80.     self.contents.draw_text(0, 0, 544, 416, "Badger!", 1)
  81.   end
  82. end
  83.  
  84. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  85. #  * The options for the songs
  86. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  87. class Window_Options < Window_Selectable
  88.   def initialize
  89.     super(272, 70, 272, 130)
  90.     @commands = ["Set As Battle BGM", "Play This Song", "Stop Playing", "Play BGM On Map"]
  91.     @item_max = 4
  92.     self.contents = Bitmap.new(width - 32, height - 32)
  93.     refresh
  94.   end
  95.  
  96.   def refresh
  97.     self.contents.clear
  98.     for i in [email hidden]
  99.       x = 4
  100.       y = i * 24
  101.       self.contents.draw_text(x, y, 272, 27, @commands[i])
  102.     end
  103.   end
  104. end
  105.  
  106. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  107. #  * The main scene, nothing works without this!
  108. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  109. class Scene_MusicSelect
  110.   def initialize(menu_index = 0)
  111.     @menu_index = menu_index
  112.   end
  113.  
  114.   def main
  115.     # Make Misc Window
  116.     @window_misc = Window_Misc.new
  117.     # Make Command Window
  118.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  119.     # * Edit name of song (Not Filename)
  120.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  121.     s1 = "Airship"
  122.     s2 = "Field 1"
  123.     s3 = "Scene 12"
  124.     s4 = "Ship"
  125.     s5 = "Theme 3"
  126.     s6 = "Town 5"
  127.     s7 = "Dungeon 4"
  128.     s8 = "Battle 10"
  129.     s9 = "Battle 6"
  130.     s10 = "Scene 4"
  131.     s11 = "Scene 6"
  132.     s12 = "Scene 9"
  133.     s13 = "Field 3"
  134.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  135.     # * End Of Editing
  136.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  137.     @command_window = Window_Command.new(272, [s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13])
  138.     @command_window.index = @menu_index
  139.     @command_window.x = 0
  140.     @command_window.y = 70
  141.     # Make Text Window
  142.     @text_window = Window_Text.new
  143.     # Make Options Window
  144.     @options_window = Window_Options.new
  145.     # Execute transition
  146.     Graphics.transition
  147.     # Main loop
  148.     loop do
  149.       # Update game screen
  150.       Graphics.update
  151.       # Update input information
  152.       Input.update
  153.       # Frame update
  154.       update
  155.       # Abort loop if screen is changed
  156.       if $scene != self
  157.         break
  158.       end
  159.     end
  160.     # Prepare for transition
  161.     Graphics.freeze
  162.     # Dispose of windows
  163.     @command_window.dispose
  164.     @text_window.dispose
  165.     @options_window.dispose
  166.     @window_misc.dispose
  167.   end
  168.  
  169.   def update
  170.     @command_window.update
  171.     @text_window.update
  172.     @options_window.update
  173.     @window_misc.update
  174.     # If command window is active: call update_command
  175.     if @command_window.active
  176.       update_command
  177.       return
  178.     end
  179.     # If options window is active: call update_options
  180.     if @options_window.active
  181.       update_options
  182.       return
  183.     end
  184.   end
  185.   end
  186.  
  187.   def update_command
  188.     # If B button was pressed
  189.     if Input.trigger?(Input::B)
  190.       # Play cancel SE
  191.       Sound.play_cancel
  192.       # Stop playing music
  193.       Audio.bgm_stop
  194.       # Switch to menu screen
  195.       $scene = Scene_Map.new
  196.       return
  197.     end
  198.     # If C button was pressed
  199.     if Input.trigger?(Input::C)
  200.     # Branch by command window cursor position
  201.       case @command_window.index
  202.       when 0
  203.         # Play decision SE
  204.         Sound.play_decision
  205.         # Make options window active
  206.         @command_window.active = false
  207.         @options_window.active = true
  208.         @options_window.index = 0
  209.         @bgm = "Airship" # Filename, Case Sensitive
  210.       when 1
  211.         # Play decision SE
  212.         Sound.play_decision
  213.         # Make options window active
  214.         @command_window.active = false
  215.         @options_window.active = true
  216.         @options_window.index = 0
  217.         @bgm = "Field1" # Filename, Case Sensitive
  218.       when 2
  219.         # Play decision SE
  220.         Sound.play_decision
  221.         # Make options window active
  222.         @command_window.active = false
  223.         @options_window.active = true
  224.         @options_window.index = 0
  225.         @bgm = "Scene12" # Filename, Case Sensitive
  226.       when 3
  227.         # Play decision SE
  228.         Sound.play_decision
  229.         # Make options window active
  230.         @command_window.active = false
  231.         @options_window.active = true
  232.         @options_window.index = 0
  233.         @bgm = "Ship" # Filename, Case Sensitive
  234.       when 4
  235.         # Play decision SE
  236.         Sound.play_decision
  237.         # Make options window active
  238.         @command_window.active = false
  239.         @options_window.active = true
  240.         @options_window.index = 0
  241.         @bgm = "Theme3" # Filename, Case Sensitive
  242.       when 5
  243.         # Play decision SE
  244.         Sound.play_decision
  245.         # Make options window active
  246.         @command_window.active = false
  247.         @options_window.active = true
  248.         @options_window.index = 0
  249.         @bgm = "Town5" # Filename, Case Sensitive
  250.       when 6
  251.         # Play decision SE
  252.         Sound.play_decision
  253.         # Make options window active
  254.         @command_window.active = false
  255.         @options_window.active = true
  256.         @options_window.index = 0
  257.         @bgm = "Dungeon4" # Filename, Case Sensitive
  258.       when 7
  259.         # Play decision SE
  260.         Sound.play_decision
  261.         # Make options window active
  262.         @command_window.active = false
  263.         @options_window.active = true
  264.         @options_window.index = 0
  265.         @bgm = "Battle10" # Filename, Case Sensitive
  266.       when 8
  267.         # Play decision SE
  268.         Sound.play_decision
  269.         # Make options window active
  270.         @command_window.active = false
  271.         @options_window.active = true
  272.         @options_window.index = 0
  273.         @bgm = "Battle6" # Filename, Case Sensitive
  274.       when 9
  275.         # Play decision SE
  276.         Sound.play_decision
  277.         # Make options window active
  278.         @command_window.active = false
  279.         @options_window.active = true
  280.         @options_window.index = 0
  281.         @bgm = "Scene4" # Filename, Case Sensitive
  282.       when 10
  283.         # Play decision SE
  284.         Sound.play_decision
  285.         # Make options window active
  286.         @command_window.active = false
  287.         @options_window.active = true
  288.         @options_window.index = 0
  289.         @bgm = "Scene6" # Filename, Case Sensitive
  290.       when 11
  291.         # Play decision SE
  292.         Sound.play_decision
  293.         # Make options window active
  294.         @command_window.active = false
  295.         @options_window.active = true
  296.         @options_window.index = 0
  297.         @bgm = "Scene9" # Filename, Case Sensitive
  298.       when 12
  299.         # Play decision SE
  300.         Sound.play_decision
  301.         # Make options window active
  302.         @command_window.active = false
  303.         @options_window.active = true
  304.         @options_window.index = 0
  305.         @bgm = "Field3" # Filename, Case Sensitive
  306.       end
  307.       return
  308.     end
  309.   end
  310.  
  311.   def update_options
  312.     # If B button was pressed
  313.     if Input.trigger?(Input::B)
  314.       # Play cancel SE
  315.       Sound.play_cancel
  316.       # Make command window active
  317.       @command_window.active = true
  318.       @options_window.active = false
  319.       @options_window.index = -1
  320.       return
  321.     end
  322.     # If C button was pressed
  323.     if Input.trigger?(Input::C)
  324.       # Branch by command window cursor position
  325.       case @options_window.index
  326.       when 0  # Set As Battle BGM
  327.         # Play decision SE
  328.         Sound.play_decision
  329.         $game_system.battle_bgm = RPG::BGM.new(@bgm)
  330.         Window_Saved.new
  331.         Graphics.wait(60)
  332.         Audio.bgm_stop
  333.         $scene = Scene_Map.new
  334.       when 1  # Play Song
  335.         # Play decision SE
  336.         Sound.play_decision
  337.         Audio.bgm_play("Audio/BGM/" + @bgm, 100, 100)
  338.       when 2  # Stop Playing
  339.         # Play decision SE
  340.         Sound.play_decision
  341.         Audio.bgm_stop
  342.       when 3 # Play On Map
  343.         # Play decision SE
  344.         Sound.play_decision
  345.         Audio.bgm_play("Audio/BGM/" + @bgm, 100, 100)
  346.         $scene = Scene_Map.new
  347.       end
  348.     return
  349.   end
  350. end
  351.  
  352. #==============================================================================
  353. # ** Scene_Menu
  354. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  355. #  Summary of Changes:
  356. #    aliased methods - initialize, create_command_window, update_command_selection
  357. #==============================================================================
  358.  
  359. class Scene_Menu < Scene_Base
  360.   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  361.   # * Object Initialization
  362.   #     menu_index : command cursor's initial position
  363.   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  364.   alias music_select initialize
  365.   def initialize(menu_index = 0)
  366.     music_select (menu_index)
  367.     if @menu_index == 'Music'
  368.       @menu_index = Music_Selection::MENU_INDEX
  369.     elsif @menu_index >= Music_Selection::MENU_INDEX
  370.       @menu_index += 1
  371.     end
  372.   end
  373.   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  374.   # * Create Command Window
  375.   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  376.   alias music_select_menu_cmmnd_win_create create_command_window
  377.   def create_command_window
  378.     music_select_menu_cmmnd_win_create
  379.     c = @command_window.commands
  380.     c.insert (Music_Selection::MENU_INDEX, Music_Selection::MUSIC_LABEL)
  381.     width = @command_window.width
  382.     @command_window.dispose
  383.     @command_window = Window_Command.new(width, c)
  384.     @command_window.index = @menu_index
  385.   end
  386.   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  387.   # * Update Command Selection
  388.   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  389.   alias music_select_menu_cmmnd_select_upd update_command_selection
  390.   def update_command_selection
  391.     if @command_window.index == Music_Selection::MENU_INDEX && Input.trigger? (Input::C)
  392.         # Open Music Window
  393.         Sound.play_decision
  394.         $scene = Scene_MusicSelect.new
  395.     end
  396.     return
  397.   end
  398.   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  399.   # * Update Actor Selection
  400.   #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  401.   alias music_select_actor_selection_upd update_actor_selection
  402.   def update_actor_selection
  403.     changed = false
  404.     if @command_window.index > Music_Selection::MENU_INDEX
  405.       @command_window.index = (@command_window.index - 1) % @command_window.commands.size
  406.       changed = true
  407.     end
  408.     music_select_actor_selection_upd
  409.     @command_window.index = (@command_window.index + 1) % @command_window.commands.size if changed
  410.   end
  411. end
  412.  
Expand to see the code.


Demo:

http://www.mediafire.com/?sharekey=f38405da97d00006111096d429abd360e04e75f6e8ebb871

Hope you enjoy my second ever script! Please give credit if used as it took me a while to write this ( I'm still learning :D )
Good script :D
Uhm, can you tell me what does the 4th window do?
I think its just a pace filler O_o?
Yeah lol
Its better than a black space.
But if you want i could add a picture in there for you?
Just tell me what one you want and i'll add it.
I'm planning on revamping the script after i've finished my super secret awesome script.

So look forward to that :D
is there a chance you will convert it to RMXP?
=O I think there should be a spining Disk in the blank space
@gimnis - I have made an RMXP version, it just doesn't change the battle music, only the map music.
Here it is :D
Script Spoiler
  1.  
  2. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  3. #  * Map BGM Selector by Crazyninjaguy
  4. #   --------------------------------------------------------------------------
  5. #  ** Allows you to choose the Map music from the menu
  6. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  7.  
  8. class Window_Text < Window_Base
  9.   def initialize
  10.     super(0, 0, 640, 64)
  11.     self.contents = Bitmap.new(width - 32, height - 32)
  12.     update
  13.   end
  14.  
  15.   def update
  16.     self.contents.clear
  17.     self.contents.font.color = system_color
  18.     self.contents.draw_text(0, 0, 612, 32, "Which Music Would You Prefer As The Battle Music?", 1)
  19.   end
  20. end
  21.  
  22. class Window_Options < Window_Selectable
  23.   def initialize
  24.     super(320, 64, 320, 128)
  25.     @commands = ["Play This Song", "Stop Playing", "Play On Map"]
  26.     @item_max = @commands.size
  27.     self.contents = Bitmap.new(width - 32, height - 32)
  28.     refresh
  29.   end
  30.  
  31.   def refresh
  32.     self.contents.clear
  33.     for i in [email hidden]
  34.       x = 4
  35.       y = i * 32
  36.       self.contents.draw_text(x, y, 320, 32, @commands[i])
  37.     end
  38.   end
  39. end
  40.  
  41. class Window_Misc < Window_Base
  42.   def initialize
  43.     super(320, 192, 320, 287)
  44.     self.contents = Bitmap.new(width - 32, height - 32)
  45.     update
  46.   end
  47.  
  48.   def update
  49.     self.contents.clear
  50.   end
  51. end
  52.    
  53.  
  54. class Scene_MusicSelect
  55.   def initialize(menu_index = 0)
  56.     @menu_index = menu_index
  57.   end
  58.  
  59.   def main
  60.     # Make Misc Window
  61.     @window_misc = Window_Misc.new
  62.     # Make Command Window
  63.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  64.     # * Edit name of song (Not Filename)
  65.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  66.     s1 = "001-Battle01"
  67.     s2 = "002-Battle02"
  68.     s3 = "003-Battle03"
  69.     s4 = "004-Battle04"
  70.     s5 = "005-Boss01"
  71.     s6 = "006-Boss02"
  72.     s7 = "007-Boss03"
  73.     s8 = "008-Boss04"
  74.     s9 = "009-LastBoss01"
  75.     s10 = "0010-LastBoss02"
  76.     s11 = "0011-Lastboss03"
  77.     s12 = "012-Theme01"
  78.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  79.     # * End Of Editing
  80.     #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  81.     @command_window = Window_Command.new(320, [s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12])
  82.     @command_window.index = @menu_index
  83.     @command_window.x = 0
  84.     @command_window.y = 64
  85.     # Make Text Window
  86.     @text_window = Window_Text.new
  87.     # Make Options Window
  88.     @options_window = Window_Options.new
  89.     # Execute transition
  90.     Graphics.transition
  91.     # Main loop
  92.     loop do
  93.       # Update game screen
  94.       Graphics.update
  95.       # Update input information
  96.       Input.update
  97.       # Frame update
  98.       update
  99.       # Abort loop if screen is changed
  100.       if $scene != self
  101.         break
  102.       end
  103.     end
  104.     # Prepare for transition
  105.     Graphics.freeze
  106.     # Dispose of windows
  107.     @command_window.dispose
  108.     @text_window.dispose
  109.     @options_window.dispose
  110.     @window_misc.dispose
  111.   end
  112.  
  113.   def update
  114.     @command_window.update
  115.     @text_window.update
  116.     @options_window.update
  117.     @window_misc.update
  118.     # If command window is active: call update_command
  119.     if @command_window.active
  120.       update_command
  121.       return
  122.     end
  123.     # If options window is active: call update_options
  124.     if @options_window.active
  125.       update_options
  126.       return
  127.     end
  128.   end
  129.   end
  130.  
  131.   def update_command
  132.     # If B button was pressed
  133.     if Input.trigger?(Input::B)
  134.       # Play cancel SE
  135.       $game_system.se_play($data_system.cancel_se)
  136.       # Stop playing music
  137.       Audio.bgm_stop
  138.       # Switch to menu screen
  139.       $scene = Scene_CngMenu.new
  140.       return
  141.     end
  142.     # If C button was pressed
  143.     if Input.trigger?(Input::C)
  144.     # Branch by command window cursor position
  145.       case @command_window.index
  146.       when 0
  147.         # Play decision SE
  148.         $game_system.se_play($data_system.decision_se)
  149.         # Make options window active
  150.         @command_window.active = false
  151.         @options_window.active = true
  152.         @options_window.index = 0
  153.         @bgm = "001-Battle01" # Filename, Case Sensitive
  154.       when 1
  155.         # Play decision SE
  156.         $game_system.se_play($data_system.decision_se)
  157.         # Make options window active
  158.         @command_window.active = false
  159.         @options_window.active = true
  160.         @options_window.index = 0
  161.         @bgm = "002-Battle02" # Filename, Case Sensitive
  162.       when 2
  163.         # Play decision SE
  164.         $game_system.se_play($data_system.decision_se)
  165.         # Make options window active
  166.         @command_window.active = false
  167.         @options_window.active = true
  168.         @options_window.index = 0
  169.         @bgm = "003-Battle03" # Filename, Case Sensitive
  170.       when 3
  171.         # Play decision SE
  172.         $game_system.se_play($data_system.decision_se)
  173.         # Make options window active
  174.         @command_window.active = false
  175.         @options_window.active = true
  176.         @options_window.index = 0
  177.         @bgm = "004-Battle04" # Filename, Case Sensitive
  178.       when 4
  179.         # Play decision SE
  180.         $game_system.se_play($data_system.decision_se)
  181.         # Make options window active
  182.         @command_window.active = false
  183.         @options_window.active = true
  184.         @options_window.index = 0
  185.         @bgm = "005-Boss01" # Filename, Case Sensitive
  186.       when 5
  187.         # Play decision SE
  188.         $game_system.se_play($data_system.decision_se)
  189.         # Make options window active
  190.         @command_window.active = false
  191.         @options_window.active = true
  192.         @options_window.index = 0
  193.         @bgm = "006-Boss02" # Filename, Case Sensitive
  194.       when 6
  195.         # Play decision SE
  196.         $game_system.se_play($data_system.decision_se)
  197.         # Make options window active
  198.         @command_window.active = false
  199.         @options_window.active = true
  200.         @options_window.index = 0
  201.         @bgm = "007-Boss03" # Filename, Case Sensitive
  202.       when 7
  203.         # Play decision SE
  204.         $game_system.se_play($data_system.decision_se)
  205.         # Make options window active
  206.         @command_window.active = false
  207.         @options_window.active = true
  208.         @options_window.index = 0
  209.         @bgm = "008-Boss04" # Filename, Case Sensitive
  210.       when 8
  211.         # Play decision SE
  212.         $game_system.se_play($data_system.decision_se)
  213.         # Make options window active
  214.         @command_window.active = false
  215.         @options_window.active = true
  216.         @options_window.index = 0
  217.         @bgm = "009-LastBoss01" # Filename, Case Sensitive
  218.       when 9
  219.         # Play decision SE
  220.         $game_system.se_play($data_system.decision_se)
  221.         # Make options window active
  222.         @command_window.active = false
  223.         @options_window.active = true
  224.         @options_window.index = 0
  225.         @bgm = "0010-LastBoss02" # Filename, Case Sensitive
  226.       when 10
  227.         # Play decision SE
  228.         $game_system.se_play($data_system.decision_se)
  229.         # Make options window active
  230.         @command_window.active = false
  231.         @options_window.active = true
  232.         @options_window.index = 0
  233.         @bgm = "0011-LastBoss03" # Filename, Case Sensitive
  234.       when 11
  235.         # Play decision SE
  236.         $game_system.se_play($data_system.decision_se)
  237.         # Make options window active
  238.         @command_window.active = false
  239.         @options_window.active = true
  240.         @options_window.index = 0
  241.         @bgm = "0012-Theme01" # Filename, Case Sensitive
  242.       end
  243.       return
  244.     end
  245.   end
  246.  
  247.   def update_options
  248.     # If B button was pressed
  249.     if Input.trigger?(Input::B)
  250.       # Play cancel SE
  251.       $game_system.se_play($data_system.cancel_se)
  252.       # Make command window active
  253.       @command_window.active = true
  254.       @options_window.active = false
  255.       @options_window.index = -1
  256.       return
  257.     end
  258.     # If C button was pressed
  259.     if Input.trigger?(Input::C)
  260.       # Branch by command window cursor position
  261.       case @options_window.index
  262.       when 0  # Play Song
  263.         # Play decision SE
  264.         $game_system.se_play($data_system.decision_se)
  265.         Audio.bgm_play("Audio/BGM/" + @bgm, 100, 100)
  266.       when 1  # Stop Playing
  267.         # Play decision SE
  268.         $game_system.se_play($data_system.cancel_se)
  269.         Audio.bgm_stop
  270.       when 2 # Play On Map
  271.         # Play decision SE
  272.         $game_system.se_play($data_system.decision_se)
  273.         Audio.bgm_play("Audio/BGM/" + @bgm, 100, 100)
  274.         $scene = Scene_Map.new
  275.       end
  276.     return
  277.   end
  278. end
  279.  
Expand to see the code.


@EpE - I'll give it a go, it'll mean you have to download an image tho, but it'll be fine i guess, i can add it in the demo.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=65989