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

Variable Roll with Minimum Number of Dice?

March 26 (1 week ago)

Edited March 26 (1 week ago)

Hey folks! I'm trying to set up a game for a (currently WIP) book called INFINITE REVOLUTION. It doesn't have a character sheet in roll20 yet, which is fine, but I'm trying to make things easier for my players and giving myself a headache in the process, so I need to ask a question here.


In the book, there is a value called Drive Stress, which increases when players take damage through certain means. There's an action called Push Your Limits, that requires players to roll @{Drive Stress}d6 (and then checks the lowest roll), but there's a catch - if Drive Stress is 0, they roll 1d6 anyway. I can't figure out how to set this up, because for some ungodly reason the engine allows you to roll 0d6, which just doesn't work. I could set up a ?{Drive Stress} prompt macro, but I'd rather hate to prompt players for "do you have Drive Stress" every time they Push Their Limits, which is going to happen a lot. It's like prompting a D&D player for "do you have HP?". Can someone help me fix this?


EDIT: minor spelling mistake

EDIT 2: clarification on what I'm trying to do

Update: I figured it out! The syntax

/roll [[{1,@{Drive Stress}}kh1]]d6

ended up working. Group rolls are weird and confusing.

March 26 (1 week ago)
[[ [[ {@{Drive Stress}, 1}kh1 ]]d6kl1 ]]

Side note, that the dice roller can handle 0d is useful in various niche cases, where you do want to conditionally return either 0 or a valid die result.

Still weird that there's no min() or max() tags. This syntax is... arcane, to put it mildly. Thanks for the intel though!

There are, they're called group rolls with kh or kl roll modifiers.