Question regarding luck and effects.

Hopefully I'm writing this in the right place...


So I am currently looking to change the effect of luck in my game, as I am sure many people have done before. My game uses low number power creep, in that statistical values are pretty small, so having a single point in strength causes a noticible difference. Enter luck.


So I know the effect of luck can be found in game_battler as follows:


def luk_effect_rate(user)
    [1.0 + (user.luk - luk) * 0.001, 0.0].max
 end


As it stands, there needs to be a -huge- difference in the users luck vs targets luck for there to be a noticible, or even moderate chance if status application.


I'm still unexperienced in programming. I am not entirely sure which part of the formula is doing what. If I wanted to change it so that a single point difference in luck was causing a 1% raise/lower status affect chance, what would I change the formula to?


Additionally, I want to add to the effect of luck, so that 1 luck = 1 crit%. I know this can be done with scripts like yanfly's https://yanflychannel.wordpress.com/rmvxa/core-scripts/extra-param-formulas/ but, if I do use that, will it overwrite and negate the base effect of luck?


I appreciate any help!


~


Additionally, while I'm here (and totally unrelated), is there a way to make combat text at the top of the screen not scroll by automatically, but rather, require a button input?
You will need to change it to:


[1.0 + (user.luk - luk) * 0.01, 0.0].max


0.01 = 1%.


Yanfly's script shouldn't conflict with Luck's original purpose. (But do remember that, for 1 Luck = 1% Critical, you need to use "luk * 0.01". Mentioning it because it's a common mistake. :3)
You will need to change it to:



[1.0 + (user.luk - luk) * 0.01, 0.0].max


0.01 = 1%.


Yanfly's script shouldn't conflict with Luck's original purpose. (But do remember that, for 1 Luck = 1% Critical, you need to use "luk * 0.01". Mentioning it because it's a common mistake. :3)

Perfect! Thanks for the help, Faryn!

Original thread: https://forums.rpgmakerweb.com/threads/question-regarding-luck-and-effects.68339/