RMMV Plugin Assistance - Yanfly Hit Accuracy

wwv

Villager
Member
Joined
Jul 14, 2019
Messages
10
Reaction score
0
First Language
english
Primarily Uses
RMMV
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!
 

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,846
Reaction score
1,599
First Language
English
Primarily Uses
RMMV
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.
 

wwv

Villager
Member
Joined
Jul 14, 2019
Messages
10
Reaction score
0
First Language
english
Primarily Uses
RMMV
Thanks so much! That was a much easier fix than I had anticipated. I just made the numbers smaller and now it works. :)
 

Latest Threads

Latest Posts

Latest Profile Posts

I'm moving on from RMXP finally. I've been stuck in a difficult decision between XP and MZ, and I've given up and moved on to MZ. Overall I'm really liking it, I wish tilesets were easier to setup like XP, but it's actually not that bad!
Have you ever gone full 'Ship of Theseus' while frankenspriting? Because I just did.
I saw my new eye doctor today, he reminds me of Satoru Iwata for some reason
I've been using a modified version of a script called Multiple Messages. It makes my text boxes look like a Mario & Luigi game! There is something about it that bothers me a little bit, but I shouldn't worry about that now.

Side note, Mist's walking animation is almost perfectly in sync with Loose Yourself by Eminem.
Starting work on some stuff for the community. Hopefully it will be fun, and useful to somebody.

Forum statistics

Threads
107,773
Messages
1,032,040
Members
139,915
Latest member
nick7626
Top