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 rolling negative numbers

Does anyone know how to avoid geting 0 and negative numbers; For example if I roll "1d6-2" I get results of -1 to 4, but the min damage is 1, so I need -1 and 0 to equal 1 Cheers
I don't think the dice engine can do math that complex.  It just spits out the raw calculation.  Just do what you'd do on a real table top - ignore it.  :)
Normally I just assign minimum damage if the damage is in the negatives. I guess you could do a reroll macro to reroll numbers that would equate to a negative or zero value. Using your example it would be something like this, /roll 1d6r<3-2 .
You'd actually want to use: /roll {1d6r<2}-2 The > and < symbols actually stand for "greater than or equal to" and "less than or equal to" in the dice parser.
I don't think that would work, as he WANTS the 0 results, just wants anything from 0 or less to show up as a 0.
Actually his post reads that he WANTS a minimum result of 1 as he wants to do a minimum of 1 damage, not 0 damage.
1d6r<2 will re-roll anything less than or equal to two. 1d6r<3 will re-roll anything less than or equal to three.
Thanks for the replys, its was always standard for the D@D that a hit that resulst in less than 1 still does 1 point of damage. Just wondered as the dice macro's can do quite a few things already. Was just a problem when "damage" macro's putting out 0 or -1, then having to tell the players they still take damage. Would use the "IF" funcion in excel was hoping there was an easy answer, No problem.
The only problem is that he will roll minimum damage 25% of the time with the macro versus 50% of the time with actual dice. For a true roll he would need some kind of if then statement that says any result that is less than one is set to one.
yes effectivley a dice with 6 sides that roll 1,1,1,2,3 and 4.