Musical states

Hi, I'm looking for a script that changes the Battle BGM based on afflicted states...preferably for Actors AND Enemies!

Ever play a game with a cool transformation that's so cool it gets it's own theme song? It overrides the current battle theme, even if it's a unique boss theme, the transformation theme is just that cool. See Wild ARMs 2's Knightblazer, or BlazBlue's Fu-Rin-Ka-Zan for examples...

Or, how about a game where the music changes when your party is a about to lose? How about when the boss is on it's last stand? It's really dramatic.

Now, I know there are ways to change the battle BGM during battle, it's pretty easy actually. But this is mainly for simplicity for the user. Also, there are certain features I can't quite figure out. The main things being fading, and reverting back to normal (without some big ol' common event full of conditional branches)

So, in my head, it works like this.

Using a notetag, you put a song name in a state.

When that state is applied in battle, the music FADES to that musical state. When the state is removed, or a higher priority state is inflicted, FADE to that song.

Priority could just be normal state priority, or separate, using notetags.

The core of this script is pretty easily doable with events, so I kinda hate to be requesting this...But it's for simplifying things, and adding little features that are actually pretty important (fading, as opposed to sudden music changes...the wait command doesn't help)

Well, to be more unique, this could also be used outside of battle possibly. Maybe two types of notetags? Battle BGM, and field BGM? Just an idea.

Thanks in advance for any help.

Original thread: https://forums.rpgmakerweb.com/threads/musical-states.16571/