Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 RandomBGM
#1
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. Winking

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. Gamer
Due credit is mandatory.
Do not repost it anywhere!
That's it! Tongue sticking out
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply }
#2
New Ports Available!

From now on, you can also make some good use of the RandomBGM script on RMXP and RMVX! Two Thumbs Up!

The main differences are that XP has no vehicle by default and VX has no map notebox at all. Laughing
This means you gotta depend on your trustworthy CONSTANTS to get the job done. Winking

The main post has been updated with the Book instructions for all of the ports now available here. Grinning
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply }




Users browsing this thread: