{MV} Plugin Request - Region Specific BGMs

Status
Not open for further replies.

ObsceneSoul

Villager
Member
Joined
Mar 17, 2013
Messages
10
Reaction score
2
First Language
English
Primarily Uses
RMMV
Hello.

So, I'll just get right to the point here. I thought it would be a neat idea to utilize the regions in RPG Maker MV to change the BGM that would be currently playing. I've seen Yanfly's Region Events, but I think that would be a bit of a hassle to set up. I just want something that I can use either plugin parameters or note-tags for each map. This would be quite useful for my over-world map since it is going to have lots of different countries on it, which each have their own specific themes and enemies. Any assistance will be appreciated and credited.
 

DaedraTalos

Evil Plugin Overlord in the making
Veteran
Joined
Jul 8, 2016
Messages
72
Reaction score
59
First Language
English
Primarily Uses
RMMV
Hey there! I'm pretty sure I can do this quickly, so expect news soon! :kaothx:
 

DaedraTalos

Evil Plugin Overlord in the making
Veteran
Joined
Jul 8, 2016
Messages
72
Reaction score
59
First Language
English
Primarily Uses
RMMV
Here's the update with the bugfixes! :kaohi:https://tinyurl.com/ybrf35ph

Bugfixes:
  • The music will load even if you left the region and are in a non-defined region or are not in a region, game doesn't crash anymore.
  • Entering a region that has not been defined in the parameters won't cause the game to crash anymore :kaojoy:
 

ObsceneSoul

Villager
Member
Joined
Mar 17, 2013
Messages
10
Reaction score
2
First Language
English
Primarily Uses
RMMV
Cool, thanks so much for this! If I need more features added, I'll be sure to contact you. ;)
 

---

-
Member
Joined
Sep 15, 2017
Messages
26
Reaction score
5
First Language
-
Primarily Uses
RMMV
Would be possible to set the BGM in each map in notetags?
 

ObsceneSoul

Villager
Member
Joined
Mar 17, 2013
Messages
10
Reaction score
2
First Language
English
Primarily Uses
RMMV
Would be possible to set the BGM in each map in notetags?
That was a feature I thought about having in the plugin and just completely forgot to write down. Another feature I wanted was to name and display the name of the named region. Hopefully this isn't asking too much.
 

DaedraTalos

Evil Plugin Overlord in the making
Veteran
Joined
Jul 8, 2016
Messages
72
Reaction score
59
First Language
English
Primarily Uses
RMMV
:kaoswt: I'll see about the name display tomorrow, might use a variant of the map name display ^-^

for the permap/regionBGM, I already have a working idea on how to do it, just have to code it down

I might go to bed first, though, sry :kaoslp:
 

ObsceneSoul

Villager
Member
Joined
Mar 17, 2013
Messages
10
Reaction score
2
First Language
English
Primarily Uses
RMMV
:kaoswt: I'll see about the name display tomorrow, might use a variant of the map name display ^-^

for the permap/regionBGM, I already have a working idea on how to do it, just have to code it down

I might go to bed first, though, sry :kaoslp:
That's alright, I was planning on heading to bed soon myself. Kinda woke up earlier than I'm used to. Glad to hear you already have some ideas though!
 

DaedraTalos

Evil Plugin Overlord in the making
Veteran
Joined
Jul 8, 2016
Messages
72
Reaction score
59
First Language
English
Primarily Uses
RMMV
:kaohi:Hey! Here's the new version, now including custom map regions as well as the previous default regions!: https://tinyurl.com/ybrf35ph

To customize a region's BGM for a specific map, just add this to the map's notetag:
map_region: regionId regionName regionBGM volume pitch pan instantBGM(true/false) fadeoutTime fadeinTime

you can type as many as you want for each map

Hope you like it! :kaojoy:
 

ObsceneSoul

Villager
Member
Joined
Mar 17, 2013
Messages
10
Reaction score
2
First Language
English
Primarily Uses
RMMV
:kaohi:Hey! Here's the new version, now including custom map regions as well as the previous default regions!: https://tinyurl.com/ybrf35ph

To customize a region's BGM for a specific map, just add this to the map's notetag:
map_region: regionId regionName regionBGM volume pitch pan instantBGM(true/false) fadeoutTime fadeinTime

you can type as many as you want for each map

Hope you like it! :kaojoy:
Thanks for including that notetag, but I believe you forgot to include it in the help file. Otherwise, I'll contact you through Discord if this plugin could use anything else.

Anyways, thanks so much for the help with this plugin. I'm already finding it to be very useful. ;D
 

DaedraTalos

