Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Hit chance forumla - need ideas please
Zokrar Offline
Member

Posts: 85
Threads: 16
Joined: May 2013
Reputation: 0
#1
Information  Hit chance forumla - need ideas please

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.

(This post was last modified: 09-16-2013, 07:49 PM by Zokrar.)
09-16-2013, 06:57 PM
Find
Froge Offline
Posting Freak

Posts: 2,955
Threads: 176
Joined: Jul 2012
Reputation: 125
#2
RE: Hit chance forumla - need ideas please

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

[Image: p229xcq]
09-16-2013, 08:24 PM
Find




Users browsing this thread: 2 Guest(s)