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

Dice macro, highlighting

1588489442
Abd al Rahman
KS Backer
Sheet Author
API Scripter
Dear all, for the RPG I am playing, I use Macros for the skill checks. Dice rolls are made like this: [[1D20 + @{Riding}]] in my macros. They work fine. I get the result, I get the color highlightings for critical failure and critical success. However, I need a third highlighting. I need to highlight, whenever the dice roll (not the result of the check, just the dice roll) is 16 or above.  Is there any way to archive this?
1588493698
Ziechael
Forum Champion
Sheet Author
API Scripter
You can utilise the cs/cf highlighting to force use of the three available colours (red for fail, green for success and blue for both): [[1D20cs16cs17cs18cs19cs20cf1cf16cf17cf18cf19 + 10]] It looks a bit clunky but the above will highlight red on a 1, green on a 20 and blue on a 16-19.
1588500719
Abd al Rahman
KS Backer
Sheet Author
API Scripter
Ziechael said: You can utilise the cs/cf highlighting to force use of the three available colours (red for fail, green for success and blue for both): [[1D20cs16cs17cs18cs19cs20cf1cf16cf17cf18cf19 + 10]] It looks a bit clunky but the above will highlight red on a 1, green on a 20 and blue on a 16-19. Cool! Thank you a lot!
1588505120
Abd al Rahman
KS Backer
Sheet Author
API Scripter
Ziechael said: You can utilise the cs/cf highlighting to force use of the three available colours (red for fail, green for success and blue for both): [[1D20cs16cs17cs18cs19cs20cf1cf16cf17cf18cf19 + 10]] It looks a bit clunky but the above will highlight red on a 1, green on a 20 and blue on a 16-19. Oh, and I solved the clunkyness. I was putting an Attribute on the character sheet: 1D20 ->  1D20cs16cs17cs18cs19cs20cf1cf16cf17cf18cf19 this way I can simply use [[@{1d20} + 10 ]] in my macros. 
1588509630
Ziechael
Forum Champion
Sheet Author
API Scripter
Ahh nicely done, great way of being able to have variable highlight ranges per character and still use universal macros!!