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

Dice roll syntax to assign value to specific numbers

February 09 (5 years ago)

Goal is:  When I roll xd10, for each 10 I want either 2 successes or 3 successes as determined by myself or the player.  Then I want to ignore a specific number of failed rolls.

So far I know this syntax:

/roll 5d10!10>6f1

This only causes exploding dice and 1's are a failure.  I want to change it so that a 10 will equal instead to 2 or 3 successes as I see fit.


February 10 (5 years ago)
GiGs
Pro
Sheet Author
API Scripter

I'm sad to tell you that wont be possible. Roll20s dice macro system doesnt allow for conditional rules, so you cant do the 2 successes or 3 successes on a critical. 

I'm not sure what you mean about ignoring failed rolls. Wouldnt failed rolls be ignored anyway?

February 10 (5 years ago)

In this dice system a failure takes away from a success.  So a 10 is dropped first.  Which can vary the results widely.

February 10 (5 years ago)
GiGs
Pro
Sheet Author
API Scripter

every fail takes away a success? that seems likely to result in a lot of whiffed rolls? or did you mean every fumble?

But odds aside, probably the best way available to you, is to sort the dice rolls (use something like /roll 5d10!10>6f1sd

adding sd sorts the dice rolls, showing you them from high to low. That way you can see at a glance the 10s and 1s, and manually do the calculations a lot easier.

February 10 (5 years ago)

oh, sd, nice.  I prefer that.

Yeah, 1's take away does causes a lot of botches.  Which is counterintuitive to having a higher dicepool sometimes.  Very aggravating and a common complaint.  I came up with a house rule to negate some of those 1s based on skill level.

February 10 (5 years ago)
The Aaron
Roll20 Production Team
API Scripter

I'd probably construct some Rollable Tables with the value as the number of success and the weight as the number of occurrences. Assuming you have 2 successes on a 10, and success is 7 or larger, and 1 is a failure, you could have:

  • 2 @ 1
  • 1 @ 3
  • 0 @ 5
  • -1 @ 1

Assuming you named it d10c2s7, you could do:

[[3t[d10c2s7]]]

And you might get 2 + 0 + -1 = 1 success.  If you care about the rolled number, you can have 10 entries with labels for the die face:

  • 2 [10] @ 1
  • 1 [9] @ 1
  • etc

Then just makes tables for the various success and crit combinations.





February 10 (5 years ago)
GiGs
Pro
Sheet Author
API Scripter

This does have the drawback of needing a different table for every success and critical combination, which might get to be a pain. 

One the other hand, if you want to do a bit more work, it does have the advantage that you can also include dice images for each result (if you list each of the 10 options), so it looks like a dice roll.

February 10 (5 years ago)
The Aaron
Roll20 Production Team
API Scripter

Unfortunately, without a script it would only show the face if you rolled a single die. It is a bit of work to set up, but there are probably only 20 or fewer tables. It could probably be set pretty quickly. 

February 10 (5 years ago)
GiGs
Pro
Sheet Author
API Scripter

Oh yes, i forgot about that single die limitation.