[Solved]Custom Parameters for actors

Can anyone point me in the direction of a plugin that will allow me to define extra parameters for actors?
Specifically I'm trying to define a variable on each actor called "Proficiency Bonus", that will effect the math of many skill effects, attacks, and certain events. It starts at 2, and goes up 1 every two levels. And I like to be able to refer to it in damage formulas.
The problem I see with this, which prevents me from just hard coding a variable for each actor, is that the actors share many generic skills, so the formula will have to be able to look at their personal bonus, like with "a.atk" or "a.def", I'd need to reference "a.PB".
'Plugin Support' is where you post if you want help with a plugin you already have.

Moved to: JS Plugin Requests
If I remember correctly, GALV has a weapon proficiency plugin that you can use in damage formulas.

https://galvs-scripts.com/category/rmmv-plugins/mv-battle/#post-1902
There are probably some plugins out there that allow you to configure new parameters and properties for actors (I want to say Frogboy made some like that), but this request is pretty easy so you probably don't need a full plugin.

You can add this code in as a new "plugin"

Code:
// Define a new property of Proficiency Bonus for actors
// Use this with `actor.PB`, for example in the damage formula
// access it with `a.PB` or `b.PB`
Object.defineProperty(Game_Actor.prototype, 'PB', {
    get: function() {
        return 2 + Math.floor((this.level - 1) / 2);  // start at 2 and go up by 1 every 2 levels
    },
    configurable: true
});

Now in the damage formula you can use `a.PB` to refer to this new parameter "Proficiency Bonus"
That worked perfectly, thanks a lot!

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/solved-custom-parameters-for-actors.106036/