The way it works is it rolls to see if you miss first (5% of the time in the default), then it rolls to see if the enemy evades (5%) of the time. This maths out to you should get a hit 95% * 95% = 90.25% of the time with default settings.
There are three possibilities here:
1) Check for other scripts. If you have Yanfly's Extra parameters it messes with your to hit and evade, and that could be your problem.
2) Make sure everyone really does have +95% to hit, and that you didn't set that to something different.
3) Personally, I've seen the RNG roll a lot of 69% in my game when doing this calculation (I set it up to print it out, and that number came up way more than it should statistically). Maybe the RNG is stuck?
These are the scripts that I currently have:
[IMG]http://puu.sh/gqfgG/a3e7ed964f.png[/IMG]
Most of them are Yanfly's , and the rest doesn't deal with battle. Maybe the battle engine? ... but that wouldn't make sense if the hit formula is being handled in the extra param.
I did check that, the actors don't have any parameters on them, only the classes. They all have 95% Hit, 5% Eva:
[IMG]http://puu.sh/gqfyt/ebb33dc8ed.png[/IMG]
Same for the monsters I'm testing against.
It's a bit of a stinker, IMO - the system by default checks if the attacker misses (the @result.missed part), then, IF the attacker hit, whether or not the defender dodges (the @result.evaded part), THEN if the attack neither missed or was evaded, calculates the hit result.
Personally, I rewrote the whole segment of script, from a bit higher up, to this:
Spoiler
#--------------------------------------------------------------------------# * Calculate Hit Rate of Skill/Item
#--------------------------------------------------------------------------
def item_hit(user, item)
rate = (item.success_rate + user.hit) if item.physical? # Physical attack
return rate # Return calculated hit rate
end
#--------------------------------------------------------------------------
# * Calculate Evasion Rate for Skill/Item
#--------------------------------------------------------------------------
def item_eva(user, item)
return eva if item.physical? # Return evasion if physical attack
return mev if item.magical? # Return magic evasion if magic attack
return 0
end
#--------------------------------------------------------------------------
# * Calculate Critical Rate of Skill/Item
#--------------------------------------------------------------------------
def item_cri(user, item)
item.damage.critical ? user.cri * (1 - cev) : 0
end
#--------------------------------------------------------------------------
# * Apply Normal Attack Effects
#--------------------------------------------------------------------------
def attack_apply(attacker)
item_apply(attacker, $data_skills[attacker.attack_skill_id])
end
#--------------------------------------------------------------------------
# * Apply Effect of Skill/Item
#--------------------------------------------------------------------------
def item_apply(user, item)
@result.clear
@result.used = item_test(user, item)
@result.missed = (@result.used && (1+rand(item_hit(user, item))) - (1+rand(item_eva(user, item))) <= 0)
if @result.hit?
unless item.damage.none?
@result.critical = (rand < item_cri(user, item))
make_damage_value(user, item)
execute_damage(user)
end
item.effects.each {|effect| item_effect_apply(user, item, effect) }
item_user_effect(user, item)
end
end
Spoiler
The first part calculates Hit Rate by adding the skill/item's hit probability with the attacker's HIT stat, the second part defines the defender's Evasion Rate as either Magical or Physical, depending on attack type. The two next parts are not relevant to the adjustments, but are in those locations in the Battler script. Then in the last part, it checks whether the attack was a miss by seeing if a random number up to the Hit Rate is smaller than a random number up to the Evasion Rate (the @result.missed = (@result.used && (1+rand(item_hit(user, item))) - (1+rand(item_eva(user, item))) <= 0) line), then if it's a hit, it moves on to damage.
Simplifying the mechanics to a single roll-off instead of two separate, disconnected skill rolls. Yes, this means I have to adjust the accuracy of skills/items and characters' HIT stat down to, well, significantly less and increase the EVA/MEV scores a bit to make it even plausible to miss (seeing as the default numbers would make the roll 195 vs. 5), but that part's *easy*... 🙂
It doesn't bother me the order of the calculations but, with the percentages as they are, they should not be missing that much. What I would like to understand is why the calculations on the vanilla code are not working as they should. I mean, with the values as they are I would understand it like:
1) I have 95% chance of hit, so it will eval a random number between 0 - 100 and if the result is between 0 and (100 - actor hit) (this case would be 0 - 5) then miss.
2) Lets say the random number was 45, which means it didn't miss. Now it should calculate eva pretty much like the way it did before. Rand between 0 - 100 and if the result is between 0 and Eva (again, 5) it will evade.
If not, then calculate if it actually does dmg, if crit and all that. Now, based on test results, it doesn't seem to work like that
🙁