A good example is:Dex would increase hit percentage, which is calculated: If Player level is greater then enemy level give a 10% bonus, if enemy level is greater then player subtract a 10% penalty. If Dex is higher then Enemy Agility give 10% bonus
Dex > Enemy Agi = +10%
P Lv > Enemy lv = +10%
Base Hit is enemy hit chance.
Enemy hit chance can be configured.
If Enemy Hit Chance == 45%and you have a 10% that means you have a 55% chance to hit. which means you have a 55% chance to miss. Random number between 0 and 100 with added penalty or bonus compared to hit chance means that if your hit is higher then 55 you hit else you miss.