Subclass EXP/Level Help

Hey everyone,

In my project, the party members have their Class and three different subclasses (called Vocations in-game). I would like there to be a way to allow the player to increase a low-level Vocation's level without affecting the main Class's level.

For example, our main character, Theo, has the Warden Class. "Wardens" in this setting are, mechanically, basically the same as a Red Mage in Final Fantasy, in that they're more or less equally proficient at melee combat, Black Magic, and White Magic. Theo's three Vocations are Soldier, Mage, and Cleric, which each provide a statistical and skill-related focus on those three aspects. Now let's say the player has only had the Soldier Vocation equipped, and wants to use Mage instead, except Theo's Warden and Soldier levels are both 20 but Mage and Cleric are only at 1. This is going to lower his stats by a good amount, lowering his effectiveness in battle. However, evenly levelling all three Vocations will put all of them far behind his main Class level, rendering all of them weaker overall. I would like there to be either a Rare Candy-like item that can only be used on a Vocation OR a passive state that increases EXP gain for a low-level Vocation.

Very important to note is that I do not want it to be possible for a Vocation's level to be able to exceed the main Class's level.

I'm using Yanfly's Class Change, Subclass, Auto Passive States, and a handful of other plugins that may or may not end up being relevant, but those are the important ones I can think of at the moment.

Thank you in advance for any and all help.
An important question is how are you determining their level now?
I do not use those plugins so I am unsure if they have their own class-based leveling system or if you are determining class levels through a different method.
A level is basically a variable, so you could just run pretty standard Variable control event commands to manipulate the value depending on how the level is determined in the context of the plugins and your game's logic.
Yanfly's Subclass has a Game_Actor.gainExpSubclass(value) method to gain the experience directly to the equipped subclass without affecting the current class.

You'd have to get the reference to the actor however you normally do. In an After Eval notetag on an item, you could do target.gainExpSubclass(69);

In order to make sure the gained experience doesn't allow the subclass to get higher than the current class, you'd have to do some math on the provided value.
Yanfly's Subclass has a Game_Actor.gainExpSubclass(value) method to gain the experience directly to the equipped subclass without affecting the current class.

You'd have to get the reference to the actor however you normally do. In an After Eval notetag on an item, you could do target.gainExpSubclass(69);

In order to make sure the gained experience doesn't allow the subclass to get higher than the current class, you'd have to do some math on the provided value.
Thank you, this alone is a big help. I don't know how I never knew that.

EDIT: I'm still having a ton of trouble figuring out how to actually implement that, however.
Yanfly's Subclass has a Game_Actor.gainExpSubclass(value) method to gain the experience directly to the equipped subclass without affecting the current class.

You'd have to get the reference to the actor however you normally do. In an After Eval notetag on an item, you could do target.gainExpSubclass(69);
Sorry to bother you, but how exactly do I, uh, do that?

EDIT: NEVERMIND I GOT IT, thank you so much.
Sorry to bother you, but how exactly do I, uh, do that?
Do what?

I gave you an example of a notetag to do what you asked for an exp-granting item. (After Eval is from Yanfly's Skill Core)

If you have more questions, you'll have to ask more specifically than that 😛

Original thread: https://forums.rpgmakerweb.com/threads/subclass-exp-level-help.164983/