MV Enemy skill points based with level

So, I am using yanfly's enemy level plugin and job points plugin, but am wondering if there is a way to make it so the enemy gives more skill points based on their level. For example, if my slime gives 5 points at level 1, I want it to give 10 at level 2 and so on. How would I go at doing this? Thanks for any help.

Plugins:
Here I added to the code to add extra 5 jp per enemy level. But if you don't want the original value, change it in the plugin settings (or edit the below code). Add this as a plugin file:

Game_Enemy.prototype.jp = function() {
var user = this;
var target = this;
var a = this;
var b = this;
var code = this.enemy().jp + "+ this._level * 5";
try {
return eval(code);
} catch (e) {
Yanfly.Util.displayError(e, code, 'ENEMY JP FORMULA ERROR');
return 0;
}
};
Here I added to the code to add extra 5 jp per enemy level. But if you don't want the original value, change it in the plugin settings (or edit the below code). Add this as a plugin file:

Game_Enemy.prototype.jp = function() {
var user = this;
var target = this;
var a = this;
var b = this;
var code = this.enemy().jp + "+ this._level * 5";
try {
return eval(code);
} catch (e) {
Yanfly.Util.displayError(e, code, 'ENEMY JP FORMULA ERROR');
return 0;
}
};
How will this work with other enemies that give different amounts of points?
Well, if it's always level * something, I guess you can change it to:
var multiplier = this.enemy().meta.jpMultiplier || 0;
var code = this.enemy().jp + "+ this._level * multiplier"
Put a notetag <jpMultiplier:X> on the enemy (set X to a number).

EDIT:
So just to be clear:

Game_Enemy.prototype.jp = function() {
var user = this;
var target = this;
var a = this;
var b = this;
var multiplier = this.enemy().meta.jpMultiplier || 0;
var code = this.enemy().jp + "+ this._level * multiplier";
try {
return eval(code);
} catch (e) {
Yanfly.Util.displayError(e, code, 'ENEMY JP FORMULA ERROR');
return 0;
}
};
Well, if it's always level * something, I guess you can change it to:
var multiplier = this.enemy().meta.jpMultiplier || 0;
var code = this.enemy().jp + "+ this._level * multiplier"
Put a notetag <jpMultiplier:X> on the enemy (set X to a number).

EDIT:
So just to be clear:

Game_Enemy.prototype.jp = function() {
var user = this;
var target = this;
var a = this;
var b = this;
var multiplier = this.enemy().meta.jpMultiplier || 0;
var code = this.enemy().jp + "+ this._level * multiplier";
try {
return eval(code);
} catch (e) {
Yanfly.Util.displayError(e, code, 'ENEMY JP FORMULA ERROR');
return 0;
}
};
That worked! Thank you!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-skill-points-based-with-level.180427/