Save BGM

It's hard to explain the question that I have so instead I am going to explain what happens in the game then try to ask my question from there.

So in my game, you're in an abandoned psychiatric hospital. In the main room (pretty much the whole first floor) there's a song that plays (Autoplay BGM), but before that, there's a song that plays when you have your whole party with you (pretty much the intro for the game). As you enter the next room, the music changes, the music changes again when you enter the room after that and so on. Then when you complete a task, the first floor music plays again. There's also a song that plays when you get chased by the enemy. Through out the game you solve puzzles then the enemy appears with the chase music. There's two floors that has two different BGM.

Now how do have the game remember to continue playing a BGM from an event then when that event is over, play back the BGM from Autoplay?

Hopefully I worded that okay, if not let me know 🙂
There is a Save BGM and a Replay BGM command.
There is a Save BGM and a Replay BGM command.
There's an issue that I have when replaying the BGM. When I go to one room and play a BGM, I want that that BGM to continue if the player goes to the previous room which has the Replay BGM event command. But if they return to that previous room, the song resets. I want it to continue playing.

The previous room is the room that has an autoplay bgm that I don't want to play yet until the intro is over.
You need to remove the autoplay BGM from the map settings, and put an event in that room that determines whether the BGM should change or not.
I've learned from these forums that if you expect the map music to change from it's default, it's usually best (as Shaz said) to have the BGM controlled by an event. I use a parallel process. I have one switch that I use to control this (you could have more than one if needed).

Spoiler: IMAGE
test.png

Original thread: https://forums.rpgmakerweb.com/threads/save-bgm.132105/