Zerbu 40 Posted January 5, 2012 Random Title BGM Introduction This script allows you to specify multiple BGMs to play on the title screen. A random one from the list is played each time the title screen is displayed. Instructions Edit the option near the top of the script to set the BGMs that can play. Script #============================================================================ # Zerbu Engine - Random Title BGM #---------------------------------------------------------------------------- # This script allows you to specify multiple BGMs to play on the title # screen. A random one from the list is played each time the title screen # is displayed. #============================================================================ #============================================================================ # (module) ZE_Random_Title_BGM #============================================================================ module ZE_Random_Title_BGM ZE_RTBGM = { #------------------------------------------------------------------------ # Options #------------------------------------------------------------------------ # This is the list of BGMs that can play on the title screen. The format # to use is: ["Name", volume, pitch] #------------------------------------------------------------------------ :RANDOMIZE => [ ["Theme2", 100, 100], ["Theme3", 100, 100], ["Theme4", 100, 100], ["Theme5", 100, 100], ] } end #============================================================================ # Scene_Title #============================================================================ class Scene_Title include ZE_Random_Title_BGM #-------------------------------------------------------------------------- # overwrite method: play_title_music #-------------------------------------------------------------------------- def play_title_music #--- bgm = ZE_RTBGM[:RANDOMIZE][rand(ZE_RTBGM[:RANDOMIZE].size)] RPG::BGM.new(bgm[0], bgm[1], bgm[2]).play RPG::BGS.stop RPG::ME.stop #--- end end 1 CT Bolt reacted to this Share this post Link to post Share on other sites
Sophien 0 Posted May 2, 2013 nice script really easy and funny i love random things in my game is all random xD and now the title bgm too :DDD Share this post Link to post Share on other sites