Duo Attack

My game's main party consists of three characters. I'll just call them A, B and C, for the sake of this post. I would like to create a special skill that only two of those characters can use, and only if the other has not been KO'd. Example Party member A and B.
Something along the lines of A uses Duo Attack Part 1 to charge the attack and B uses Duo Attack Part 2 to perform the attack. Or vice versa... Any tips on how to pull this off?
Have the skill apply a state on the user and check if the other character has the same state as well. If they both have the same state and are alive, inflict damage (or anything else). If they are dead or if they are not affected by the said state, the skill does nothing. All this can be done using damage formulae.
Have the skill apply a state on the user and check if the other character has the same state as well. If they both have the same state and are alive, inflict damage (or anything else). If they are dead or if they are not affected by the said state, the skill does nothing. All this can be done using damage formulae.
Thanks for your help. I managed to get it working!

Original thread: https://forums.rpgmakerweb.com/threads/duo-attack.108191/