Multi Actor Skills ? (RPGMV)

I'm trying to do a skill that requires to have a specific Hero in the active Party.
Let me explain.

I have a hero A and a hero B.
I want to make a skill only available for A if B is in the Party, and this skill available to B only if A is in the Party.

I checked on the net, i found Victor Engine : Cooperation Skills, but unlucky, this isnt compatible with Yanfly Engine, and i need to use it... :sob:

So... I'm stuck. And that's why i call for help.
Can anyone here help me for realise this skill usage condition, or maybe use a scrip that could work ?

Thanks in advance.

I've moved this thread to MV Support. Thank you.

For one, you can have a parallel common event which checks if both are in the party and adds/removes the skill from them...

Another would be, I think Yanfly has a custom requirements/conditions plugin, maybe you can use that to set having the other actor as a requirement.. Not sure though.
Thx for your answer.

So i checked, and yes, Yanfly could have something for me.
On a plugin named "Skill Core", he gives and example to what you can do in notetags skills, in Javascript :

<Custom Requirement>
if ($gameParty.gold() > 1000) {
value = true;
} else {
value = false;
}
</Custom Requirement>

In this example, i guess the skill who have this in notetag is only available if the player have 1000 gold or more.

Well, i just need to change this condition, and check if one of my Hero's ID is in the party... but i don't know how to do that in Javascript.

I checked with $gameParty.members().contains($gameActors.actor(x)) but it doesn't work, because if the Hero is in the Reserve it will count...
(Because i use Party System from Yanfly for have 25 Heroes in my party, but only 5 Active)
I need to check if a Hero is in the ACTIVE Party.

Someone knows ?
So, i found it.

This is the script in my skill notetags :

<Custom Requirement>

if ($gameParty.battleMembers().contains($gameActors.actor(14))&&$gameParty.battleMembers().contains($gameActors.actor(15))) {

value = true;

} else {

value = false;

}

</Custom Requirement>

Its actually working with Yanfly's Skill Core.
Topic solved.

Original thread: https://forums.rpgmakerweb.com/threads/multi-actor-skills-rpgmv.110910/