How to make skill only available with certain actors in party?

I want to create a character who has skills that only become available when certain actors are in the party.
For example this character has one unique skill for every actor in the party but cannot be used if they are not in the active party with him.

Would this be possible and what would I have to do?

EDIT: I'm sorry if I haven't put this in the right category. I've never posted in the forums before now.
not possible by default, you'll need a plugin for that.
Some of Yanfly's lunatic code options might be able to do that, or you might need a custom one.

Moved to: Plugin Request
Okay, thank you very much. Sorry for the trouble! I'll be sure to post in the correct forum next time. I deeply apologize for the inconvenience.

To the script forum, thank you for taking the time to address my concern and hope that you'll be able to help me.
If you need additional information please let me know and I will be happy to provide.
Assuming you are working on RMMV, you can use Yanfly's Skill Core plugin with the Lunatic Mode for either Custom Show Eval (if you don't want the skill to appear in the skill list at all if the other actor is not in the party) or Custom Requirement (if you want the skill to appear in the list, but unable to be used).

After installing the plugin, add the following code in the skill's notebox:
Code:
<Custom Show Eval>
if ($gameParty.members().contains($gameActors.actor(2))) {
  visible = true;
} else {
  visible = false;
}
</Custom Show Eval>
or
Code:
<Custom Requirement>
if ($gameParty.members().contains($gameActors.actor(2))) {
  value = true;
} else {
  value = false;
}
</Custom Requirement>

Replace the 2 with the ID of the actor that must be in the party for the skill.

Let me know if it works for you, and if you have any more questions, feel free to ask!
Gosh, thank you so much!! I had some trouble at first but all it took was browsing the rest of Yanfly's scripts to learn that CoreEngine was required by most of Yanfly's other scripts and poof!

Thank you so, so much! I'm very new to using plug-ins, so I appreciate the help a lot!! Especially you laying out the code for me! Thank you so much!
You're welcome 🙂

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-skill-only-available-with-certain-actors-in-party.74422/