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

Analyse a roll twice OR how to count 6s.

1592484971

Edited 1592485144
Hello Roll20 Community, I am kinda new to online DMing and I struggle a lot with different tasks. So my question is: Can you analyse a Roll twice? We use a system similar to Shadowrun where you roll a couple of D6 and everything >=5 is a Success. In our System, the 6s are Critical Rolls So I want to count them and print them out too. Setting Up a Macro like this: Roll a few D6 - > Count and Print Number of Successes (>=5) AND Count and Print Number of 6s seperately.  Example: Roll 3 D6 -> Rolls 2; 5; 6 -> Print 2 Sucesses -> Print 1 Critical While the first part is easy, I currently have to mouse over and count the sixes manually, which is not very useful. Thanks in Advance
1592485657
GiGs
Pro
Sheet Author
API Scripter
Unfortunately no, you cannot do this directly as a free user. If criticals count as 2 successes there's a clunky way to fake it, but if they dont adjust the number of successes, you cant. The best you can do is add s or sd to the die roll (like [[5d6sd >5]]  which will sort the dice from low to high or high to low respectively. This makes it easier to spot the sixes and count them manually.
Thanks for the counting hint! Is there a Way in PRO or PLUS?
1592486513
GiGs
Pro
Sheet Author
API Scripter
You need Pro, Plus won't be enough. And then someone would have to write a custom API script for you. Luckily this would be an easy script to write, as long as you dont have complex formatting requirements. I've written similar dice roll scripts for people on the forums before.
TYVM
1592489159

Edited 1592489287
David M.
Pro
API Scripter
I think a rollable table would work? Create a rollable table named "d6" with six items, equally weighted: {0,0,0,0,1,2} Create a macro that calls the rolls on the table: /roll 3t[d6] Of you want to sum the number of successes, use an inline roll. When you mouse over the result in chat, it will give you the individual rolls: /roll [[3t[d6]]] If you want a variable number of rolls, add a query to it: /roll [[ ?{NumDice|1}t[d6] ]]
1592489777
GiGs
Pro
Sheet Author
API Scripter
The OPs roll doesnt have 6s having a different value as the 5s. 6 and 5 both ocunt as 1 success, but 6s have an extra effect beyond that. At least that's how i understood it.
1592490629
The Aaron
Roll20 Production Team
API Scripter
Provided you're never rolling more than 9 dice, you could set up a rollable table like this: And roll like: [[ 6t[d6s] ]] Then the numbers after the decimal tell you the count of successes and sixes:
1592490893
The Aaron
Roll20 Production Team
API Scripter
If you don't care about the numbers that were rolled, you can extend that to 99 rolls with:
1592491403

Edited 1592491726
GiGs said: The OPs roll doesnt have 6s having a different value as the 5s. 6 and 5 both ocunt as 1 success, but 6s have an extra effect beyond that. At least that's how i understood it. That is correct. They need to reach a certain treshhold depending on the type of roll to have an effect. @The Aaron: The max pool size is around 24, average pool is currently around 10. So while this sounds very clever, it sadly won't do the job. Edit: Just read your second post. I will look at it now. The numbers kinda count. At least the 1s, which are critical fails.
1592492825

Edited 1592492867
GiGs
Pro
Sheet Author
API Scripter
You could extend Aaron's very clever suggestion. Item    Weight 1.01          1 1                1 0              3 0.0001  1 The last one will then give the number of 6s and number of 1s like so 3.01         <- 3 rolls of 5+, one of which is a 6 1.0002  <- 1 roll of 5+, and two 1s     4.0203  <- 4 rolls of 5+, 2 of which are sixes, and three rolls of 1.
1592494229
The Aaron
Roll20 Production Team
API Scripter
Actually, it might be better to go upwards: 6:    10100 5:    100 2-3: 0 1:    1 Since Javascript uses IEEE754 floating point numbers, it can start to loose precision on decimal values pretty quickly.
1592494873
GiGs
Pro
Sheet Author
API Scripter
oh yes, that's a good point.
1592501652

Edited 1592501729
David M.
Pro
API Scripter
GiGs said: The OPs roll doesnt have 6s having a different value as the 5s. 6 and 5 both ocunt as 1 success, but 6s have an extra effect beyond that. At least that's how i understood it. Haha, what, you want me to answer the OP's actual question, and not a completely random one made up in my head? In that case I personally would probably end up using GiGs original sort idea if api scripts weren't an option, even though it doesn't rollup the number of crits. No need to mouse-over, and pretty quick to count up when sorted and color coded, particularly if you size your chat window so there are 5 results per line. /r ?{NumDice|1}d6sd>5 Resulting output for 24 dice: The pseudo-bitwise table method, while super clever and satisfying what the OP was asking, to me parsing the resulting numbers by eye seems like it might get a little awkward.
/r ?{NumDice|1}d6sd>5 Resulting output for 24 dice: The pseudo-bitwise table method, while super clever and satisfying what the OP was asking, to me parsing the resulting numbers by eye seems like it might get a little awkward. In a perfect scenario, I thought about automating it, not only print it, but also auto-roll one the critical effect table when treshold is reached and maybe print out that table with the attack too. That is why I wanted it to be seperate. I thought about going PRO anyway. The players can do their rolls manually, but while describing a scene and the story, look for the next soundtrack while doing so and handling a dozen npc tokens feels to much like work for me. In a perfect world,  I drop a token out of the library - Click on Basic Attack and get something like this:
1592505031
The Aaron
Roll20 Production Team
API Scripter
Definitely not hard to do with the API.
The Aaron said: Definitely not hard to do with the API. Then going pro is the way to go. Thank you all for your time and effort!