I want to make the LUK stat more relevant. At the moment I find it somewhat trivial in its effect.
What I would like is to change the way the default script calculates things so that each 1 point of Luck over the opponent equals a + 0.5% chance to ailment success rates.
However, my knowledge grade is such that I'm not even sure which default script does this, let alone how to change it. I had thought it was Game_Battler, but I don't see a specific % rate.
Could anyone tell me what to do?
Thanks
I've confirmed that it is multiplicative in MV, and I'm guessing the formula is the same in Ace.
var chance = target.debuffRate(effect.dataId) * this.lukEffectRate(target);
Game_Action.prototype.lukEffectRate = function(target) {
return Math.max(1.0 + (this.subject().luk - target.luk) * 0.005, 0.0);
};
So to give an example of how this works numerically, as is: If my luck is 60 and the target's is 100, there is difference of 40 luck, so that lukEffectRate is 0.8. Therefore, if an ailment had default rate of 60%, it now has a rate of 48% - a drop of 12 points instead of 20. Swapping it, so that you have 100 luck and they have 60 luck, gives a 72% rate.
Now, if the multiplier was 0.01 instead, then lukEffectRate is 0.6, so the ailment has a 36% chance of success. Conversely, if the user has 100 luck and the target has 60 luck, the success rate is now 84%.
Now, if you want to make things additive, then you'd probably want to rewrite the formula as:
var chance = target.debuffRate(effect.dataId) + this.lukEffectRate(target);
Though come to think of it, I might prefer a multiplicative formula to keep low-rate effects from getting out of control.
Ok, then change the code to:
class Game_Battler < Game_BattlerBase
def luk_effect_rate(user)
[(user.luk - luk)* 0.01 + 1, 0.05].max
end
end
In bold is the change from the other code. If that still proves too low, change 0.01 to whatever your % is (in decimal form though).
That will make it so that each point of luck is about a 1% increase. Again, since it is multiplicative, it won't be quite the same as a +1% increase, but I've noticed that in testing it works out about as well.