VX ACE DAMAGE FORMULA ERROR

Posts

Pages: 1


Can anyone tell me what this error means? I am trying to make some pretty complex damage formulas for things in my project here... and I don't see anything wrong with the equation itself.

Is there a limit to how many things RMVXA can process in a damage formula? Also, why would it be "expecting" a ")" when the ones that already exist in the formula are closed?

EDIT: Ugh, I am a dummy for not seeing the problem right away. Nevermind. Fixed.
The tokenizer is getting screwed up when converting your code into executable code. My guess is .level, .atk, or .def isn't defined on a or b. Since it's null it returns an empty string so it is trying to evaluate (for example): ( * * 50) / 256 * 3 / 2 - (255 - 40 / 256) + 1
The formula was fine, it was the second "-" to the right, there. It's not actually a minus symbol. When I copied it over, it somehow was converted to a different character. You can see it's a little longer than the first one. Noticed it right after I made the initial post. All is well now.

For anyone wondering, that is almost the same formula used to calculate physical damage in Final Fantasy VI.

FF6 goes a little deeper with other stats and multipliers and bonuses and such.
Pages: 1