Random Battle Music Picker.

Is there a script out there, that when entering a battle will pick between different specified music (unless overridden by an event)?

So for instance on Random Encounters, on encounter will select between 1/2/3/4/5/6 tracks each time. 

as sometimes track music can get a bit bland but mixing it up a tad would be quite interesting I think.

I already have seperate boss music but I think to make the game more interesting, would be to have more randencounter music.
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.


I do recall someone requesting a script that would allow them to use different BGMs for battles, but I'm not sure their conditions were the same as yours.


In the event this needs something specific written up, could you provide more detail on your conditions?


Do you JUST want to provide a number of tracks, and it will choose one at random ALL the time?


Does this ONLY happen on random encounters (with the assumption that you have at least boss battles triggered from events)?


Do you ALWAYS want it to select from the same group? Does map/troop/terrain/region affect the choices available at all?
Would be pretty easy to event via Tsuki's Troop Battle BGM: http://forums.rpgmakerweb.com/index.php?/topic/10000-troop-battle-bgm/ and Yanfly's Base Troop Events: https://yanflychannel.wordpress.com/rmvxa/utility-scripts/base-troop-events/
class Scene_Map < Scene_Base def update_encounter #If the music is not a random music then we dont try to change it #Then don't forget to set music back to a random one e.g. after a boss battle if $game_player.encounter @Random_Music = ["Battle1","Battle2","Battle3","Battle4","Battle5"] for i in 0..@Random_Music.size-1 if ($game_system.battle_bgm.name == @Random_Music) r = Random.new() $game_system.battle_bgm = RPG::BGM.new(@Random_Music[r.rand(0..@Random_Music.size-1)],100,100) break; end end SceneManager.call(Scene_Battle) end endend It work only on random encounter so don't worry, but if you start a battle with an event set your music before, and after the battle set it again on a random one to continue random, if you set it on a not random for some reason e.g. in a specific map it will stay on this music even on random encounter (it must be set on one of the random one to be random) 🙂

Original thread: https://forums.rpgmakerweb.com/threads/random-battle-music-picker.34790/