MIINKEE'S PROFILE

Search

[RPGM VXACE] Using AGI in hit formula

Hello all. I'm currently looking for a way to change how the hit formula works. I want to make it a very simple formula:

(Class Hit % + AGI) - Enemy AGI = Hit Chance

Example - Class has a 90% chance to hit and has 20 AGI. That would give them a 110% chance to hit. Now subtract the enemy AGI which is 22. Now they would have a 88% chance to hit.

I don't want to have any evasion or any other formula to hit or miss. Only that.

I have the Accuracy Overflow script added but I'm not sure exactly how to change the formula. I'm using I would change this to something:

rate = item_hit(user, item) - item_eva(user, item)
@result.missed = (@result.used && rand >= rate)
if @result.missed and rate < item_eva(user, item) and CRZ::ACC_OVER::USE_EV
@result.missed = false; @result.evaded = true
end

but I'm not sure how to change it to use the characters AGI in a way I'm looking for. What is the correct syntax I would use to add in a characters current AGI as well as the enemies?
Pages: 1