thanks, i should have thought of that because i used a similar function to get an enemy's evasion rate.