I'm trying to find the best damage formulas for my game, but when I try the formula, the expected damage isn't equal to the real damage. I'll try to explain what I'm doing so maybe someone can help me a bit.
Â
The damage formula I'm trying is this one(yup, too many parenthesis xD):
First of all I need to calculate the lvl of the character/monster. This is as easy as adding all attacker's stats, substract 57 and divide by 3 (as the total initial stats are 60, when you substract 57 you get 3, which is also the total points you win each level, so dividing by 3 give you the current character/monster level [3/3 = 1, so you are lvl1, 6/3 = 2, so you are lvl2... etc]).
Â
Now that you have the character/monster level, you add the base damage of the hit. If your character is on level 6, and your base damage is 1, this is equals to 7. So the formula now is:
Next step is calculating scalingstat * scalefactor. I'm using attack as scaling stat. On my lvl6 character, the attack stat is equal to 33(puted a big amount of points just on attack). Also, scaling factor is equals to 100%. So... 33*1 = 33.
Question
Khaikaa
Hi everyone,
Â
I'm trying to find the best damage formulas for my game, but when I try the formula, the expected damage isn't equal to the real damage. I'll try to explain what I'm doing so maybe someone can help me a bit.
Â
The damage formula I'm trying is this one(yup, too many parenthesis xD):
<PhysicalDamage>Random(((((A_Attack+A_Defense+A_Speed+A_AbilityPwr+A_MagicResist)-57)/3)+BaseDamage)*((ScaleFactor*ScalingStat)/V_Defense)*.975, ((((A_Attack+A_Defense+A_Speed+A_AbilityPwr+A_MagicResist)-57)/3)+BaseDamage)*((ScaleFactor*ScalingStat)/V_Defense)*1.025)</PhysicalDamage>
Â
How does this work(or how this should work)?
First of all I need to calculate the lvl of the character/monster. This is as easy as adding all attacker's stats, substract 57 and divide by 3 (as the total initial stats are 60, when you substract 57 you get 3, which is also the total points you win each level, so dividing by 3 give you the current character/monster level [3/3 = 1, so you are lvl1, 6/3 = 2, so you are lvl2... etc]).
Â
Now that you have the character/monster level, you add the base damage of the hit. If your character is on level 6, and your base damage is 1, this is equals to 7. So the formula now is:
Â
<PhysicalDamage>Random(7*((ScaleFactor*ScalingStat)/V_Defense)*.975, (7*((ScaleFactor*ScalingStat)/V_Defense)*1.025)</PhysicalDamage>
Â
Next step is calculating scalingstat * scalefactor. I'm using attack as scaling stat. On my lvl6 character, the attack stat is equal to 33(puted a big amount of points just on attack). Also, scaling factor is equals to 100%. So... 33*1 = 33.
Â
The damge formula now is:
Â
<PhysicalDamage>Random(7*(33/V_Defense)*.975, (7*(33/V_Defense)*1.025)</PhysicalDamage>
Â
The monster I'm hitting is a crapy snake with just 5 def stat points. So:
Â
<PhysicalDamage>Random(7*(33/5)*.975, (7*(33/5)*1.025)</PhysicalDamage>
Â
Solving the operations:
Â
<PhysicalDamage>Random(45.045, 47.355)</PhysicalDamage>
Â
But, when I hit that damn snake... it takes 53 damage points. Am I calculating wrong? What is happening here?
I thought it may be because the server didn't update well, so tried restarting it, but nothing changed.
Â
Hope someone can help me with this.
Â
Good luck!
Â
Â
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now