Can I make two character classes mutually exclusive?

I am new to the forums andI have a concept I am trying to build a game around and need advice on one thing I can't figure out how to do, or if I even can.

My concept is to have a party of 4 "main" characters (we'll call them A, B, C, and D) and 4 "assist" characters (1, 2, 3, and 4). The 4 main characters are the actual party, and they can pair with the assist characters to make different duos (i.e. classes). The assist characters aren't actual playable party members, just story characters. My question is: is there a way to make it so if one character is a class like A1, the other three cannot be B1, C1, or D1?

To elaborate: I want to develop 4 unique classes for each character, so we would call character A's classes A1, A2, etc. At any time the party would be something like A1, B2, C3, and D4. So say I change A1 to A2, I would want B2 to change class to B1. Is this possible? And could it be done in battle as well?

I am using Yanfly's class system. Thanks for any advice!
I think you'd need to modify the script itself.
I was afraid of that, but figured that'd be the solution to the problem. Any suggestions how?
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Please include a link to the script you're using.
I'm currently using this one from Yanfly:

https://github.com/Archeia/YEARepo/blob/master/Core/Class_System.rb

I am new to editing scripts and not sure where to begin on this one. I tried to make it work

through common events or states but the other characters won't change classes when I change

the one I want.

I am away from my computer now, but will post the common events I am trying to set up when I can.
Ok, after some dabbling I have found a script that lets me change class in battle easily, and I have rigged some battle conditions so that my characters swap classes as needed through script calling. The script is here for anyone interested:

https://himeworks.wordpress.com/2013/08/06/utils-class-changing/

As far as making them exclusive, its just a matter of rigging a chain of conditional events in Troops forcing the other actors to switch classes when the one you choose changes theirs.

Original thread: https://forums.rpgmakerweb.com/threads/can-i-make-two-character-classes-mutually-exclusive.42882/