RandomBGM - Printable Version +- Save-Point (https://www.save-point.org) +-- Forum: Material Development (https://www.save-point.org/forum-8.html) +--- Forum: Scripts Database (https://www.save-point.org/forum-39.html) +--- Thread: RandomBGM (/thread-8791.html) |
RandomBGM - kyonides - 08-07-2023 RandomBGM
XP + VX + ACE
by Kyonides
Introduction Inspired by a forumer's support thread, I came up with a way to keep playing the current map's randomly chosen BGM while visiting what we could called here the child maps or dependent maps. There is a way to prevent the game from playing the vehicle's BGM as well. Instructions For XP Set the values of the MAP_BGMS Constant found in the RandomBGM module. It will let you play a random BGM including the default one. Example: Code: MAP_BGMS[2] = [10, "001-Battle01", "003-Battle03", "005-Boss01", "007-Boss03"] For VX You will need to set the values of 2 Constants found in the RandomBGM module. The first Constant will let you play a random BGM including the default one (see above) while the other one defines whether or not the boat or ship or airship will play their usual BGM. For Boat, Ship and Airship: Code: PLAY_BGM = [nil, nil, true] For VX ACE Leave a Random BGM Note in the Main Map's Notebox like the following: Code: <switch SwitchID bgm Bgm1 Bgm2 Bgm3> Leave a No Vehicle BGM Note in the Main Map's Notebox: Code: <no vehicle bgm> For All RGSS Editions Clear Main Map's Game Switch Code: $game_map.clear_main_bgm Terms & Conditions Free for use in any game. Due credit is mandatory. Do not repost it anywhere! That's it! RE: RandomBGM - kyonides - 08-07-2023 New Ports Available!
From now on, you can also make some good use of the RandomBGM script on RMXP and RMVX! The main differences are that XP has no vehicle by default and VX has no map notebox at all. This means you gotta depend on your trustworthy CONSTANTS to get the job done. The main post has been updated with the instructions for all of the ports now available here. |