MV How can I add a state to an actor when I land a killing blow with an attack

I am making a skill, that when it kills an enemy, a state gets added to the actor who used the skill. I can't seem to find out how to add this.
Well one way would be using yanfly's action sequence plugins. Then you could simply make the target immortal until the skill is at the end, then check for 0 HP>apply state>remove immortality.

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-add-a-state-to-an-actor-when-i-land-a-killing-blow-with-an-attack.182633/