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 .
×
Our team is currently investigating rolling service outages. For more information, visit our most recent Forum Announcements post.
Create a free account

Display Number of Dice that rolled Max using Roll Template

I'm currently making my own character sheet, and I'm having troubles getting a specific function to work on the rolls. The system uses a variety of dice for checks, but a consistent ruling is that any die that rolls maximum should be counted. Let's say I'm rolling 2d10 and 2d4, and I roll maximum on one of the d10s and one of the d4s. How would I code the roll template to tell me I rolled two max dice? Is this possible without APIs? 
1605257174
GiGs
Pro
Sheet Author
API Scripter
You could only do that if you are only using the dice roll to count how many times you roll max (and then would do something like [[2d10>10 + 2d4>4]]). If you use the dice roll for other things as well (you want to use the roll for something, and  count the max results as separate), you cant do that without the API.