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

Add color to (damage) output (5e OGL)

The macro: &{template:atkdmg} {{mod=mod}} {{rname=rname}} {{r1=r1}} {{always=1}} {{r2=r2}} {{attack=1}} {{range=range}} {{damage=1}} {{dmg1flag=1}} {{dmg1=dmg1}} {{dmg1type=dmg1type}} {{dmg2flag=1}} {{dmg2=[[1d8]]}} {{dmg2type=dmg2type}} {{crit1=crit1}} {{crit2=crit2}} {{charname=charname}} I want to add color to the {{dmg2=[[1d8]]}} without loosing the ability to hover over the number and see what has been rolled. When I put  [ [[1d8]] ](#" style="color:blue;) around the inline roll it makes a roll, but the output of the number is different AND one cannot hover over the number to see what it rolled. Anyway to fix this?
1608334762
Oosh
Sheet Author
API Scripter
In general - no, you lose all of that information when you turn the roll into a link. But you can achieve blue with [[1d8cs>0cf>0]] if that helps at all?
Nice Oosh, it works in the template under the "r1 and r2 output" but unfortunately not the dmg-output. I am creating a "Chaos Bolt" spell macro . Do you know by chance whether it is possible (without API) to roll 2d8, and if both dice rolls the same number it will show as a critical or failure (just so it stands out in the color). I have tried looking into "dice reference" but unsuccessful. The solution I've come up with is this:
1608371386
Oosh
Sheet Author
API Scripter
You're right, I'd never noticed the crit coloring is disabled in the dmg template - you might need to switch to another one if you want any coloring to happen (unless you're using Sylus, you can switch it back on). This should work, though: [[1d8cf0cs[[1d8cs0cf0]]]] + $[[0]] The coloring is disabled on the second die. If the first one is green, it means they match.