Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Macro throwing error

January 10 (12 years ago)
I have the following macro that I created:

/roll 1d20+BAB+STR_BONUS

When I try to run it the die roll part works, but here's what I get back

The result of your formula appears to be undefined. Please check your formula and try again. SyntaxError: invalid increment operand

Any ideas?
January 10 (12 years ago)
Figured out what the problem was. Apparently, the macro parser can't handle an empty value, so either you have to put a value in all fields in the formula or it errors out. I'd like to request that there be some sort of function that will convert nulls to a different value, or it treats empty fields as zeros.