Understanding LUK formula (Yanfly BaseParamControl)

Hi everyone,
been reworking the way base stats work for my game, got all the way up to LUK and I'm pretty sure I'm misunderstanding something. As I really don't know how to play-test LUK (afraid I'm not sure where the chance of an effect triggering is stored) I'd like to make sure I understand it correctly before proceeding.

You can get the plugin here: http://yanfly.moe/2016/03/25/yep-86-base-parameter-control/

So, the base formula for LUK Effect is as follows:
"Math.max(1.0 + (user.luk - target.luk) * 0.001, 0.0)"
Is it just me or, like this, LUK does pretty much not change anything? Let's take me 40 LUK, enemy 20 LUK:
"Math.max(1.0 + (40-20) * 0.001, 0.0)" = "Math.max(1.02, 0.0)"
I mean if the skill base effect is 70%, this would boost it to 71.4%. Woop woop.

I wanted to make it so that each point you have above the enemy gives you an extra 3% (yes, this means you will be getting 100% often) to make it more meaningful as a stat. Each stat does something important and, as I will be using point buy, it will be up to the player to decide what strategy they're going for. As it's a tactics game more than an RPG having 100% of an effect happening is the optimal situation to be in.

Is this the correct formula for it?

"(Math.max + ((user.luk - target.luk)*3), 0.0)"

I'm not sure about the formatting, would really appreciate some feedback. Thanks!
You're close. Since it is a percentage, you need everything in decimal form. So instead of *3 you need *0.03, but then it should do what you want.
Great, thanks. 🙂

EDIT: Umm, actually when I copy-pasted the version with the change you suggested I get a crash saying

"Syntax Error"
"Unexpected End of Input"

Any ideas as to why that may happen?

T
hat's fixed, but now none of the states trigger anymore. Weird. I tested it with skills that apply the effect 100% of the time, they don't do anything either.

My current formula is as follows: Math.max+(((user.luk - target.luk)*0.03), 0.0)
You have a few signs off. Try this:

Math.max(1.0 + (user.luk - target.luk) * 0.03, 0.0)

Remember though, it is going to multiply your rate by this, not add it (which is why you need the 1.0 + part). To change that you have to do some editing deep at the coding level.

Edit: Don't add the "" either. It should be fine without them.
Oh, that's a shame. Adding would mean much simpler maths and would let me go for skills with, for example, 5% rate (to which you could add let's say 70/80 with a LUK focused char) which would make them reliable.

Oh well, at least it's an improvement. Thanks for the help.
True, but you could still figure out at what point do you want the chance to inflict a status ailment to double, then with some math get a pretty close to similar effect based on what chance of inflicting the state you want to start with.

Original thread: https://forums.rpgmakerweb.com/threads/understanding-luk-formula-yanfly-baseparamcontrol.93686/