Save-Point
RandomBGM VX + ACE - 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)
+---- Forum: RPGMaker VX/VXAce (RGSS2/3) Engines (https://www.save-point.org/forum-117.html)
+---- Thread: RandomBGM VX + ACE (/thread-10780.html)



RandomBGM VX + ACE - kyonides - 10-28-2024

RandomBGM 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. Winking

Instructions

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. Gamer
Due credit is mandatory.
Do not repost it anywhere!
That's it! Tongue sticking out