EDIT: SOLVED, "ceiling" is difficult to spell. 😔
Hello Makers,
I wanted assistance with a damage formula I'm testing. The main issue is that the damage output is always 0, no matter what. So I think this just comes down to bad syntax in my part. So I need assistance with that:
Formula:
Context:
I want DEFENSE in my game to scale but not linearly. That is the purpose of the formula above. It is an exponentially decaying formula.
A.ATK * 2 = The Skill's RAW Power.
3**(-B.DEF/10) = a Multiplier to reduce the amount of damage dealt.
The problem is that no matter what value I put on my attack, the result is always 0.
Image of spreadsheet testing the formula:
Image of in-game formula & Skill:
Hello Makers,
I wanted assistance with a damage formula I'm testing. The main issue is that the damage output is always 0, no matter what. So I think this just comes down to bad syntax in my part. So I need assistance with that:
Formula:
Code:
Math.ciel( a.atk * 2 * ( 3 ** ( -b.def / 10 ) ) )
Context:
I want DEFENSE in my game to scale but not linearly. That is the purpose of the formula above. It is an exponentially decaying formula.
A.ATK * 2 = The Skill's RAW Power.
3**(-B.DEF/10) = a Multiplier to reduce the amount of damage dealt.
The problem is that no matter what value I put on my attack, the result is always 0.
Image of spreadsheet testing the formula:
Image of in-game formula & Skill: