Dynamic Custom Parameter modificators on states

Ayy, it's me again, woohoo.

So anyways, I have been playing around with some passive skills recently.
Basically, you learn passive skills that apply passive states on the actors (via. MrTs_PassiveSkills)

Possibly affiliated plugins:
YEP_BuffsStatesCore
YEP_BaseParamControl
MrTs_PassiveSkills

So anyways, I want to make a state that increases the affected actors ATK by 20% of their MAT.
e.g. : a.atk += a.mat * 0.2


I haven't found any way to do it with any plugin mentioned.
YEP_BaseParamControl let's you add modificators, but these are static values by nature and YEP_BuffsStatesCore only let's you execute effects at certain points during actions in battle.

Is it somehow possible to achieve or are there any alternatives?
Yanfly's Auto Passive States plugin allowed you to set states as passives, so you'd just have to create an on apply effect for it that calls user.addParam(2, user.mat * 0.2)
Yanfly's Auto Passive States plugin allowed you to set states as passives, so you'd just have to create an on apply effect for it that calls user.addParam(2, user.mat * 0.2)
Auto-Passive states are never applied, or removed, so Apply and Remove effects never occur for them.

You can modify the function that determines parameters directly via aliasing it. I have done this in my own project to increase base parameters by a percentage of other base parameters.

JavaScript:
var Ramza = Ramza || {}
Ramza.tweaks = Ramza.tweaks || {}
Ramza.tweaks._actorParamPlus = Game_Actor.prototype.paramPlus
Game_Actor.prototype.paramPlus = function(paramId)  {
    if (this.isStateAffected(320) && paramId == 3){
        //has priest mastery and checking for def
        var updateDef = Ramza.tweaks._actorParamPlus.call(this, paramId)
        var bonusDef = Math.floor((Ramza.tweaks._actorParamPlus.call(this, 5))/10)
        updateDef = updateDef + bonusDef
        return updateDef;
    }
}
In this code snippet, I check for a state active on the actor, and then if found, it adds bonus defense to that actor based on their mdf.

Original thread: https://forums.rpgmakerweb.com/threads/dynamic-custom-parameter-modificators-on-states.124450/