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??

1594672332
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
I am trying to figure out how to get a cf<2 on 2d6 where the cf only occurs on a total of 2d6, not each die. [[2d6cf<2]] gives me cf on 1 or 2 on each die.
1594672555

Edited 1594673082
The Aaron
Roll20 Production Team
API Scripter
I don't believe that is possible with the dice syntax.  I think you'd need to use the API to post process rolls. You might be able to get it working with the $[[#]] hack: [[2d6]] [[ {$[[0]]}<2]] But YMMV... Edit: you'll need to play with it to get the $[[#]] hack to work right...
1594672752
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
No looks like API city for post roll processing or putting it in a roll-template Thanks for the swing at it
1594714781
Ziechael
Forum Champion
Sheet Author
API Scripter
Its REALLY hacky but you could do this: [[ 1d6cf<1cs>2 + 1d6cf<1cs>2 ]] That will give you a red outline only when the total is 2, it'll be blue or green the rest of the time but at least you'll get a visible fail cue?
1594733945
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
Ziechael said: Its REALLY hacky but you could do this: [[ 1d6cf<1cs>2 + 1d6cf<1cs>2 ]] That will give you a red outline only when the total is 2, it'll be blue or green the rest of the time but at least you'll get a visible fail cue? Thanks that does exactly what I want. I am really trying to avoid API on this sheet build.