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

Hiding the math on die rolls

So, I just bought a pro subscription and threw together a quick character sheet for my new game.  I'm mostly happy with it, but... There are a couple of spots where the math looks ugly in the dice roller.  I want to hide those calculations. Right now I've got the dice roller showing things like "Rolling 2d6+1+0+0+1" and "Rolling 2d6+floor(0.75*3)" I'd really like those to read "Rolling 2d6+2" instead.  Is there a way of keeping the arithmetic behind the curtain?
1533638631
Ziechael
Forum Champion
Sheet Author
API Scripter
You can turn any ugly math into a single inline result by wrapping the code in [[ ]]
1533700565
GiGs
Pro
Sheet Author
API Scripter
You could create a rolltemplate, and have the roll repeated, once for display purposes, and once for the actual roll. Your roll button's value would look something like value="&{template:myrolltemplate} {{title=Whatever title you want to print out}} {{rollForDisplay=2d6+2}} {{rollForcalculation=[[2d6+2]]}}" and then in the rolltemplate, you format the {{title}} {{rollForDisplay}} and {{rollForCalculation}} variables, so that they appear in chat the way you want them.