Events triggered by learning skills

I am trying to make a sort of dual-tech system like in Chrono Trigger, where two characters can use two seperate attacks and combine it to get a third attack. I'm using the Cooperation Skills script by Victor Sant so I have skills used by multiple characters (although I'm still learning how to use that script), but I just can't figure out how to get the characters who use the combination attack to learn it properly. I would like them both to learn it when they both have the skills required, so that if my attack were Steam, they would both learn Steam if one had learned Fire and the other Water.

The script itself apparently has no functionality there, so I'm wondering if there is a script I have missed in my hours of scouring that can cause a trigger when a skill is learned?

I'm thinking I'll use a conditional branch so that if one person knows one skill, it'll check to see if the other person knows the other skill, then it will teach them both the combination skill.

Any help or direction would be appreciated.

Thanks!

(PS I'm new here as you can probably tell so I wasn't really sure where to put this. This seems to be where people ask for help so I hope I'm right.)
Depends if you want a scripting solution or an eventing solution. Script requests go in (funnily enough) the Script Requests forum.


How do they learn their fire/water skills - on level up, or do they get them from an event (including a common event)?
Actually they get their skills by spending jp in the Learn Skill Engine by Yanfly. Which is why I was hoping to be able to trigger events when the skill was learned. 

I'd be happy with any solution, be it eventing or a script. Beggars can't be choosers 😉
Would you want the new skill to be learned the moment they learn a skill from that menu? Or should it wait until you return to the map (can use a common event)? Should there be some announcement or visual/audio clue that they've learned this skill?
Yes, don't care, and yes. 😛

If I can make it so they learn the skill the moment both people have the skill, that would be ideal for me. Although what I really want is for skills to be learned immediately after hitting a jp milestone rather than purchasing it from the menu, but that's a different issue
In that case I'd be looking at a hack to the script (hack because it's ugly to modify a script for a situation that'll only occur once or twice in the entire game) to check if the skill just learned was one of the base skills and the user was one of the key party members, and if both of those are true, see if the other key party member has the companion skill, and just add the new one.
Well that's sort of what I was asking about. I think I'll add a script request to trigger skills, if that's not possible through eventing.

Original thread: https://forums.rpgmakerweb.com/threads/events-triggered-by-learning-skills.17936/