Damage Formula changes?

So, I was testing out this damage formula, which works in ACE, but seems to be returning "0" damage in MV. Are the old damage formulas no longer valid?

b.state?(13) ? r = a.atk * 3.25: r = a.atk * 2 ; r - b.def

Actor has 40 attack, and enemy has 15 defense, so it shouldn't be a problem there.
I think the problem might be that the scripting language is different. Haven't looked at the Javascript terminology, but I wouldn't be surprised if the stats need to be named differently in the formula.
That's what I was thinking as well...I guess I could bypass it using elements for now, but would still be nice to know what the Javascript equivalent to that call is! 🙂
You're gonna love this ...

b.isStateAffected(13) ? r = a.atk * 3.25: r = a.atk * 2 ; r - b.defYou can shorten that a whole lot too:

Code:
a.atk * (b.isStateAffected(13) ? 3.25 : 2) - b.def
b.isStateAffected is MUCH longer than b.state? 🙁
It looks like we get a much longer text box to play with though ... MUCH longer, in fact!
Will anyone be compiling a list of MV equivalents?  It would be a huge service if someone could.
There is one started. Archeia will post it when she's got it finished.


Closing this.

Original thread: https://forums.rpgmakerweb.com/threads/damage-formula-changes.46397/