Colored chat text dice roll

Hello again,
I have a basic dice button that reports the result.

Is it possible to have it report the text dice roll result in blue, red or a different color than black?

Thanks!

You can use html in your dice report. Like this example:

** <b>$playerName$</b> rolls <span style=color:red;font-size:14pt><b>$numericalTotal$</b></span> ***

Make sure that HTML support is enabled (look at properties of the Global Options component).

1 Like

Is it possible to make the text on the dice bar ALSO blue/red?

ALSO THANKS, your html worked greatly.

Yes, you just need to prefix the dice button name with <html> - unlike Report trait text, dice buttons need to be told that you are using html.

I’m not very good with code, can you give me an example, please?

How’s this ?

This button text:
<html><font:color=red>Roll<br> red</font>

as here:

will give you a button looking like this (with your image):
image

It’s also possible to display the dice result as an image. Look into the Symbolic Dice Button if you are interested in that.

1 Like

A general description of how to use HTML in the Chat Log is found in
this page
of the Reference Manual.

2 Likes

That’s epic! Thanks

That’s super helpful, thanks!