I'm using Yanfly's YEP_HITACCURACY plugin and I'm trying to write a formula that would just calculate the chance a target would have to evade an attack. I've tried multiple formulas and either the enemy and actor always miss/hit or only one of the two actor or enemy hits and the other misses. In the picture attached is the default formula, I went under the other tabs and made them blank, because I'm only looking to calculate the evasion formula. For all the skills in my game, I just wanted to set them to 100%, so I didn't want to involve that in the formula. The formulas I tried were:
((abs(userHitRate) - abs(targetEvadeRate))
abs(userHitRate - targetEvadeRate) /100 * 100
abs(userHitRate - targetEvadeRate)
(userHitRate - targetEvadeRate)
I set the ex-parameter for the actor to have a hit rate +0% and evasion rate +50% so the hit rate and evasion would be 100 and 50 respectively. I set the enemy to have a hit rate of -20% and evasion of -50% so it would have a hit rate of 80 and evasion of 50. My understanding with the formulas above and the ex-parameters set for the actor and the enemy is that when the actor attacks, the enemy should have a 50% chance to evade. When the enemy attacks, the actor should have a 70% chance to evade. That is how I'm trying to write the formula to calculate the evasion formula in my game, but there's something I'm not doing correctly and I can't figure it out. Any suggestions would be very helpful, I don't have much experience with this stuff. I also tested a brand new project to make sure no other plugins were conflicting and I think the plugin is in the correct order. Thanks in advance.
((abs(userHitRate) - abs(targetEvadeRate))
abs(userHitRate - targetEvadeRate) /100 * 100
abs(userHitRate - targetEvadeRate)
(userHitRate - targetEvadeRate)
I set the ex-parameter for the actor to have a hit rate +0% and evasion rate +50% so the hit rate and evasion would be 100 and 50 respectively. I set the enemy to have a hit rate of -20% and evasion of -50% so it would have a hit rate of 80 and evasion of 50. My understanding with the formulas above and the ex-parameters set for the actor and the enemy is that when the actor attacks, the enemy should have a 50% chance to evade. When the enemy attacks, the actor should have a 70% chance to evade. That is how I'm trying to write the formula to calculate the evasion formula in my game, but there's something I'm not doing correctly and I can't figure it out. Any suggestions would be very helpful, I don't have much experience with this stuff. I also tested a brand new project to make sure no other plugins were conflicting and I think the plugin is in the correct order. Thanks in advance.