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

Style Dice Output in Roll Template

When using rollGreater() or other functions to style a roll template, is it possible to style the dice output? My intended use case is to put a box around attack rolls that are critical threats in D&D 3.5E similar to the green, blue, and red boxes that occur automatically.
1436195315

Edited 1436195425
Alicia
Sheet Author
The only style of the inline rolls you can do are for Crit, failures and for the 'important' boxes when you have a crit and failure in the same roll. Just change ".sheet-rolltemplate-attack" to the name of the template you're using and modify the following CSS to change the style. The one below is for the default look (yellow boxes with the green, red and blue borders respectively). .sheet-rolltemplate-attack .inlinerollresult { display: inline-block; min-width: 1.5em; text-align: center; border: 2px solid rgba(167, 168, 170,1); /*Cool Gray 6 C*/} .sheet-rolltemplate-attack .inlinerollresult.fullcrit { border: 2px solid #3FB315;} .sheet-rolltemplate-attack .inlinerollresult.fullfail { border: 2px solid #B31515;} .sheet-rolltemplate-attack .inlinerollresult.importantroll { border: 2px solid #4A57ED;}
Thanks!