Death sentence state?

So I wanted to make a skill that afflicts an enemy with "Death sentence"  which would wait for 3 turns before instantly killing the afflicted target, is this possible to pull off?


EDIT: I would also like it to say "*character name* will perish in *number* turns" as it counts down.
Possible it is, but I think you'd need a plugin so the effect only happens when the skill ends.
Possible it is, but I think you'd need a plugin so the effect only happens when the skill ends.



Are there any presently existing plugins for that?
I think Yanfly got one.
Easy as pie with Yanfly's Buffs & States Core (Lunatic Mode) - kill the target as a "Remove State" effect.
Easy as pie with Yanfly's Buffs & States Core (Lunatic Mode) - kill the target as a "Remove State" effect.



Wait...this won't require luna engine will it?
Yanfy usually works without anything but other Gangly scripts.


Better see that video, as mentioned there you don't want it to kill when removed, just when over...
Yanfy usually works without anything but other Gangly scripts.


Better see that video, as mentioned there you don't want it to kill when removed, just when over...



Happen to have a video on installing plugins? I haven't been able to connect to youtube lately.
Wait...this won't require luna engine will it?



No.
@MonkeyWrench check yanfly's recommended load order to avoid possible bugs. If you want to understand the plugins properly watch his videos or read the help section of each plugin, he wrote them in their pages as well.

http://yanfly.moe/yep/



Alright, so the thing for the notebox, it's a bit blurry, anyone got it copy and pasted somewhere?


EDIT: Nevermind, after learning how to use Yanfly's site better, I managed to navigate to the required code.

Original thread: https://forums.rpgmakerweb.com/threads/death-sentence-state.68733/