Class System Yanfly Restrict Classes To Just One Actor? (VX Ace Ver Of Script)

I'm back again asking for some script help, this time using Yanfly's Class System. It seems really great, and gives freedom with classes. However there are some classes I only want one character to have access to. Problem is, the script call...

$game_actors[x].remove_class(y)
# This causes actor x to remove class y from being able to switch to and from.
# If the actor is currently class y, the class will not be removed. If the
# actor's current subclass is y, the subclass will be unequipped.

...doesn't seem to be working. The two starting characters are still able to freely swap their default classes at will. Which, for story reasons, is completely against their natures. Is there a plug in somewhere that can restrict an actor from ever using a certain class? If not, could someone make one? I've spent over a hour searching but no luck outside of a branching class tree for MV. I am not using MV.

Yanfly's Script

Just to let it be known I have tried having no default classes at startup (in the linked script), I've tried having actor 2 unlocked after the script is called, and still no changes. I'll really appreciate any help. ^^
I did a quick test (empty project) with some script calls and with default classes [1,2].
By default all actors have access to their default class and classes 1 and 2.

Doing this:
$game_actors[1].unlock_class(3)
Adds class number 3 to actor 1.
Then doing this:
$game_actors[1].remove_class(3)
Removes it from actor 1.

So, I don't see any issue, if you try to remove classes 1 or 2, then nothing happens as they are part of the default classes which are designed not be locked.

From the code perspective, each actor has access to the classes stored in the default array + their personal array. Removing a class will remove it from the personal array unless the class is the main class used by the actor.

Just to let it be known I have tried having no default classes at startup (in the linked script), I've tried having actor 2 unlocked after the script is called, and still no changes. I'll really appreciate any help. ^^
I don't understand how your issue could arise, can you give the exact parameters you have (including actors notetags though it should not matter here) and the exact sequence of actionrs/commands that you perform?
I don't understand how your issue could arise, can you give the exact parameters you have (including actors notetags though it should not matter here) and the exact sequence of actions/commands that you perform?
After reading your reply I realized what I was doing wrong. I had set this line..

DEFAULT_UNLOCKS = [6, 7 ] # Classes unlocked by default.

..with the actor's starting classes. I didn't catch on that the default classes set there couldn't be locked. So changing it to DEFAULT_UNLOCKS = [ ] and running the script calls are removing those classes from being used by the other characters.

Now they only start with their set classes, and can't swap them apart from what I use with $game_actors[x].unlock_class(y). Some times the solution can be a real needle in a moon sized hay stack when it's that easy to overlook.

Thanks for pointing out the default thing. Sorry it was so darn simple. ^^;

Original thread: https://forums.rpgmakerweb.com/threads/class-system-yanfly-restrict-classes-to-just-one-actor-vx-ace-ver-of-script.177823/