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

Syntax Error on crits

August 03 (4 years ago)

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



One of my players is using a scythe, however whenever they crit and click to do damage the above error appears in chat.
Can someone help me sort this please?

August 03 (4 years ago)
timmaugh
Forum Champion
API Scripter

That typically comes from a malformed roll syntax. For a human-initiated roll, that would mean actual broken syntax. For a roll generated from an API (or an API calling a command line that includes an inline roll), there are other limitations -- where the roll would typically work for a human, but does not work when coming from the API. Things like no leading white space (inside the opening double brackets. Can you post the command line that threw this error?

August 03 (4 years ago)

Rolling 1d20cs>20 + 3[STR] + 1[MOD] + 2[PROF] = (20)+3+1+2

is the code on the roll for their 26 crit. but when I click the name of the weapon to do damage I get the syntax error in my original post.

August 03 (4 years ago)

Are you using the D&D 5E by Roll20 sheet or a different one?

What is in the crit fields for the scythe attack?


August 03 (4 years ago)

So originally I had that box filled with x4 as its listed on the sheet. after seeing your example I swapped that to include dice (never occurred before) and now the crits work. Thank you.

August 03 (4 years ago)

Bydnelg said:

So originally I had that box filled with x4 as its listed on the sheet. after seeing your example I swapped that to include dice (never occurred before) and now the crits work. Thank you.

Ah yeah it sounds like you're looking at 3.5E stats for a scythe - there's no SRD scythe in 5E.  I'm assuming the 3.5 sheet has the ability to use a multiplier for crits, but the 5E sheet just adds an additional roll for crits.

August 03 (4 years ago)

Yeah. Though at least I can make a solution close to that outcome to make things easier.
Thanks again.