Parameters as evasion and critical chance?

Hello, everyone!

Can you help me with this?

I want to make a parameter (let's say MDEF) to directly influence the chance of actors to evade an attack in a formula like this:

actor skill accuracy rate - enemy evasion rate. So, if the skill has 100% of landing, and the enemy has 20% eva rate, then the chances of landing the skill will be 80%.

I also need to make another parameter (let's say MATK) to influence the chance of actors to make a critical strike. So if the actor has 20 MATK, there'll be 20% chance to land a critical strike.

Thanks for your time, and I'm sorry if this is a silly question, but I'm new to RM.
Hey you're definitely need to check Yanfly plugins. The one you ask can be done with ExtraParameter plugin
Thanks, I've downloaded YEP - Extra Parameter Formula and YEP - Hit Accuracy. I configured how I want evasion and accuracy to work, but I can't make my characters land a single hit.

In the extra parameters plugin I put this:

EVA Formula: user.def

and in the hit accuracy plugin this:

Accuracy Formula: skillHitRate - targetEvadeRate


So I guessed that according to that configuration I would have something like this:

Firebolt (100% chance of landing, user.matk as raw dmg) vs targeted enemy (50 DEF, so 50% evasion) would result in 50% chance of landing the attack. Because 100-50=50. But I tested it many times and no hit could be landed.
in your case it's magic attack so you need to modife MEV too (Magic Evade)
And EVA formula should include: base
base + user.def
base * user.def/100
Thanks for the reply!!!

Oh, now I see what I was doing wrong. I'll try what you told me. But, can you tell me what the value of "base" is in the formula? If it has one...

Original thread: https://forums.rpgmakerweb.com/threads/parameters-as-evasion-and-critical-chance.88157/