• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Math Formula

Status
Not open for further replies.
Level 19
Joined
Oct 12, 2007
Messages
1,821
Hey there.

I'm making a formula to calculate crit chance in my ORPG but am not good enough at math to make a good formula for it and was wondering if someone could make a good formula for me.

Info:
Class levels are from 1 to 40 so it has to be for 40 levels.

Vitality increases the crit chance by 133/150 (0.8866666) per level and Agility increases the crit chance by 133/300 (0.443333333) per level.

I could make a simple formula like this:
Critchance in % = (0.8866666Vitality + 0.44333333Agility) / Level

The problem with this formula is when a unit has 10% crit at level 1 and he levels up it immediatelly goes to 5% crit chance and that's a too big chance! But eventually when he's at level 40, 40 Vitality + 40 Agility should give him 1.33% critchance like it would do in that simple formula I made.

So I was wondering if someone would like to make a formula out of this that decreases the critchance pretty slow in the beginning, fast in the middle and slow in the end again so a formula would look like this:

4554020618e324ff21779e7c66ef67607aa2f71.jpg


Is this possible?;p
 
Level 19
Joined
Oct 12, 2007
Messages
1,821
I'm sorry guys, thanks for help but after alot of brainstorming RaiN and me came up with something.
 
Status
Not open for further replies.
Top