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

[Bug] Critical Success rolls of negative value return 1

[[1d100cs>-1]] (or any negative number, any dice roll) will always return 1 and cause target macros to fail.  Not sure what update broke this but we just discovered it recently.  This happens from macros, our custom sheet, chat and api. Not a real big issue I know but my game has been using these types of rolls to highlight success based on a lot of variable modifiers that can sometimes lead to a negative cs.  In practice the roll goes something like [[1d100cs<[[ [[@{selected|condition}]] + ?{Mod|0} ]] which certain very bad situations leads to rolls that equate to 1d100cs<-10.  When inline rolls first came out, it would work just fine.  Previously 1d100cs<-10 would roll 1d100 and always be unhighlighted.  Now it always rolls 1 with no highlight.  We use this type of roll for its concise formatting (for use in powercards and macros) and because the value matters in addition to being a success or fail. It's not game breaking for us since if the macro fails to fire off we know there was a negative chance at success and just call it a fail and move on.  
1437910897

Edited 1437911009
Lithl
Pro
Sheet Author
API Scripter
I can see this as well. Both of these produce 1: /r 1d100cs>-1 [[1d100cs>-1]] However, this fails with "There was an error with your formula. Please try again.": /r d100cs>-1 And this fails with "SyntaxError: Expected [0-9] but "-" found.": [[d100cs>-1]] I recommend you update your macros to keep the critical number at 0 or greater, like this: [[1d100cs<[[{@{selected|condition} + ?{Mod|0}, 0}kh1]]]]