I suck at math. Can I get help with a formula?

Boy did I ever pick a great genre to start making games for, right? lol

I'm not sure if this is quite the right place to be asking this question, so if it's not, please move it to the appropriate place.

So I'm using a script for RPG Maker VX Ace that allows me to change how some parameters are calculated. It gives me, among other things, the ability to influence critical hit rate with the LUK stat.

What I want to do is make it so that each stat point in LUK gives a 0.25% boost to critical hit rate, plus the default existing crit rate calculations. And don't worry, my game has very small numbers so this won't cause you to have an insanely high crit rate lol.

By default, the script in question has this to say about the luck > critical formula:
# This adjusts the formula for CRI. CRI is the critical hit rate. # This provided formula uses the user's flat total amount of LUK as a # bonus contributing factor to increasing the user's CRI. If you do not # wish to use this formula, change it to "base_cri" to have it use # whatever the original CRI rate is. :cri_n_value => "luk", :cri_formula => "(n / (100.0 + n)) * 0.333 + 0.000 + base_cri",

So how do I make this have the 1 LUK = +0.25% CRI value that I want? What do I type in there?
Moved to: RGSSx Script Support

Is that a 25% (0.25) boost or a 0.25% (.0025)? For example, if LUK is 4, is the boost 100% or 1%?

What is the script? We need to see more of it than that.
Moved to: RGSSx Script Support

Is that a 25% (0.25) boost or a 0.25% (.0025)? For example, if LUK is 4, is the boost 100% or 1%?

What is the script? We need to see more of it than that.

I want it where if LUK is 4, the boost is 1%.

Here's the script: https://github.com/Archeia/YEARepo/blob/master/Core/Extra_Param_Formulas.rb
:cri_formula => "(n / (100.0 + n)) * 0.333 + 0.000 + base_cri",

So how do I make this have the 1 LUK = +0.25% CRI value that I want? What do I type in there?
I'm a little confused by your question, and more confused by the equation in that script (why does it have + 0?).

Wouldn't you just make it "n * 0.0025 + base_cri" ?
I'm a little confused by your question, and more confused by the equation in that script (why does it have + 0?).

Wouldn't you just make it "n * 0.0025 + base_cri" ?

I dunno why the script is written like that - that's just how it is by default lol

Is it that simple? Sorry, like I said, I'm really terrible at math lol.

So, if I may ask, why 0.0025 and not 0.25?
1.0 represents 100% while 0.25 stands for 25% so that means 0.0025 equals to 0.25%... and it makes it hard to notice any change in the behavior at all.
1.0 represents 100% while 0.25 stands for 25% so that means 0.0025 equals to 0.25%... and it makes it hard to notice any change in the behavior at all.

Oh, I know, but see, Luck is not the only thing that boosts Crit rate in my game. Some equipment can too, for example, so I don't want it to be TOO high.
Oh, I know, but see, Luck is not the only thing that boosts Crit rate in my game. Some equipment can too, for example, so I don't want it to be TOO high.

I mean you can tweak that 0.0025 however you want.

You'll have to determine what number you want to go with via playtesting.
We cannot tell you what formula you need since this is your game. And you know most about it.
So, if I may ask, why 0.0025 and not 0.25?
Because that's what you asked for - you said .25%.

100% is multiplying by 1.
50% is multiplying by 0.5.
25% is multiplying by 0.25.
Keep sliding the decimal point over...
2.5% is multiplying by 0.025.
.25% is multiplying by 0.0025.
Because that's what you asked for - you said .25%.

100% is multiplying by 1.
50% is multiplying by 0.5.
25% is multiplying by 0.25.
Keep sliding the decimal point over...
2.5% is multiplying by 0.025.
.25% is multiplying by 0.0025.

Gah, I'm sorry, I'm just so bad at math!

Basically what I want is that if you have 4 LUK, you get a +1% boost in crit rate, 8 LUK would be +2% boost in crit rate, etc. So... that's what I want then?
You've had four people tell you so.
So... that's what I want then?

As we all have been saying, the modifier is 0.0025.

This number translates to "Every point of LUK increased the crit-chance by 0.25%".
Which in turn will mean that 4 LUK points will make up 1%.
You've had four people tell you so.

I know, I just wanted to be extra sure XD, sorry, just a bit OCD over here.

Thanks for the help everyone! Sorry for being a bit annoying 😛

Original thread: https://forums.rpgmakerweb.com/threads/i-suck-at-math-can-i-get-help-with-a-formula.140023/