Evil Plugin Overlord in the making
Veteran
Joined
Jul 8, 2016
Messages
72
Reaction score
59
First Language
English
Primarily Uses
RMMV
****, I just realized a previous bug came back (where an undefined region causes an error if stepped on) :kaoeh:

Lemme fix this! (will edit post, stay tuned ;) )

Done! : https://tinyurl.com/y7uj6fwq

Now, for the region name :kaoswt2:
 
Last edited:

ObsceneSoul

Villager
Member
Joined
Mar 17, 2013
Messages
10
Reaction score
2
First Language
English
Primarily Uses
RMMV
Sweet! I just thought of some more features you could possibly add to this plugin.

1. The region could also change the Battle BGM.

2. An image could show up in addition to the region name if a parameter is set.

3. Entering a new region for the first time could force an encounter with one of the troops specified to appear in that region.

4. This should be able to work while in a vehicle as well.

Otherwise, stay awesome, and I look forward to an even more useful plugin!

Edit: Came up with another idea. Hopefully this is possible. :3
 
Last edited:

DaedraTalos

Evil Plugin Overlord in the making
Veteran
Joined
Jul 8, 2016
Messages
72
Reaction score
59
First Language
English
Primarily Uses
RMMV
:kaothx:1, 2 and 4 seem rather doable, I'll leave the name / pic window for the end, though :LZSrasp:

also, in 4, what do you mean, work in vehicle? it doesn't already?
 

ObsceneSoul

Villager
Member
Joined
Mar 17, 2013
Messages
10
Reaction score
2
First Language
English
Primarily Uses
RMMV
For number 4, I was stupid and forgot to define the region... xD Sorry about that.

Edit: When entering a vehicle, if you change regions, the game plays the default song instead of the region's song.
 
Last edited:

DaedraTalos

Evil Plugin Overlord in the making
Veteran
Joined
Jul 8, 2016
Messages
72
Reaction score
59
First Language
English
Primarily Uses
RMMV
:kaoback:srsly?? Guess I'll have to store the vehicle song in a variable before changing it, then remaking it default when the player leaves the vehicle / event command is written.
 

---

-
Member
Joined
Sep 15, 2017
Messages
26
Reaction score
5
First Language
-
Primarily Uses
RMMV
I was looking for the script calls/notemaps/plugin commands in the help file and they are missing.
 

ObsceneSoul

Villager
Member
Joined
Mar 17, 2013
Messages
10
Reaction score
2
First Language
English
Primarily Uses
RMMV
Just a possible bug report here.

When exiting the airship after entering it from one region, say region x, into region y, it will play region x's BGM for some reason.

Otherwise, I hope you aren't having too many issues with the plugin DaedraTalos. Hope to hear from you soon!

Edit: Also, when entering a region from an event tile, the default overworld music plays.
 

DaedraTalos

Evil Plugin Overlord in the making
Veteran
Joined
Jul 8, 2016
Messages
72
Reaction score
59
First Language
English
Primarily Uses
RMMV
Hey! I already gave it to @ObsceneSoul , but for everyone else, here's the fixed version of the plugin, that fixes the issue of the default music being played when entering an airship ^-^ Also, sorry fo those of you who want a documentation, I'll get it done once I figure out all the bugs and add all the additional stuff to the plugin, unless you really want it now, in which case I wouldn't really mind doing it xD (also, added the possibility to show the name of the region on the top left corner of the screen, similar to the map name window.

edit: forgot to mention that region BGMs can be specified for each map, on top of having a default BGM for every region, in case it's not specified :D

:MV1:
 

Attachments

zaph

Warper
Member
Joined
Apr 30, 2020
Messages
1
Reaction score
0
First Language
en
Primarily Uses
Other
so i know this is over 2 yrs old.. but can anyone get this script working again? pretty cool idea.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Pootscooter wrote on Pharonix's profile.
Hey @Pharonix, just wondering what you're up to lately and if you've had an opportunity to check out the LTBS thread in the past few days...(a couple of us could really use your expertise). Hope you are well and Happy Thanksgiving!
Anyone know the best size image to put in signature?
Well, the local collections agency is hiring... bleh. I'm not rude enough for them to hire me. Even the people they collect FOR don't like dealing with them. >.>
EA: "Kids are buying currency, not using money to gamble. It shouldn't be illegal!"
Me: "So... kids should be allowed into casinos to buy poker chips and not spend them at the blackjack table? Pretty sure, even buying currency used to gamble is illegal for children."
Been hard at work in photoshop working with MOG scripts for main menu & victory result screens, might do all my maps and Npc chatter this week too!

Forum statistics

Threads
105,500
Messages
1,014,214
Members
137,155
Latest member
diegodevin
Top