MV Actors having Special Music during Battles?

Hi! Weirdly specific idea here.

So, you know how in Super Mario Bros Wii, when you hop on Yoshi it plays extra drums in the overworld theme? (Example: ) Is there a way to replicate this sort of "adaptive music" to MV? Plugin or vanilla.

I mostly want it during battles, as I have a character who is related to music, and I figure it'd be a nice detail to have extra percussion or something in the background whenever it's her turn to attack. Putting it as an SE might not work since there might be a timing issue...? Dunno, just trying to brainstorm.

Thanks in advance!
You could use my Danger Battle Music plugin.

Make the parameter for danger music be
Code:
$gameParty.battleMembers().includes($gameActors.actor(4))
where 4 is the ID of the actor you're checking for.
You could use my Danger Battle Music plugin.

Make the parameter for danger music be
Code:
$gameParty.battleMembers().includes($gameActors.actor(4))
where 4 is the ID of the actor you're checking for.
Oh this is perfect!! Thank you. 😍
Assuming this can activate while the actor is under a specific state as well? Sorry, new to coding.
You can put anything you want into the danger music condition, just Google the appropriate script call.

It evaluates at the end of each turn.

But if you want something that changes immediately when a state is applied, look at Yanfly's Buffs & States Core, and use a Custom Apply Effect notetag.

Original thread: https://forums.rpgmakerweb.com/threads/actors-having-special-music-during-battles.168885/