Disabling RPG Maker MV from leveling the player up?

RPG Maker MV by default will level the players up as they meet their XP costs. I want players to have to go talk to a NPC in order to level up and pay in gold and xp based on their level.

Is there a way for me to stop RPG Maker MV from just leveling the player up? I still want them to collect the XP, I just want a NPC to do the leveling.
To prevent players from leveling up from combat, I would just set the XP from enemies to zero. Instead of using default XP you can just use a variable for XP and have that increase through Control Variables That trigger on events that you want, such as win conditions in battle processing. The NPC can simply use this variable and the change EXP command to properly level up the party, and after that you can place a Control Variable command to set the XP variable to zero.

Alternatively you can go the soulslike route and have your currency and XP be the same thing. I would have one variable that would just check to see how much gold or currency the players have and when they meet with the leveling in PC, the first thing should be a control variable command to set that variable to the gold that the party has. Then I would have a variable that changes depending on how much XP the player wants to apply to the party. This variable can be inputted with a Input Number command. A Conditional Branch should be placed afterwards to make sure that the XP that they want apply to the character does not exceed the amount of gold that they have. After that it's just a matter of using Change Gold and Change EXP commands.

Not sure if this is what you exactly wanted but it should get you in the right direction. Hope I was able to help.
Alternatively set the regular level up requirements to some very large number, so that the player never levels up normally.
or instead of a variable, use exp ITEM in order to be traded (a plugin is
required to increase the base cap to 999999999.

a variable like previous or an enormous amount of exp required to level
is 1 way to set static to, exp needed to level 999999999999,
or return false to not level up by exp, but use it as a kind of "rare candy"
in pokement to level up instantly (to be traded for items, gold, variable exp etc)

there are alot of ways to pull this off though.
The OP doesn't want the XP for leveling to vanish, he want the actors to have additional non-XP costs for leveling up.

There are many ways to handle that logically, but the fact that there will be costs for each and every levelup makes those methods complex to implement.
I think the easiest way would be to request a plugin that implements a new value "Level-Limit" for each actor and has a script command that can increase the level limit for a specific actor.
then have your trainer event check if the actor has enough XP and gold to purchase one such limit-up.
Paste the below into a *.js file, include as a plugin:
Code:
Game_Actor.prototype.changeExp = function(exp, show) {
    this._exp[this._classId] = Math.max(exp, 0);
    if (!this.isMaxLevel() && this.currentExp() >= this.nextLevelExp())
        this._exp[this._classId] = this.nextLevelExp();
    while (this.currentExp() < this.currentLevelExp()) {
        this.levelDown();
    }
    this.refresh();
};

That will cause the actor to stop gaining exp when they're at the max for their level. Then, in your NPC event, you can use show choices to list the actors. When the player selects one, you do a Conditional Branch with this script in it:
Code:
!$gameActors.actor(14).isMaxLevel() && $gameActors.actor(14).currentExp() == $gameActors.actor(14).nextLevelExp()
where the three instances of 14 are replaced by that actor's ID, no leading zeros. That Conditional Branch will be true if they have enough exp to level up.
Paste the below into a *.js file, include as a plugin:
Code:
Game_Actor.prototype.changeExp = function(exp, show) {
    this._exp[this._classId] = Math.max(exp, 0);
    if (!this.isMaxLevel() && this.currentExp() >= this.nextLevelExp())
        this._exp[this._classId] = this.nextLevelExp();
    while (this.currentExp() < this.currentLevelExp()) {
        this.levelDown();
    }
    this.refresh();
};

That will cause the actor to stop gaining exp when they're at the max for their level. Then, in your NPC event, you can use show choices to list the actors. When the player selects one, you do a Conditional Branch with this script in it:
Code:
!$gameActors.actor(14).isMaxLevel() && $gameActors.actor(14).currentExp() == $gameActors.actor(14).nextLevelExp()
where the three instances of 14 are replaced by that actor's ID, no leading zeros. That Conditional Branch will be true if they have enough exp to level up.
Thanks, this worked a treat. I really appreciate it!

Original thread: https://forums.rpgmakerweb.com/threads/disabling-rpg-maker-mv-from-leveling-the-player-up.162408/