Is there a way to make a state which will remove if the character who applied it is killed?

For example, let's say I have a Bard class.

Bard can sing songs to buff the party's stats.

As long as Bard keeps singing that song, the buff stays.

But... Bard can't sing if he's dead...

How do I make it so that if the Bard is killed, his buffs over the party disappear?
You can either do that via troop eventing maybe, or if you have some scripting knowledge you can make use of Yanfly Lunatic States. (which would be much easier to manage)
You can either do that via troop eventing maybe, or if you have some scripting knowledge you can make use of Yanfly Lunatic States. (which would be much easier to manage)
Um... Elaborate?
Um... Elaborate?
you can do that, but it requires several non-simple events checking wether or not the actor is alive and removing the state if he died. And you have to do that checking in the troop events because during battle, parallel common events are stopped.

We can't write those events for you as we don't know the details of your game, you'll have to start writing them yourself and then posting screenshots when you don't know how to proceed further.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-make-a-state-which-will-remove-if-the-character-who-applied-it-is-killed.16411/