Hmm, maybe that won't work then.
But! Thanks to the power of Knowing How Works, do this in a script call instead:
var actorId = $gameParty._targetActorId;
var newMax = $gameActors.actor(actorId).maxLevel() + 5;
$gameSystem.setActorMaxLevelRestriction(newMax, actorId);
What if you do
$gameActors.actor(14).maxLevel()
what comes up for that? (and yes, developer console)
Sorry, I meant $gameActors.actor(145).maxLevel()
Did you exit out of the menu and go back in?
Ah.
* Priority:
* In case of multiple restrictions (default, global, actor, class) the lowest
* value one will be used.
The default is 9, so it doesn't pay attention to the 14. Hmm.
Oh I see what's going on. This was intended to be a *restriction* plugin, so it only allows you to *lower* the maximum, not raise it.
However, if you remove lines 154 and 159 from the plugin and insert
if (levelArray.length === 0) return _Game_Actor_maxlevel.call(this);
it should work for raising it too.
Alternatively, it'll work as-is if you set the <max level: x> to the highest it can possibly be at any point in the game and then use the Trivel plugin to set it to its lower initial value.
Sorry, I missed a bit when editing that to say that you should insert that between lines 162 and 163.