Frictional Games Forum (read-only)
Hit chance forumla - need ideas please - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Frictional Games (https://www.frictionalgames.com/forum/forum-3.html)
+--- Forum: Off-Topic (https://www.frictionalgames.com/forum/forum-16.html)
+--- Thread: Hit chance forumla - need ideas please (/thread-23216.html)



Hit chance forumla - need ideas please - Zokrar - 09-16-2013

Current formula: e^(attack level/100 - 1) * 50 + random(1, 50)
it seems to be working well so far.


I'm working on a game at the moment, and am really struggling to find a formula that works well for hit chance (not damage, yet, but just whether or not they hit or miss). Any ideas would be greatly appreciated!

The formula must take into account the player's attack level. (a minimum of 1, a maximum of 100)

The way I'm currently checking to see if the player hit is by checking what number the formula gives me, and if that number is greater than 50, the player hit. Else, the player missed. I've had a few ideas, but they all end up being incredibly over/underpowered when the attack level changes.

Would love some help if anyone is willing!

This game is written in Python, by the way.


RE: Hit chance forumla - need ideas please - Froge - 09-16-2013

You're not at all factoring in the target's evasion stat.