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 .
×

Critcal Success/Failure with one die being noted

Hi all, this has been something i have been working on but hit a dead end and have no idea if this is actually possible or not but here goes. We are currently playing a game where a player needs to roll 3d6 and pass a set target number which is noted as attr_TargetNumber. I have coded up a way to get the roll to mark success but in addition, if there is a double a certain dice number is needed which is where i hit a deadend. What i want is for the macro to output this alongside success or fail. I am currently using: /r {(2d6)+(d6)}>@{attr_TargetNumber} The dice i need if any 3 dice are doubles is the last d6. The double can be from any dice of the three dice. TIA
1597679988

Edited 1597680449
Ziechael
Forum Champion
Sheet Author
API Scripter
The closest you might be able to get without the API (which as a Pro you have access to and The Aaron likely already has a script for or will do by the time I refresh this page) would be: Bob rolls and gets [[ {0,@{attr_TargetNumber}}kh1<[[ [[ [[ 1d6 ]] + [[ 1d6 ]] ]] + [[ 1d6 ]] ]] ]] success. Doubles?: $[[0]] | $[[1]] | $[[3]] Also, shouldn't @{attr_TargetNumber} just be @{TargetNumber}? edit: the above only really works when the target isn't a static value... more work might be needed here... hmmmmm edit the 2nd: OK, that should work now... I think...