Cooperation Skills

I don't know if this is the right board to post this, I'm a new member, but here I go...

I'm currently facing a problem with my Precure All Stars Rpg project. If you're not familliar with the franchise, there are quite a lot of attacks that involve several characters, from 2 to 5. Making those skills by themselves isn't hard, but I'd like making this system work like in Chrono Trigger and the Suikoden Series while keeping my currents scipts. Here is the list for them :

-Himeworks' Pre-Skills effects (used mainly to insert cut-ins)

-Yanfly's party system (in order to have 6 battle members in the party)

-Yanfly's hide menu skills

-Estriole's SOV Video player (to insert extracts of the different special attacks that directly come from Precure and being able to cut them manually)

-Yanfly's Ace core engine

-Yanfly's Ace menu engine

-YanPac's Battle Hud (since Yanfly's Ace Battle Engine appears to not support the videos)

I already try several methods to get what I want, but none of them worked or I'm missing somtehing. All the cooperation attacks script I've found until now seem unlikely to work with the YanPac Battle Hud, and I really wish to keep it. I tried to use Hide Menu skill with switches to hide the skills if one of the involved characters is not in the battle party, but even if I can unlock the skill and remove one of the party members, the attack stays in the command menu. I also thought about making use of Yanfly's Skill Cost Manager script, I think it's possible to do it with custom cost requirement notetag, but I don't know what I should put between the strings to call characters IDs.

The results I'd really like to get at its best are the following :

-Making the cooperation attack available only if the involved characters are in the party.

-Unlocking a cooperation attack by making the necessary characters fight in the same battle party for a fixed number of battles. I believe it's possible using variables, but I'm not really sure...

I hope you can help me on it, and I apologize if I posted this in the wrong board.
Have you tried DoubleX RMVXA Unison Items? That script won't handle the cooperation attack unlock though 🙂
I just tried your script but it still doesn't work. I tested first the initial script, I put this in the skill notetag :

<unison item: 15, 16>

<pre-skill effect: 1>

Then I tried the the unison add-on for Yanfly Engine Ace (since I know YanPac Battle Hud is based on it), my skill notetag is currently looking like this :

<unison actors: 15, 16>

<pre-skill effect: 1>

But even when I remove the actor whose ID is 16 from the battle party, the other one still have the skill...

I believe your script should work and that I have made a mistake somewhere. Thank you for helping me 🙂

Original thread: https://forums.rpgmakerweb.com/threads/cooperation-skills.51708/