First off, I am not sure if luk affects buffs and debuffs. I think they are always 100%.
In rpg_objects there is a function called lukEffectRate which determines how luk changes the probability of inflicting states.
JavaScript:
Game_Action.prototype.lukEffectRate = function(target) {
return Math.max(1.0 + (this.subject().luk - target.luk) * 0.001, 0.0);
};
Translating this to "RPG Maker language", it would look something like this:
Math.max(1.0 + (a.luk - b.luk) * 0.001, 0.0)
Don't mind the Math.max, it just ensures that the %-Chance does not go below 0%.
We go with this instead:
1 + (a.luk - b.luk) * 0.001
The result of this formula is the modifyer for the state chance.
As an example:
You have a
40% chance of inflicting burn with a skill
You have
100 Luck
The enemy has
20 Luck.
0.4 *
1 + (100 - 20) * 0.001
= 0.48
So the chance to ACTUALLY inflict burn is 48%.
Nicely presented, but not quite accurate. What you missed is that the lukEffectRate is a
multiplier for the base chance - it is not added to the base chance. You can see this in the methods itemEffectAddAttackState and itemEffectAddNormalState (they may have different names in MV; I am looking at the MZ code but I am certain the mathematical mechanics are similar between MV and MZ).
In other words, if the skill normally has a 40% chance to inflict burn, the modified chance will be 40% * (1 + ((100 - 20) * 0.001)) = 40% * 1.08 = 43.2% chance to inflict burn. As you can see, the effect of LUK is very minimal, which is why you'd want to either use it on other places (eventing, skill formulas) or just leave it out of your game entirely.
Also, lukEffectRate is not applied on any skill designated as a "Certain Hit" skill (which makes sense, as you wouldn't want it to affect, for example, a healing state given to an ally).
It looks like itemEffectAddDebuff is affected by lukEffectRate too, meaning that Debuffs (but not buffs) are affected by LUK of the user and opponent target.