Changing Battle Background Music based on Location (World Map)

Wasn't sure where to post this. Someone on Twitter I am acquainted with had a question and because it could be useful for my own projects tooI figured I would ask here for them.

Since the Japan themed assets for RPG MAKER MV come with different battle themes, I'm thinking of doing the BREATH OF FIRE IV thing of having different battle themes play depending on where in the world you are in -----, though it'd be hard to pull off on the world map.

So yeah, any ideas of how you'd go about doing that. Like any Scripts, Common Event set ups, or the like?
Not sure why it would be hard, just takes a bit of time. You'd place regions on the map. Then have a turn 0 troop event that gets the current region ID, and a series of conditionals to start playing a BGM based on what the region ID is.

You can even do it on the tile ID instead of placing regions, but presumably one area of the map will have several different tiles that comprise an area for a given piece of music.
Not sure why it would be hard, just takes a bit of time. You'd place regions on the map. Then have a turn 0 troop event that gets the current region ID, and a series of conditionals to start playing a BGM based on what the region ID is.

You can even do it on the tile ID instead of placing regions, but presumably one area of the map will have several different tiles that comprise an area for a given piece of music.
Hmmmmm, hadn't even thought of that. I'll pass this along.
alternatively you can do it in a map event with the event command to change the music before the battle is even launched.
in the solution above you need to start the music directly because RM doesn't update the setting after battle is started. If you change the map property before battle processing the music is updated before the battle.

I've moved this thread to MV Support. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/changing-battle-background-music-based-on-location-world-map.145887/