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

Counting numbers in successes

Hi!  I would like to count the numbers for successes only. E. G. If you succeed by rolling 3 or more on a d6, and you roll 3d6, add all success numbers together, and skip the failures. So if the results would be 2, 4, and 5 it would skip the 2 and just add 4 and 5 together.  I've tried to approach it for several ways for hours, but I really can't.  One way would be to first look for all successes and then add them together. Unfortunately I can't find a way of modifying the output.  Every time I tried to give conditions for success, it started counting the number of successes which is not what I'm after.  I have even considered doing all macros in google spreadsheet, but apparently it's not possible to export them to roll20.  Does anyone have any idea on where to look? 
1588253096

Edited 1588253112
Ziechael
Forum Champion
Sheet Author
API Scripter
The native success/failure mechanic doesn't really work well for this kind of problem. What you can do is set up a rollable table with an alternative d6: 0 (weight 2) 3 (weight 1) 4 (weight 1) 5 (weight 1) 6 (weight 1) Then when you roll [[  x t[ d6v2 ] ]] (or whatever you call your table) it will give you a total but will have only added up things with a value 3+.
I just tested it and it works fine... Kind of.  Perhaps I should have been more specific. I would like to count both the numbers on successes and numbers on failures at the same time (but separately). While rollable table solves one of the problems it doesn't solve the other :-( 
1588264801
GiGs
Pro
Sheet Author
API Scripter
There's no way to do what you want on roll20 without using the API (a Pro subscriber perk). Standard Rolls cannot return two pieces of information from the same roll (the numbers on successes, and the numbers on failures, are two pieces of information). The only thing you can do is order the dice rolls, something like /roll 6d6sd This will sort the dice from high to low, so you can see what you need. You can use the critical success and failure colours to make then stand out. If your success target is 4,  /roll 6d6cs>4cf<3sd will make all successful dice green, and all failure dice red. 
Thanks a lot!  Both pieces of advice were actually excellent. I realized that roll20 counts all the numbers in the rollable table, so it's actually possible to make a custom dice with following:  failure (weight 2) 3 (weight 1) 4 (weight 1) 5 (weight 1) 6 (weight 1) Which will count all the success numbers and write out all the failures. While not perfect it's good enough.  Also, the second advice about color coding successes and failures also helps a lot! I will try to make it work with rollable tables.