Jump to content
  • 0

Why my damage formula doesn't work ?


Talikan

Question

Hello,

 

{
  "ExpFormula": {
    "Source": "BaseExp * Power(Gain, Level)"
  },
  "PhysicalDamage": "Random(BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 1) / V_Defense, (BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 2) / V_Defense",
  "MagicDamage": "Random(BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 1 / V_MagicResist, (BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 2) / V_MagicResist",
  "TrueDamage": "Random(BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 1), (BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 2)"
}

 

I test this but ... error at line 1:79.

I don't understand why ...

 

Thank you,

 

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

{
  "ExpFormula": {
    "Source": "BaseExp * Power(Gain, Level)"
  },
  "PhysicalDamage": "Random((BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 1) / V_Defense, (BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 2) / V_Defense"),
  "MagicDamage": "Random((BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 1 / V_MagicResist, (BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 2) / V_MagicResist"),
  "TrueDamage": "Random((BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 1), (BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 2))"
}

 

Try that ^

Link to comment
Share on other sites

  • 0

Ah wait:

 

{
  "ExpFormula": {
    "Source": "BaseExp * Power(Gain, Level)"
  },
  "PhysicalDamage": "Random(((BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 1) / V_Defense), ((BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 2) / V_Defense")),
  "MagicDamage": "Random(((BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 1) / V_MagicResist), (BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 2) / V_MagicResist")),
  "TrueDamage": "Random((BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 1), (BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 2))"
}

Link to comment
Share on other sites

  • 0

One more: 

 

{
  "ExpFormula": {
    "Source": "BaseExp * Power(Gain, Level)"
  },
  "PhysicalDamage": "Random(((BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 1) / V_Defense), ((BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 2) / V_Defense")),
  "MagicDamage": "Random(((BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 1) / V_MagicResist), ((BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 2) / V_MagicResist")),
  "TrueDamage": "Random((BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 1), (BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 2))"
}

Link to comment
Share on other sites

  • 0

hi Talikan

not correct
{
  "ExpFormula": {
    "Source": "BaseExp * Power(Gain, Level)"
  },
  "PhysicalDamage": "Random(((BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 1) / V_Defense), ((BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 2) / V_Defense")),
  "MagicDamage": "Random(((BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 1) / V_MagicResist), ((BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 2) / V_MagicResist")),
  "TrueDamage": "Random((BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 1), (BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 2))"
} 

 

 

correct
{
  "ExpFormula": {
    "Source": "BaseExp * Power(Gain, Level)"
  },
  "PhysicalDamage": "Random(((BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 1) / V_Defense), ((BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 2) / V_Defense))",
  "MagicDamage": "Random(((BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 1) / V_MagicResist), ((BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 2) / V_MagicResist))",
  "TrueDamage": "Random((BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 1), (BaseDamage * ScalingStat * ScaleFactor * CritMultiplier * 2))"
}

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...