Hit Accuracy (YEP)

From Yanfly.moe Wiki
Jump to navigation Jump to search

Welcome to the wiki! This is where you can find resources from Yanfly.moe, Ækashics.moe,
VisuStella, Caz Wolf, Fallen Angel Olivia, Atelier Irina, and other affiliated content creators.



This is a plugin created for RPG Maker MV.

For help on how to install plugins, click here.

For help on how to update plugins, click here.

Got errors with your RPG Maker MV plugin? Click here.

Masterarbeit Writer

Yanfly Engine Plugins

This plugin is a part of the Yanfly Engine Plugins library.


By default, RPG Maker MV's action accuracy formula is unintuitive. For what
it matters, the accuracy of the skill is determined first, then the evasion
of the target is determined second regardless of the accuracy of the first
check. This means that even if an attacker has 1000% HIT accuracy, the skill
can still be evaded by the enemy's 5% EVA stat. So instead, this plugin will
provide control over an action's accuracy formula and evasion formula. By
this plugin's default settings, accuracy will now be calculated where the
attacker's HIT and the enemy's EVA are set against one another for a more
intuitive accuracy formula.


This plugin can be plug-and-play. But, if you wish to modify the accuracy
formulas to your liking, adjust the plugin parameters that alter each of the
individual aspects.

skillHitRate - This is the inherent success rate of the skill/item.

userHitRate - This is the accuracy rate of the user. If it's a physical
action, by default, HIT is used. If it's a magical action, by default, there
will be a 100% modifier from it, meaning it doesn't alter the success rate.

targetEvadeRate - This is the evasion rate of the target. If it's a physical
action, the EVA stat is used by default. If it's a magical action, the MEV
stat is used by default.


Version 1.04:
- Bypass the isDevToolsOpen() error when bad code is inserted into a script
call or custom Lunatic Mode code segment due to updating to MV 1.6.1.

Version 1.03:
- Updated for RPG Maker MV version 1.5.0.

Version 1.02:
- Lunatic Mode fail safes added.

Version 1.01:
- Made a correction to the calculation of the skillhitrate so that it's a
proper float value instead.

Version 1.00:
- Finished Plugin!