Jump to content
  • 1

Damage Formulas Manipulation


SkySpeedXIV

Question

Hi all!

 

I tried many things with the damage formulas.

I want to have a pretty simple formula, like this one : 

 

"PhysicalDamage": "(BaseDamage-V_Defense)+1",

 

Pretty basic uh? 

The problem here is that i want the damage to always be equal or greater to one. But i didn't manage to do so.

If the V_Defense is greater than the BaseDamage, then the damage will go on negative numbers. So the +1 here is meaningless

Is there a way i can use conditions or something to have at least 1 damage?

 

Thank you so much!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
1 hour ago, SkySpeedXIV said:

Hi all!

 

I tried many things with the damage formulas.

I want to have a pretty simple formula, like this one : 

 

"PhysicalDamage": "(BaseDamage-V_Defense)+1",

 

Pretty basic uh? 

The problem here is that i want the damage to always be equal or greater to one. But i didn't manage to do so.

If the V_Defense is greater than the BaseDamage, then the damage will go on negative numbers. So the +1 here is meaningless

Is there a way i can use conditions or something to have at least 1 damage?

 

Thank you so much!

I believe you need to use a 'percentage' so that the value is never negative.

"PhysicalDamage": "Random(((BaseDamage + (A_Attack / 6))) * CritMultiplier * 1 - (V_Defense / 12), ((BaseDamage + (A_Attack / 4))) * CritMultiplier * 1.125) - (V_Defense / 10)"

 

This is what I use, and I do not get negative values.


I'm sure someone can chime in with a better formula.

Link to comment
Share on other sites

  • 0

Thanks for sharing your formula! 

I worked on mine a little today and I ended up with this : 

 

  "MagicDamage": "(((A_AbilityPwr/(V_MagicResist/3))+1)*CritMultiplier)",
  "PhysicalDamage": "(((A_Attack/(V_Defense/3))+1)*CritMultiplier)",
  "TrueDamage": "(BaseDamage*CritMultiplier)"

 

I think it's fine for me. The division was a great idea! I made a lot of tests and i'm pretty confident with my results. :) 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...