[RMVXAce] Changing Hit Rate Formula?

Started by Untitled, January 20, 2013, 02:45:36 am

Previous topic - Next topic

Untitled

January 20, 2013, 02:45:36 am Last Edit: January 21, 2013, 12:21:28 pm by Untitled
Gee, I forgot I had an account here xP

Anyway...

This is hopefully a simple fix, but I'm trying to make actors' hit rates somewhat dependent on their level (so that when re-visiting old areas with inaccurate weapons, you won't have a hard time hitting super weak bats and bees). What I have in Game_Battler under the *Calculate Hit Rate of Skill/Item is
def item_hit(user,item)
 rate=item.success_rate * 0.01
 rate*= user.hit if item.physical?
 rate+=user.level if user.actor? #THIS IS THE ADDED LINE
 return rate
end

Testing a high-level character against a high-avoid enemy, however, that extra line seems to do nothing. Help?

(Also, this question is for RPG Maker VX ACE!)

And if it matters, I'm using Yanfly's battle system.

Thanks!