• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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