Changeing Luck effect

Hello everyone.

I read that the effect that Luck has on applying negative states is as good as 0%.

Is there a plugin for MZ to change that % chance?

For example if user Luck is 100 and enemy luck is 50 I get a +5% chance for the state to apply (0,1% for every 1 Luck above enemys luck)

Or is there a way to change the core script to do such a thing?
I also have almost all Yanfly plugins but did not find any MZ plugin that can change how Luck works.

Thanks for any help
Here's the function from the code:
Code:
Game_Action.prototype.lukEffectRate = function(target) {
    return Math.max(1.0 + (this.subject().luk - target.luk) * 0.001, 0.0);
};

Math.max() just means it will return whichever number is higher, so if the attacker's luck minus the target's ends up being less than 0, it'll go to 0.

The result of that equation is used as a multiplier on the odds of the state/debuff applying, after elemental rates are applied. So less than 1 reduces the chances, higher than 1 is making it penetrate elemental resistance.

Make your changes, copy it into a text editor, save as a *.js file, include as a plugin.
Here's the function from the code:
Code:
Game_Action.prototype.lukEffectRate = function(target) {
    return Math.max(1.0 + (this.subject().luk - target.luk) * 0.001, 0.0);
};

Math.max() just means it will return whichever number is higher, so if the attacker's luck minus the target's ends up being less than 0, it'll go to 0.

The result of that equation is used as a multiplier on the odds of the state/debuff applying, after elemental rates are applied. So less than 1 reduces the chances, higher than 1 is making it penetrate elemental resistance.

Make your changes, copy it into a text editor, save as a *.js file, include as a plugin.
Thank you very much! I will try that.

Original thread: https://forums.rpgmakerweb.com/threads/changeing-luck-effect.156107/