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
This post has been closed. You can still view previous posts, but you can't post any new replies.

Rolling without leading die quantity

1335976831
Ken
KS Backer
I noticed that if you enter "/roll d20", the d20 bit is interpreted as a static number instead of a die roll. So if I do: /roll d20+5 The result always comes out: 20+5 = 25 Looks like the roll parser requires a leading number for dice. It should probably be altered to recognized die rolls with the leading number missing and handle them properly. It's easy to forget to type the leading 1, and easy to fail to notice when someone else has done this (though you'd probably get suspicious quickly).
I notice the bug report about this was marked "working as intended" and closed. I don't think "d20" being interpreted as "20" is an ideal intention. If you actually want to *require* a number before the d for it to work, then *not* including a number should raise an error - as the OP notes, failing silently and interpreting the die size as an absolute number is a confusing (and abusable) behavior.
We'll discuss this.
The next update will include an error message if you try to do a roll and there are not actually any dice to roll, with a reminder to put a 1 in front of any single dice rolls.