MV - Play the same BGM & BGS as the map after a Choice

Hi guys!
I'd like the game to play the same BGM & BGS that i put in autoplay section of the map

autoplay.JPG


Here's what i'd like to do:

I've made a common event with a choice
--> when "Turn off", the BGM and BGS (that the game was playing) stop and then the game plays the tracks i chose for autoplay section of the map.

I can't put manually the same tracks (of the autoplay) because every room has different tracks and I want the common event to be only one.

here.JPG


The comment "here" is where i want the game to play the same tracks as the autoplay section of the map.

It's like a choice ( when "Play the autoplay bgm" --> Play the same BGM )

here2.JPG


I don't know if there's a plugin or it's impossible to do, but i really hope you guys can save me 🙂
Hope my english is clear 😛
Thank you
In a script call:

Code:
AudioManager.playBgm($dataMap.bgm);
AudioManager.playBgs($dataMap.bgs);

You might need to add a 2 second wait before it though, if you want to hear the fadeout from the previous tracks.
AudioManager.playBgm($dataMap.bgm); AudioManager.playBgs($dataMap.bgs);
Thank you! I really need to study the script list 😛
I don't even know if it's in there in that exact form. I just looked through the code to find the commands.

I'll assume you got it working, so

Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/mv-play-the-same-bgm-bgs-as-the-map-after-a-choice.132731/