How to make cooperating attack?

I'd like to make an cooperating attack Skill

e.g
1. There are warrior, archer, and Thief in Party.
2. Archer has a cooperative skill.
3. When an archer uses his cooperative skills to enemy - Thief and warriors attack(common attack) instead.
or Attack with the archer

Can I make a skill like this?

Events, plug-ins, or even tiny hints...
Any help will be appreciated.:hwink:

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-cooperating-attack.130883/