Hit Rates, Evasion and LUK

Hi everyone,

I'll try and be as straight forward as possible with what I'm trying to do.

In my project, I have two "unofficial" categories of weapons - melee and projectile.

Projectile weapons are supposed to be equipped to hit fast and evasive enemies.

Melee weapons are for dealing more damage on slower, tougher enemies.

To achieve this, I want to add properties to both enemies and weapons so that this can play out - but I'm having great difficulty trying to engineer the intended effects.

My process so far as been to experiment with raising some or all of the following stats with certain enemies:

AGI, LUK and Evasion Rate. AGI and LUK are adjusted in the enemy's general settings to be approximately double of what my test actors have. Evasion rate is raised by 20% in the "Traits" section.

The above is for the fast and elusive enemies, to be targeted with projectile weapons.

Then, on the other side of things, the projectile weapon in question equipped to the test actor has:

+5 LUK (Bringing the actor's total luck up to 15, where the enemy's LUK is 20)
+2 AGI (Bringing the actor's total AGI up to 18, where the enemy's LUK is 22)
+25% Hit Rate

Lastly, for the "melee" test weapon equipped to one of the test actors:

-3 LUK (bringing the test actor's total LUK down to 5)
-3 AGI (bringing the test actor's total AGI down to 3)
-30% Hit Rate


It's worth noting that all the actor / class stats have been set up the same to control the test conditions, like so:

Spoiler
1605012754779.png

Testing this through a battle troop, there does not seem to be much correlation between these stat changes and the rate at which the test actors can successfully hit the enemy.

It seems to be the case that if anything, the actor with the melee weapon equipped is hitting the enemy more frequently than the two actors with projectile weapons.

Now, I don't know that changing the AGI stat here will amount to much of anything other than changing when actors can take their turns, but I'm surprised that changing the Hit Rate and LUK seems to have had no effect in any of my tests.

I imagine in that case, I must be fundamentally misunderstanding how a successful hit is calculated. I have done a bit of research into this, but it seems a bit touch and go, and also that RMMV seems partially to blame for its sub-optimal method of calculating it.

Anyway - any help I can get to create my desired effect would be really appreciated. Remember - I primarily want to achieve this through weapon usage, not changing actor / class stats. Thanks so much!
MV computes hits as follows:

1) It rolls to see if you hit. The only thing it uses is To Hit for this. If this check fails you will miss.

2) Then the engine rolls to see if the enemy evades. The only thing used for this is EVA stat, and if this check fails the enemy evades.

If you want it done differently you'll need a plug-in.

AGI and LUK have no bearing on to hit unless you code it to be different.
here is a link to how the skills work as far as damage calculation goes:

AGI only affects the action order.

every action has a number eqal to battler.agi plus skill.speed plus random percentage
then the actions are ordered highest to lowest total

LUK only affects the chance to inflict a state, it has no effect anywhere else.
I imagine in that case, I must be fundamentally misunderstanding how a successful hit is calculated.
you might find that yep plugin helpfull :
Extra_Parameter_Formula_(YEP)

the Description on the page from this link says,:
HIT - Hit Rate%
- This determines the physical hit success rate of the any physical action.
All physical attacks make a check through the HIT rate to see if the attack
will connect. If the HIT value passes the randomizer check, the attack will
connect. If the HIT value fails to pass the randomizer check, the attack
will be considered a MISS.

what i am trying to say is ,make sure the skill is a physical action, because other skills might just be affected by "success rate"
Spoiler: success rate
Screenshot_1.png
You might also find this YEP plugin even more useful, as it allows you to completely customize the hit formula, including other stats, and what evasion does to the formula.

YEP_HitAccuracy
@Dopan @ramza

Thanks guys, this did the trick! It appears my issue was with the EVA and Hit Rate being calculated independently of one another. Now that the enemy's EVA is being measured up against the actor's hit rate, I'm getting the results I desire! Thanks so much!

EDIT: @Andar @bgillisp - sorry you guys, I only saw your posts upon checking back. Thanks, this helps a lot. It's pretty clear that it's impossible to get what I wanted without a plugin given how RMMV works things out. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/hit-rates-evasion-and-luk.129744/