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

Help required with a macro which counts the number of "sixes" rolled on multiple d6

Greetings. My rules system uses a calculation system which counts the number of natural "sixes" rolled on six sided die. For example: 6d6 are rolled and produce 3, 2, 5, 6 , 1, and 6 (result is two) Does anyone have or know of a script that can count the "sixes" in this type of roll? Regards
If you don't need the total result (23 in your example) as well you could just use the comparison functionality. 6d6>6
Kyle G. said: If you don't need the total result (23 in your example) as well you could just use the comparison functionality. 6d6>6 Hi Kyle. Actually, I need both the total and the number of sixes... Not sure what you mean by the "comparison functionality"?
1552472236
Ziechael
Forum Champion
Sheet Author
API Scripter
Check out the wiki for more info on Target Number (Successes) . Without the API (ie. as part of a roll template, normal or inline roll), you'll struggle to get both the roll result AND number of successes however. Best case would an output of the number of successes with some basic mental arithmetic either with a /roll (and therefore immediately visible) or inline roll with a need to hover over the result to see the numbers from the dice... if any of that made sense!
1552686282

Edited 1552686607
Ray
Pro
Ziechael said: Check out the wiki for more info on Target Number (Successes) . Without the API (ie. as part of a roll template, normal or inline roll), you'll struggle to get both the roll result AND number of successes however. Best case would an output of the number of successes with some basic mental arithmetic either with a /roll (and therefore immediately visible) or inline roll with a need to hover over the result to see the numbers from the dice... if any of that made sense! Thanks Ziechael...we have been doing the "hover and count sixes" method, which works but is a pain. I had a look at the wiki link and it's pretty straight forward. What API are you talking about? Regards :)
You might find /roll 6d6cs6cf0 to be the 'easiest' solution - you'll get the total output, but you'll also get 6 'dice' with any that are 6 being highlighted in green for quick manual visibility of that part.
Aranador said: You might find /roll 6d6cs6cf0 to be the 'easiest' solution - you'll get the total output, but you'll also get 6 'dice' with any that are 6 being highlighted in green for quick manual visibility of that part. Thanks Aranador...I will look at that as an option and see if it will be workable for what I'm trying to do  :)
/r  6d6sdcs6 It doesn't count the 6's but it sorts the dice in descending order and makes the 6's green.
Charlie H. said: /r  6d6sdcs6 It doesn't count the 6's but it sorts the dice in descending order and makes the 6's green. Thanks Charlie H... That might be useful too ;)
1552809850
Ziechael
Forum Champion
Sheet Author
API Scripter
Ray said: my stuff... What API are you talking about? No specific one comes to mind sorry... but I'm fairly certain one will exist for this type of rolling mechanic (The Aaron probably wrote it...). If one doesn't exist it is within the purview of the API to be able to output the roll and the number of successes. I'll see what/who I can dig up ;)