trouble setting formulae for yanfly's extra parameters script

I'm trying to set up agility to derive a number of different secondary stats, I'm starting with crit rate. The formula already present on downloading the script is:

      :cri_n_value => "luk",

      :cri_formula => "(n / (100.0 + n)) * 0.333 + 0.000 + base_cri",

I don't really know what that means, I want crit rate to equal 10% of agility + the base, so i tried simply (agi *0.10) + base_cri, tried working in the n, I don't understand what those extra numbers are for; it's just a simple derivative. Basically what I need is the formula for crit rate to be base +10% of agility, then crit evasion being the base +5% of agility. Can someone help me out please? Thanks.

-Shion
I'm trying to set up agility to derive a number of different secondary stats, I'm starting with crit rate. The formula already present on downloading the script is:

      :cri_n_value => "luk",

      :cri_formula => "(n / (100.0 + n)) * 0.333 + 0.000 + base_cri",

I don't really know what that means, I want crit rate to equal 10% of agility + the base, so i tried simply (agi *0.10) + base_cri, tried working in the n, I don't understand what those extra numbers are for; it's just a simple derivative. Basically what I need is the formula for crit rate to be base +10% of agility, then crit evasion being the base +5% of agility. Can someone help me out please? Thanks.

-Shion
The n in :cri_formula is equal to what :cri_n_value contains. The below example:

:cri_n_value => "agi",:cri_formula => "n * 0.100 + base_cri",Means that :cri_formula is equal to (agi) * 0.100 + base_cri as n is now agi

Same applies to cev:

:cev_n_value => "agi",:cev_formula => "n * 0.050 + base_cev",This means that :cev_formula is equal to (agi) * 0.050 + base_cev as n is now agi
The n in :cri_formula is equal to what :cri_n_value contains. The below example:

:cri_n_value => "agi",:cri_formula => "n * 0.100 + base_cri",Means that :cri_formula is equal to (agi) * 0.100 + base_cri as n is now agi

Same applies to cev:

:cev_n_value => "agi",:cev_formula => "n * 0.050 + base_cev",This means that :cev_formula is equal to (agi) * 0.050 + base_cev as n is now agi
Which makes perfect sense to me, except... it's still not working right, it's giving 10% crit per point of agility. here's what i have copied and pasted from my entry in the script:

      :cri_n_value => "agi",

      :cri_formula => "n * 0.100 + base_cri",

 

That looks like what you have to me, I'm not sure why the writer of the script would use such a long calculation if there wasn't some good reason, but regardless upon realizing it gave 10% I simply changed it to "n * 0.001 + base_crit" and it APPEARS, at the very least, to be doing what I intended; even though that calculation, to my eye, should only be giving 1% crit for every 1000 points of agility.. if anyone has an explanation for why that's happening I'd still be interested to hear it.
It seems that you don't know if cri is x%, then base_cri is x / 100. The same applies to cev(in fact it applies to all ex-parameters and sp-parameters, although it seems to be off topic).

So for n * 0.001 with n being agi, every 1000 points of agi adds 1 to cri/cev, which is 100% of them. Now 1 point of agi adds 0.1% of cri/cev.

If n is a rather long expression, it'll be useful as it makes the final formula looks simpler.

P.S.: I though (10% of agility + the base) means agi * 10% + the base, that's agi * 0.1 + the base. My bad 🙂
It seems that you don't know if cri is x%, then base_cri is x / 100. The same applies to cev(in fact it applies to all ex-parameters and sp-parameters, although it seems to be off topic).

So for n * 0.001 with n being agi, every 1000 points of agi adds 1 to cri/cev, which is 100% of them.
Ok.. so what you're saying in laments terms is all ex and sp parameters %'s(in-game) are 1/100th of whatever their value is? I want to know it in order to use the script so I don't think it's off-topic.
Ok.. so what you're saying in laments terms is all ex and sp parameters %'s(in-game) are 1/100th of whatever their value is? I want to know it in order to use the script so I don't think it's off-topic.
My previous reply has a mistake - it's not displayed as x% while stored as x / 100, but stored as x while displayed as x * 100%.

The editor displays them as percentages(x * 100%, like those in database) but they're stored as x, their original values.

Actually, this applies to any number displayed as percentages in the editor as RGSS3 doesn't store numerical values as percentages by default.
Yes, and the editor displays them with percentages multiplied(x * 100%, like those in database) but stores them without multiplying percentages(x).

Technically speaking, my previous reply has a mistake - it's not displayed as x% while stored as x / 100, but stored as x while displayed as x * 100%.
Alright, I believe I now understand what was happening, even though how you techies explain stuff is always over my head. 😉 Thanks for your help.

Original thread: https://forums.rpgmakerweb.com/threads/trouble-setting-formulae-for-yanflys-extra-parameters-script.26155/