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

display image on critical

So I am using the 5e sheet and you know how it highlights green for a crit, well I would like to display an image on crit just below the roll or even just some text that says CRITICAL! so people know that its a crit, especially if they are color blind
1644608805

Edited 1644609232
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
There are scripts that can do this, particularly Customizable Roll Listener, but they require a Pro account. Of the eight types of color blindness tested for in this simulator , only one seems problematical, and even then, it is at least discernable. Still, it might be better to have critical results underlined or some other indicator.  If you don't mind installing an extension such as stylus, you could use this style to change the display to something a little more obvious to all levels of color perception. This will highlight all max die rolls (which is the style the crit indicator uses): The style: .inlinerollresult.showtip.tipsy-n-right.fullcrit {     color: #fff !important;     background-color: #000 } Installation instructions are available in the top post of any of these threads: Show Off Your Style Show Off Your Style 2: The Stylening! Show off your Style 3: Third Time is the Charm!
1644610133

Edited 1644610342
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Actually, this is better and should do exactly what you want: .sheet-rolltemplate-npcfullatk .sheet-row .inlinerollresult.showtip.tipsy-n-right.fullcrit::after { color: #fff; background-color: #000; content: " CRIT "; }
thanks so that second example still requires the style for each player to load? or will other see that style on their pc?
answered my own question, yes each person loads the add on then I export the styles gonna try it thanks!
1644619511
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
You got it. Let me know if Stylus gives you any problem. I liked it enough to try adding it to my own game. :)
ok sorry to bug you but you have been so helpful.  So here are my steps first I imported your tiny turn tracker and it works, proving stylus is working in my browser Went into Stylus, added a new style, pasted that code, added the URL to work on app.roll20.net Then I went into game and rolled some crits a couple different ways First I used the sheet and just clicked on the attack you can see the crit highlighted but no text then I tried a macro &{template:default} {{name=Baldric swings}} {{Attack Roll=[[ 1d20 + 7]] }}  {{Normal Damage=[[ 1d10+5 + 1d8 if crit]] }} 
You’ll need to add the other damage roll templates, which npcatk, atkdmg, spellatk, etc.&nbsp; <a href="https://wiki.roll20.net/D%26D_5e_by_Roll20_Roll_Templates" rel="nofollow">https://wiki.roll20.net/D%26D_5e_by_Roll20_Roll_Templates</a>
There is a spellatk template?&nbsp; I've just been using atkdmg.&nbsp;&nbsp;
I was doing it from memory on mobile so probably not - I think they’re all listed in the wiki I linked above.&nbsp;
1644699815
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Oh what a rookie mistake. I only tested it on the npc attack template. Not in a place where I can easily work on this, but I should have an update if you don't figure one out first.
sorry, add them where? like add them to my game? sorry keith I fumbled around but could not find it
1644779699
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
You would add their names to the style declaration above. Sorry, but this weekend has gotten busy and it slipped my mind.