How do I do this? I don't want a visible timer and I want the player to be able to move around during the time the music is paused/sound effect is playing, so just waiting frames doesn't work.
Any help would be much appreciated.
Just make it a common event or regular running on parallel. Save BGM, Fadeout BGM, Play sound effect, wait x frames, turn BGM back on?
Not sure why waiting wouldn't work?
Just to be clear, you'd use the Replay BGM command to "turn BGM back on". And if you want the BGM to stop more abruptly, you can use Play BGM: (None) instead of Fadeout BGM.
Alternatively you can use Play ME. Your sound effect would have to be moved to the audio/me folder. The BGM automatically stops when an ME starts, then resumes when the ME ends. That's the difference between a Music Effect and a Sound Effect. (For technical details, see AudioManager.playMe and .stopMe in rmmz_managers.js.)