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

Macro's Highlighting Specific Numbers.

1406307761

Edited 1406315739
Samuel L.
Sheet Author
Me and my mates have been playing Dark Heresy 2nd and I was wondering how I could highlight within a [[1d100]] type macro weather I got a double number (99, 66, 100). On those bad things happen when using psyker powers. This could be any sort of highlight such as a colour box or statement within a /me. *Edit Ah I figured it would be one of the two, is there a way to link a roll table into a /roll so the number comes up and can be calculated?
You would need to create a Rollable Table and add your own custom 'die face' images for each 'side' of the 1d100. By using colored images for the doubles, you would be effectively 'highlighting' those values. The Macro system itself only knows to highlight Min and Max of a die roll. Alternatively if you upgrade your account to Mentor status, you may be able to accomplish this with an API script.
1406311409
The Aaron
Roll20 Production Team
API Scripter
That's clever use of the Rollable Table, Mark! The API is definitely capable of doing all sorts of things when doubled digits come up.
Ah I figured it would be one of the two, is there a way to link a roll table into a /roll so the number comes up and can be calculated?
1406316047
Lithl
Pro
Sheet Author
API Scripter
It should work fine so long as the item name starts with the number you want. If the item also has an image, it'll be displayed in a /roll. (The image will not be displayed in an [[inline roll]], but the full name of the item will.)