MZ Himework's Enemy Levels With Levels beyond 99.

Greetings, as the title says, I am using Himework's enemy levels plugin, a issue I have is that levels above 99 are not defined due to the stat curve not being formula based. If i recall correctly, the Visustella core plugin does provide a thing that increases the max level and gives a formula for levels above 99, but unfortunetly said note tag only works for actors, thoughts on what to do here?

To put it simply:

Enemies should be able to go above level 99

They can, but have glitched stats due to no stat curve

Would prefer a solution that involves them using a formula for any levels above 99.

Thank you
If you're using VS plugins, they have their own enemy levels plugin in the basic bundle.

If you don't want to use that, you'll probably just need to edit the Himeworks codes (I assume you're also using the Enemy Classes plugin) paramBase method to check data or add extra based on the level. Something like (replace FORMULA with something you want):

var TH_EnemyClasses_GameEnemy_paramBase = Game_Enemy.prototype.paramBase;
Game_Enemy.prototype.paramBase = function(paramId) {
if (this._classId === 0) {
return TH_EnemyClasses_GameEnemy_paramBase.call(this, paramId);
}
else {
if (this._level < 100) {
return this.currentClass().params[paramId][this._level]
} else {
return this.currentClass().params[paramId][99] + FORMULA
}
}
};

EDIT: To explain a little, the code above works like usual when the level is less than 100, after that it adds the parameter value at lvl 99 to your custom FORMULA (if you want to make conditionals or reference some outside data, you can make it more complicated, like different formulas for different enemy ids).
If you're using VS plugins, they have their own enemy levels plugin in the basic bundle.

If you don't want to use that, you'll probably just need to edit the Himeworks codes (I assume you're also using the Enemy Classes plugin) paramBase method to check data or add extra based on the level. Something like (replace FORMULA with something you want):

var TH_EnemyClasses_GameEnemy_paramBase = Game_Enemy.prototype.paramBase;
Game_Enemy.prototype.paramBase = function(paramId) {
if (this._classId === 0) {
return TH_EnemyClasses_GameEnemy_paramBase.call(this, paramId);
}
else {
if (this._level < 100) {
return this.currentClass().params[paramId][this._level]
} else {
return this.currentClass().params[paramId][99] + FORMULA
}
}
};

EDIT: To explain a little, the code above works like usual when the level is less than 100, after that it adds the parameter value at lvl 99 to your custom FORMULA (if you want to make conditionals or reference some outside data, you can make it more complicated, like different formulas for different enemy ids).
This works perfectly, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/himeworks-enemy-levels-with-levels-beyond-99.182460/