Boss ability to raise dead party members?

Hey all, I'm trying to figure out how to make an ability for a boss where they will raise up a dead party member to assist them.
Basically the way I would want the ability to work would be...

*Party member dies*
*Player has 2-3 turns or actions to revive them*
*If player does not revive them in that time frame, the boss revives them to fight for them*
*If the raised actor is killed they are able to be revived by the player as usual*
*This ability will only work once per actor during the fight* (I use a 3 actor party in my game)

I currently have a state in mind for the raised actor but I'm not sure how to get the conditions above for it to be applied.
(Basically once they are raised by the boss they will have a state with increased ATK etc, but will lose health until they are dead again)

(I have purchased the license for Yanfly's collection of plugins if needed since I'm using it for many other things)

Thanks all!
As far as I can guess, you'd just need the boss to have a skill that removes death from enemies and adds the atk boost state, maybe adding a confusion trait to it.

*SHAMELESS PLUG OF MY CONFUSION PLUGIN, FOUND HERE*

(You might need a target plugin so the boss can target the dead allies AND only have one "Swayed" ally at a time.)
Might be able to do this with yanfly's ai core stuff. If lets you be more specific about what and when enemies do stuff. Not sure if this would be possible, but might be worth a look if you have all his plugins already
Might be able to do this with yanfly's ai core stuff. If lets you be more specific about what and when enemies do stuff. Not sure if this would be possible, but might be worth a look if you have all his plugins already
Yeah, I suppose I should have also specified I'd prefer the boss automatically did this without using their turn after the brief window to revive the character. I'll have to mess around with the AI core tomorrow...just started using that recently while making boss mechanics.
Yeah, I suppose I should have also specified I'd prefer the boss automatically did this without using their turn after the brief window to revive the character. I'll have to mess around with the AI core tomorrow...just started using that recently while making boss mechanics.
Yanfly has an instant cast plugin. Have the revive spell use that so it won't use a turn.

Original thread: https://forums.rpgmakerweb.com/threads/boss-ability-to-raise-dead-party-members.169365/