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

Change the Color of Crit Success and fails?

1519947885

Edited 1519947921
Hi, I'm really new to all this Scripting and can't find anywhere online how I would be able to change the color of the Crits in my game. I am colorblind and have a lot of trouble seeing the Red failures. I found a script that put the words Critical and fumble on the rolls, however it didnt work with modifiers attached. Any help would be appreciated! Thank you, Josh
1519949584
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I'm sure that you could effect such a change using the Stylish Plugin for your browser. It would change only for you, but that's probably the only person you would want it to change for. Let us know if you are unfamiliar with the plugin or how it works. I'm sure either I or a true CSS guru can give you a hand.
1519951996
vÍnce
Pro
Sheet Author
As Keith mentioned, stylish is awesome.&nbsp; You could try importing this into&nbsp; Stylish ; @-moz-document url("<a href="https://app.roll20.net/editor/" rel="nofollow">https://app.roll20.net/editor/</a>") { .textchatcontainer .inlinerollresult.fullcrit { &nbsp; &nbsp; border: 2px dashed #3FB315 !important; } .textchatcontainer .inlinerollresult.fullcrit::after { &nbsp; &nbsp; content: 'ᶜˢ'!important; } .textchatcontainer .inlinerollresult.fullfail { &nbsp; &nbsp; border: 2px dotted #B31515!important; } .textchatcontainer .inlinerollresult.fullfail::after { &nbsp; &nbsp; content: 'ᶜᶠ'!important; } } Just adjust colors and/or border style, and the content text (I used superscript&nbsp; unicode characters in this example)
1519952201
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
And like magic, Guru Vince appears! I've never seen the content tag in use before. That's very intriguing...
1519952926
vÍnce
Pro
Sheet Author
keithcurtis said: And like magic, Guru Vince appears! I've never seen the content tag in use before. That's very intriguing... I have no idea if that's an "acceptable" usage of&nbsp; content ... Definition and Usage The content property is used with the :before and :after pseudo-elements, to insert generated content. Seems ok to me.&nbsp; ;-P
Thank you guys for the response! This Plugin seems really awesome and exactly what I need; however, I can't seem to figure out how to make the custom scripts work with Roll 20. I can't really find a useful tutorial either. I'm still really new to all this. I'm sorry for any trouble.&nbsp; Thank you again. Josh
1519975050

Edited 1519975952
vÍnce
Pro
Sheet Author
You need to install the browser extension Stylish.&nbsp; Stylish temporarily overrides a web page's style(colors, fonts, backgrounds, layout, etc.)&nbsp; You can download community created styles for popular websites and/or create your own.&nbsp; &nbsp; From the Stylish extension icon choose "Create New Style" Use the Import option.&nbsp; copy/paste my code snippet from above and choose "Overwrite Style", Name it, enable it, and save. Now whenever you are viewing roll20's vtt, stylish will override the default style for critical success and critical fail inline rolls.&nbsp; &nbsp;Here's a little more info on how to use stylish:&nbsp; <a href="https://userstyles.org/help" rel="nofollow">https://userstyles.org/help</a>
Oh Wow!&nbsp; That's awesome. Thank you so much, works flawlessly. I appreciate all the help. It means a lot.