This script allows you to assign a BGM and BGS to play in the menu. They will be played until you return to the map, where the map music will then replay.
You can compile a list of music that will be played and control which one to use during the game using variables.
Script: download here
Place this script below Materials and above Main
In the configuration below, start by choosing a BGM variable, which is the ID of the variable that will hold the BGM to play. Then choose a BGS variable. You can set it to 0 if it is not needed.
Next, set up the list of BGM and BGS to be played. Each file has a number assigned to it: this is the number that you will set the variables to in order to play the appropriate music.
The “Disable Switch” is used to prevent the menu music from auto-playing when the switch is on, in case you want the map BGM to continue while in the menu. You can assign it to any switch.