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 .
×

Rolls show the correct Formula but wrong output

1776377814
Finderski
Pro
Sheet Author
Compendium Curator
When I make a roll from the character sheet, The formula displayed in the hover over is correct, but the final result is wrong. For example, in the roll above, the final result should have been -2 (12 - 4 +0 - 10). Any idea why this is happening?  
1776381146
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
you have a curly brace that got into the roll somehow. The roll parser doesn't know how to handle a curly brace, and so just ignores everything from that point on
1776381674
Finderski
Pro
Sheet Author
Compendium Curator
Eagle Eye Scott for the win! Thanks for your help, that was driving me nuts. Is there a way to get translation notation to work within roll comments?
1776382049
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
unfortunately, translations don't work in the roll tool tips. You could use getTranslationByKey to get the translation value for the person sending the roll and insert that into the roll (if you're sending the roll via startRoll). But, of course that will only really be better if everyone (or at least most) in the game speak the same language.