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

Checking a d100 roll

1522423107

Edited 1522424267
Is there a way for you to roll a d100 and then have it either ignore the number output if it doesn't meet a condition or show it when it does meet the condition? For instance if the number is a 3 or less and also 97 or higher. I'm trying to check for the 6% chance of something happening but only 3% on each end.
1522424327

Edited 1522426647
vÍnce
Pro
Sheet Author
I think this would work; [[ { [[ {3,[[1d100]] }k1 ]], 97 }kl1 ]] You could substitute a query and/or attributes names for the lower/upper limits as well.  [[ { [[ {@{low},[[1d100]] }k1 ]], @{high} }kl1 ]] [[ { [[ {?{low|0},[[1d100]] }k1 ]], ?{high|100} }kl1 ]] EDIT: this only shows the roll between two numbers. OP wanted to show the roll IF it was either below or above two numbers.
That is definitely closer to what I'm looking for but maybe it just isn't possible. I would like it to look at the number and evaluate whether it is a 3 or a 97, then if it is lower or greater then it would print the number. Maybe this is only possible with an API.
1522425047

Edited 1522425268
vÍnce
Pro
Sheet Author
My bad, I misunderstood you wanted the "in-between" value.  You want the opposite.  That's MUCH more conditional which macros are lacking the ability to handle. ;-(  Maybe Silvyre has something for this..., but I think that would only be possible with an API script like PowerCards.
Yeah, I have PowerCards but have no clue how to make it do that. Nice