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

[5e OGL] Syntax error when doing skill checks from the 5e OOGL Character Sheet

Only one of my player character's gets this error when trying to roll for a skill check like perception:
SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|\-] or [0-9] but end of input found.

Everything else like attack rolls, saving throws and initiative works. Tools don't work either.

It just started acting up suddenly in the middle of a test session.
November 04 (7 years ago)

Edited November 04 (7 years ago)
To begin troubleshooting, what does the Text Chat return when you selected your player's Token and then copy/paste/enter @{selected|d20}+@{selected|perception_bonus}@{selected|pbd_safe}?
November 04 (7 years ago)
Pat
Pro
API Scripter
We've seen similar errors and defects a lot lately - specifically, if there isn't an initialization value of zero, it is being set as "undefined" - so it fouls so many calculations until you put in a number for global saves, global AC bonus, global damage bonus, and toggle on and off a number of settings just to get zeroes in where there are undefined values. This happened for  us with weapon attacks, spell attacks, and passive perception. 

Silvyre said:

To begin troubleshooting, what does the Text Chat return when you selected your player's Token and then copy/paste/enter @{selected|d20}+@{selected|perception_bonus}@{selected|pbd_safe}?


It shows 1d20+3 which is the correct modifier for perception for that character.

Pat said:

We've seen similar errors and defects a lot lately - specifically, if there isn't an initialization value of zero, it is being set as "undefined" - so it fouls so many calculations until you put in a number for global saves, global AC bonus, global damage bonus, and toggle on and off a number of settings just to get zeroes in where there are undefined values. This happened for  us with weapon attacks, spell attacks, and passive perception. 

Thanks, I've tried fiddling with every setting but it doesn't seem to help. I can't see what's different between this character sheet and all the other sheets in my game.
November 05 (7 years ago)
That's pretty odd, Brendan B. My guess is (was) that an Attribute used within a roll may have somehow been either set to an empty value, or a duplicate Attribute was added to the sheet.

I would next try and see if @{selected|global_skill_mod} throws a syntax error.

Silvyre said:

That's pretty odd, Brendan B. My guess is (was) that an Attribute used within a roll may have somehow been either set to an empty value, or a duplicate Attribute was added to the sheet.

I would next try and see if @{selected|global_skill_mod} throws a syntax error.
SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|\-] or [0-9] but end of input found.
That was the result when I clicked on the token and then pasted your suggestion into chat.

November 05 (7 years ago)
Okay. Add a 0 to the Global Skill Modifier field, and your issues should be resolved. I'll make a post in the sheet's main thread about this issue.
Thanks a lot!
November 06 (7 years ago)
You're very welcome!