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

Conditional Modifiers?

1526165370

Edited 1526165411
Hello, I've been looking at the tutorials but either I haven't found what I'm looking for or I just didn't understand it well enough to figure it out... We're playing Hackmaster and my dagger deals 1d6-1 base damage, plus 9 for magical and strength bonuses. In Hackmaster, the base damage can't be less than 1, so on 1d6-1 a roll of 1 is 1, not 0. what I need is something that performs the following: roll 1d6 if roll >1, add +8 if roll =1, add +9 (ie: (1)+9; (3)+8; (5)+8; etc.) Is something like this possible in Roll20?
It's been asked and asked and asked, and told no, no, no, not even with a pro subscription. You have to unfornately use the API and know java to do that.
1526191078

Edited 1526191166
But you can use the kh (keep highest) syntax to cover this: {[[1d6+@{STR}]], 1}kh1 See the wiki: <a href="https://wiki.roll20.net/Dice_Reference#Grouping_Rolls" rel="nofollow">https://wiki.roll20.net/Dice_Reference#Grouping_Rolls</a>
1526192215

Edited 1526268164
GiGs
Pro
Sheet Author
API Scripter
Rabulias, your calculation doesn't account for the fact that 1 and 2 on the d6 roll both produce the same number Here's a way to do it (each line is the same roll, they each just show the roll in chat differently - pick the one that suits your needs): /roll {1d6-1, 1d1}kh1 +@{STR} /roll [[{1d6-1, 1d1}kh1]] +@{STR} [[{1d6-1, 1d1}kh1 +@{STR}]] [[ [[{1d6-1, 1d1}kh1]] +@{STR}]] You can also do some variation of /roll {1d6+@{STR}, 1d1+@{STR}}kh1 But I prefer the first one. Here's
I was not clear; I was not trying to answer the OP's specific request, but instead giving a generic example. Sorry for any confusion.
1526669700

Edited 1526669995
GG posted exactly what I was looking for (/roll {1d6-1, 1d1}kh1 +9). Thanks! :)
1526672810
GiGs
Pro
Sheet Author
API Scripter
You're welcome!