How to make a skill produce another effect after several rounds

Greetings to all who come to see my stupid questions.
I've always wanted to make a skill related to Phoenix. It works on your teammates and kills them immediately on the turn it is activated. After five turns, the killed teammates are resurrected, all their health is restored and they are given almost all buffs.
My original intention was to make a status that would make the character unable to fight, but I found that it wouldn't work because it would still be targeted by attacks. At the same time, I don't know how to achieve resurrection after 5 rounds.
I would be grateful if you could help me.
You can make a copy of the knockout state. Change it to last only five turns. Have that add a second state that last 6 turns (Or however long you want) and the second state (Phoenix) gives all the buffs you want.
it could be done with yanfly's buffs & states and State categories plugins for what its worth. youd have the skill kill the target, add a state with <bypass death removal> with a duration of 5 turns, and then give that state a <custom leave effect> to revive and buff the user
You can make a copy of the knockout state. Change it to last only five turns. Have that add a second state that last 6 turns (Or however long you want) and the second state (Phoenix) gives all the buffs you want.
thanks for your advise, i will try it out!

it could be done with yanfly's buffs & states and State categories plugins for what its worth. youd have the skill kill the target, add a state with <bypass death removal> with a duration of 5 turns, and then give that state a <custom leave effect> to revive and buff the user
this one soums interesting, i will check the plugin later.Thanks for your advise!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-skill-produce-another-effect-after-several-rounds.169349/