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

Deduct 1 from roll

1597312277

Edited 1597314316
Hey,  is it possible to deduct all 1 from the sum of a roll? Code:   {2d6+3d6}k2 With this I get the 2 highest of my roll, that's very nice but i have some extra wishes. Can you help my with these examples? That's what I try: {3+ 1 }+{ 5 + 4 } -->  5+9-1 = 8 { 3 + 1 }+{ 1 + 4 } -->  3+4-2 = 6 And I try to get some output like this: half or higher is 6: {6+6}+{2+3} --> Lucky strike! half or higher is 1: {1+1}+{5+3} --> Failure! half or higher is 1&6: {1+1}+{6+6} --> Lucky failure!
1597315999
Oosh
Sheet Author
API Scripter
I'm really not following the second half of the post at all, sorry. Which game system is this for? I'm not understanding how you're going from 2 dice results to the unusual arithmetic in the second half. Also, {3d6+2d6}k2 is going to give you the same output as 5d6k2 - it doesn't really matter which way you write it, just checking if you're expecting it to do something different by splitting the dice into groups?
That was just one example actually there are two properties. For example: 3 dice for strength and 2 for social. I just took numbers because I'm testing around ;) The system is "packs!" (Ratten!) The second part is that I would have liked to have had an output for further text output. When half are ones or sixes. Here are the numbers only examples, too, because you always roll dices with two properties. So I have two wishes, subtracting ones and this output (but the second would only be nice to have).
1597337274
GiGs
Pro
Sheet Author
API Scripter
Roll20 dice macros cant do conditional comparisons, so you can have "when half the dice are 1s, print this text." For that you need the API, a Pro subscriber perk. You also cant do the -1 for rolls of 1. It is possible to have 1s subtract successes, but this only works when you are making rolls vs a target number (e.g. counting how many dice roll 4 or more). It doesnt work when just summing the dice. So the only way to do the roll you want is through the API.