Co-op move

can i make an attack that can be used only if another specified character is in battle?
Yes.

Using VisuStella's Skills and States Core, you'd give the skill the notetag:
Code:
<JS Skill Enable>
enabled = $gameParty.aliveMembers().includes($gameActors.actor(42));
</JS Skill Enable>

where 42 is the ID of the other actor.

If you actually want that other actor to do anything, or lose their turn when the first actor uses the skill, that's a different question and more complex.

Original thread: https://forums.rpgmakerweb.com/threads/co-op-move.169971/