Critical chance

Hello

I've been using Yanfly's Critical Control plugin and I have used it in order to modify the criticals in the game that I am working on. For my game the default 3x critical is a bit too powerful, and I modified the bonus flat damage to only use about 25% of the user's luck as bonust damage. Now I have those two things adjusted just as I want them, but I am havign trouble correctly using a formula for critical chance. I want luck to play a factor in scoring and avoiding critical hits. The default only involves Crit Chance and Crit Evasion.

Sadly, I'm not currently at my main computer, otherwise I would paste the formula that I came up with, but is somehow wrong enough to make my actors critical hit EVERY hit!  I only wanted 5% of the attacker's Luck to be added, with Crit Chance, on to their chance to score a critical hit, and for 5% of the defender's Luck to be used to reduce, along with Crit Evasion, the chance of that critical occuring.

I figured I would post here for some help before I get home to work on figuring it out again.

Thanks
I'm guessing it's because you didn't convert the Luck modifier to a decimal like Critical Hit Rate is. While parameters like LUK are stored as integers, ex-parameters like CRI are decimal-based—a Critical Hit Rate of 5% is not 5 CRI, but 0.05 CRI. So if you had 20 LUK, 5% of that would be 1, and added to a Critical Hit Rate of 5% would be 105%, meaning guaranteed criticals.

If that is the issue, then solving it is simple. Use "luk * 0.0005". That will convert the LUK into a decimal like CRI or CEV.
I made it to my computer. This is what I had:

rate = user.cri + user.luk * .05 * (1 - target.cev + target.luk * .05);

Not sure what exactly I did wrong...

Are you saying @lilyWhite that I need to change them to .0005, and everything else here should be correct?
You have an almost duplicate thread in Game Mechanics. Please do not post multiple threads with the same question.

This part of the forum is specifically for looking at broad questions which affect many games. It is not a 'how to' forum looking at one specific detail of one particular game. If you are unsure where something should go, there are pinned topics in each forum telling you.

As you have another thread on the go looking at this, I am closing this one.

Original thread: https://forums.rpgmakerweb.com/threads/critical-chance.50803/