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 .
×
May your rolls be merry + bright! 🎄
Create a free account
This post has been closed. You can still view previous posts, but you can't post any new replies.

Problem with the Shadowrun 5E

1571950055

Edited 1571950200
Title Edit: I accidentally a word or two. Hi there. I'm trying to get started on Shadowrun, and I picked 5E to start with because I'm a sensationalist sheep who gravitates towards newer and shinier things. I'm in the process of finalizing a character when I realize that most, if not all of the buttons on the sheet do not seem to be working. When I click a roll, I get the following message: SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|\-], [+|\-|*|\/|%] or [0-9] but ")" found. Here's one of the sheet button macros that triggers the error: @{Sammy Grove|gm_toggle} &{template:rolls}{{header=@{Sammy Grove|primary_range_weapon}}}{{base=^{base}}}{{dice=[[((@{Sammy Grove|primary_range_weapon_skill}+@{Sammy Grove|primary_range_weapon_dicepool}+@{Sammy Grove|agility})+@{Sammy Grove|wound_toggle}+@{Sammy Grove|modifier_toggle}+@{Sammy Grove|edge_toggle})d6>5@{Sammy Grove|explode_toggle}]]}}{{desc=@{Sammy Grove|primary_range_weapon_mode}, ACC @{Sammy Grove|primary_range_weapon_acc}, DV @{Sammy Grove|primary_range_weapon_damage}, AP @{Sammy Grove|primary_range_weapon_ap}}}{{mod=[[@{Sammy Grove|modifier_toggle}]]}}{{wound=[[@{Sammy Grove|wound_toggle}]]}}{{edge=[[@{Sammy Grove|edge_toggle}]]}} Finally, the attributes buttons do not work at all for me. I click the buttons and a popup for attributes appears. For this example, I click Body. The macro for this action is: @{Sammy Grove|gm_toggle} &{template:rolls}{{header=^{body}}}{{base=^{attributes}}}{{dice=[[(@{Sammy Grove|body}+(@{Sammy Grove|attribute_roll})+@{Sammy Grove|wound_toggle}+@{Sammy Grove|modifier_toggle}+@{Sammy Grove|edge_toggle})d6>5@{Sammy Grove|explode_toggle}]]}}{{mod=[[@{Sammy Grove|modifier_toggle}]]}}{{wound=[[@{Sammy Grove|wound_toggle}]]}}{{edge=[[@{Sammy Grove|edge_toggle}]]}} Nothing is returned in chat when I attempt this action. I'm guessing it's probably a bug in the attributes somewhere but working with code isn't really my strong suit. Any help would be greatly appreciated. EDIT : This is the Shadowrun 5th Edition character sheet.
1571950824

Edited 1571950837
Caden
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Try toggling the modifiers, wounds, edge, and GM whisper buttons off then back on. This workaround should get the button functioning again. I've got a bug ticket related to this and I have a big refactor coming hopefully next week that will fix this issue among other things. 
1571951048
Andreas J.
Forum Champion
Sheet Author
Translator
It's likely the roll fails thanks to not having filled out all relevant stats. At times, depending on the backend design, you can't leave fileds ungilled or it results in an error with the dice math. For example, if a button rolls `d20+@{wisdom}+5`, and you you have no number filled in for wisodm stat, the roll will attempt `d20++5` and malfunction as an result. I see a few places that have grayed out zeros, try add an actual zero to those fields that might be relevant to the rolls you tested and see if it helps.
Cassie, that worked. Thanks so much!
Mark for closure please.
1572062552
Caden
Forum Champion
Sheet Author
API Scripter
Compendium Curator
You're welcome. Keep me posted if you have any other problems. This is a sheet I made in my personal time and I'm happy to help out a fellow Shadowrun player. - Cassie