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

SyntaxError, what does it mean?

I get this syntax error when I do an attack roll from the weapons tab in my character sheet.

SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|\-] or [0-9] but end of input found.

How do I fix it?
Same thing is happening to me! And with character sheets that I have used in the past and have not altered.
May 03 (10 years ago)
The Aaron
Roll20 Production Team
API Scripter
Is this the DnD 5e character sheet? I had this issue just the other night. You need to fill in the critical for your weapons. The old dice engine treated [[ ]] as nothing, the new one treats it as an error. Filling in the critical (usually with the same thing as the damage column) fixes the issue.
Thanks Aaron! Just gotta go through and fill in all those boxes. Sigh.
May 04 (10 years ago)
The Aaron
Pro
API Scripter
If the campaign creator was a mentor, I could write you a script for that.
May 04 (10 years ago)
Kryx
Pro
Sheet Author
API Scripter
The critical doesn't work unless those boxes are filled in, so this new way of inline rolls working is actually forcing you to input the values correctly. You should be thankful!

That being said users never filling in that input is why I'm removing it and making it work in another way for thew new weapons on the 5e shaped sheet.