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

Can I remove the highlight from rolls in an emote macro?

1607286913

Edited 1607286941
I'm pretty new to the roll20 scene and extremely new to the roll20 macro scene so I'm still very much getting used to how everything works. I wrote a macro (my first actually) to roll HP recovered from healing potions and decided to spice it up a bit with some rollable table filler text ad-lib style. The macro works fine, but it looks kinda goofy with all the rolled words highlighted in yellow. Is there any way to have it display just the text rolled from the table without the yellow highlight denoting that it was a roll?
What is the macro you wrote?
/em [[1t[drinks]]] the [[1t[adjectives]]] [[1t[red]]] liquid from a [[1t[vessel]]] and regains ?{Take a potion of healing?|Potion of Healing, [[2d4+2]]|Potion of Greater Healing, [[4d4+4]]|Potion of Superior Healing, [[8d4+8]]|Potion of Supreme Healing, [[10d4+20]]} hit points. drinks, adjectives, red, and vessel are my rollable tables with the appropriate text.
I don't think there's any way to adjust your macro to force the style to change.  There's two options: 1. Create your own custom character sheet and modify the CSS to display rolls how you like (requires a Pro subscription) 2. Use Stylus to change the roll displays.  However, this will only affect your computer's display, so if you want your players to see the same thing they'll need to use the extension also.
Bummer. I'll probably just deal with it for the time being. Thanks for the help.
1607312036

Edited 1607312383
Oosh
Sheet Author
API Scripter
Which character sheet are you using? Some roll templates will restyle that for you.
I believe it's just the standard D&D 5e sheet.
An API script, Power Cards can do it, that would require a Pro subscription, and there is a serious learning curve with that script, stylus is the best way for the least effort.
1607400896

Edited 1607401311
Oosh
Sheet Author
API Scripter
You can give this a go - you'll lose the /emote styling, and need to select a token first (or you can hard-code your character name in): &{template:traits} {{description=@{selected|character_name} [[1t[drinks]]] the [[1t[adjectives]]] [[1t[red]]] liquid from a [[1t[vessel]]] and regains ?{Take a potion of healing?|Potion of Healing, [[2d4+2]]|Potion of Greater Healing, [[4d4+4]]|Potion of Superior Healing, [[8d4+8]]|Potion of Supreme Healing, [[10d4+20]]} hit points}} It will still have inline roll boxes for the dice, if you want to get rid of those, you can wrap them in null links: Potion of Healing, [[[2d4+2]]](#) The rolltable text is also bold... if you want the whole thing to match, surround all the text with **. So {{description=** <contents> **}}
Oosh, that works wonderfully. Thanks much!
1607737265
mrianmerry
Pro
Sheet Author
That's great stuff; is it a 5e only thing or would it work out-of-the-box for other sheets? (I know you can change the CSS of the inline elements, so I presume it is a thing done for the description block of 5e sheets)
1607752696

Edited 1607752801
Oosh
Sheet Author
API Scripter
I think it's just CSS specificity. The template specifies the background color for .template-templatename => .inlinerollresult As it's more specific than the straight-up .inlinerollresult class, the yellow background color is overridden. I think... I'm no expert on CSS. So it's not a 5e specific thing necessarily, but it does need to be written into the sheet (unless you only want to change your own browser's appearance, then Stylus will do).
1607769949
mrianmerry
Pro
Sheet Author
Oh man, styling inlinerollresult is such a pain . At least, the first time, I suppose. Although I think my issues were arising because of my dodgy ascendancy operators. I'm also not an expert in CSS...