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 .
×

Sucess macro

I am very bad at programming, I am playing a very simple system with my friends, and I have the following macro. & {template: default} {{name = @ {selected | token_name} rolls}} {{D1 = [[1d6cf <3]]}} {{D2 = [[1d6cf <3]]}} {{D3 = [ [1d6cf <3]]}} {{D4 = [[1d6cf <3]]}} that gives PC rolls: D1 = 3  D2 = 4  D3 = 2  D4 = 6  everything greater than 3 counts as success I wanted to do a second part in the macro that told me how much success was in the roll (don't need the part that says which dices were successful, just the total hits) example: PC rolls: D1 = 3 fail D2 = 4 success D3 = 2 fail D4 = 6 success 2 success!
1572560432

Edited 1572560893
Spren
Sheet Author
You can't total up the successes if you roll them separately unfortunately. Not without being a pro subscriber and using an api script. There is a success mechanic that would show successes, <a href="https://wiki.roll20.net/Dice_Reference#Target_Number" rel="nofollow">https://wiki.roll20.net/Dice_Reference#Target_Number</a> . Using that if you did something like "/roll 4d6&gt;4", the output would be "2 successes" or however many successes there are. The inline roll with the template is actually less useful in this case honestly. I'd use the default roll so you can see everything and get it closest to what you were looking for.
Spren said: You can't total up the successes if you roll them separately unfortunately. Not without being a pro subscriber and using an api script. There is a success mechanic that would show successes, <a href="https://wiki.roll20.net/Dice_Reference#Target_Number" rel="nofollow">https://wiki.roll20.net/Dice_Reference#Target_Number</a> . Using that if you did something like "/roll 4d6&gt;4", the output would be "2 successes" or however many successes there are. The inline roll with the template is actually less useful in this case honestly. I'd use the default roll so you can see everything and get it closest to what you were looking for. tnx
1572587376

Edited 1572587385
Two additional options: You can use " [[1d6cf&lt;3cs&gt;3]] " if you're looking for single-line rolls that turn red for failure and green for success (making it easier to count). You could put these in your roll template and then quickly identify a success/failure based on text color. You can use " {4d6cf&lt;3cs&gt;3} " (with brackets) to output a combined total of successes from four rolls which can then be hovered over for red/green colored individual rolls. I'm not sure how well this method works with roll templates, but you can always give it a shot.