MV Plugin Assistance - Yanfly Hit Accuracy

Hello my fellow nerds!

I'm currently have a fan-made Fire Emblem game in the works. I've had frustrations with Yanfly's hit rate plug in. I've attempted to match it to Fire Emblem: Path of Radiance's hit rate formula, but it never seems to calculate it to a chance percentage, but more like a '100% or 0%' chance. I'm not concerned about terrain, biorhythm, etc. Just the base stats regarding the hit rate.

Here are the functions I am currently using:

--FORMULA--

Accuracy Formula: skillHitRate * (userHitRate - targetEvadeRate)

Evade Formula: 0.00

--USER HIT RATE--

Physical: (user.mat * 2) + user.hit

Magical: (user.mat * 2) + user.hit

--TARGET EVADE RATE--

(target.luk * 2) + target.eva

target.agi * 2

I am using Mat as the Actor's 'Skill', and the Luk as their 'Speed". To be specific with how I am integreting this to Fire Emblem styled combat, this is how I'm setting it up:

1606152533819.png


user.hit is increased with different forms of weapons, where as target.eva is increased with armor they equip.

Anybody know what I'm doing wrong here? I'm wondering if it's not being calculated into a percentage chance like I want it to? Right now it has been working more like a 100% or 0% hit chance, which is not what I want. Fire Emblem generally consists more of a combined percent chance based on the user and targets parameters.

Thanks in advance!
Well take a look at this: (user.mat * 2) + user.hit
If the user's MAT is 1 then that means they'll have a Hit Rate of (1 * 2) + user.hit so it's already at least 200% hit chance right there, and that's at the lowest MAT possible. What you need to do is scaled down the effect MAT has in the formula.
Thanks so much! That was a much easier fix than I had anticipated. I just made the numbers smaller and now it works. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/plugin-assistance-yanfly-hit-accuracy.130231/