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

d6 macro that announces successes and the # of 1s rolled

Embarassed to ask this bc I suspect it's easily solvable, but I know nothing about scripting. Running a Shadowrun game. Currently using  simple dice rolling macors like: /w gm rolls [[10d6>[[5]] ]] successes! This tells me how many successes (5s and 6s), but I'd also like it to tell me how many 1s were rolled without having to mouseover the results to get the answer. Any help is appreciated.
It's not actually so simple since you cannot get two different results from the same set of rolls. What can be done is to check for 1s first then reroll the remaining dice (without any 1s) to check for successes. /w gm rolls [[ (?{Dice|10}-[[?{Dice}d6=1]])d6r1>[[5]] ]] successes! with $[[0]] 1s
In that case I feel a little less stupid, but just a little. Thanks!
1745960423
timmaugh
Forum Champion
API Scripter
If scripts are available in the game (game owner must be a Pro-subscriber), then you can use the MetascriptToolbox to re-dig through the data from a previous roll. For instance: !/w gm rolls  [[10d6>[[5]] ]] successes, with {&eval}getDiceByVal($[[1]] 1 all count){&/eval} fails. {&simple} (calling the "1" returns "fails" just for comparison)
1745962217

Edited 1745962304
Actually, thinking about it more, here's what I'd like to have. /w gm rolls [[1d6>[[5]] ]] successes! creates this Really what I want is the result below, but whispered to me. Then I could see how many 1's were roled.
You can use /gmroll or /gr for the whispered version of /roll
Thanks