Music change on low party HP?

Good day, ladies and gentlemen.


I come to you with a question: How do I make it so that the battle music changes when the HP of the current party is at, say, 10% or lower? It should also restore itself to the normal battle theme when you heal yourself. Do I use common events, or is there a plugin for that?


I appreciate any help I can get.
Troop events would work, but you would need to copy/paste it into each one without a plugin.
A plugin would help
Namely one of mine.

Yanfly has one as well, I think.

Original thread: https://forums.rpgmakerweb.com/threads/music-change-on-low-party-hp.65140/