| Zokrar   Member
 
 Posts: 85
 Threads: 16
 Joined: May 2013
 Reputation: 
0
 | 
			|  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 |  | 
	
		| Froge   Posting Freak
 
 Posts: 2,955
 Threads: 176
 Joined: Jul 2012
 Reputation: 
125
 | 
			| RE: Hit chance forumla - need ideas please 
 
				You're not at all factoring in the target's evasion stat.
			 
 |  | 
	| 09-16-2013, 08:24 PM |  |