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

Using the same roll for two outcomes

Is there a way to use the same dice roll for different outcomes. At the moment I'm rolling two different dice because I have different modifiers for Wisdom check and Wisdom save. &{template:default} {{name= Wisdom}} {{Wisdom Check [[1d20+(0)]]}} {{Wisdom Save [[1d20+(2)]]}}
Nope. Best you could do is: &{template:default} {{name= Wisdom}} {{Roll=[[1d20]]}} {{Wisdom Check= +0 }} {{Wisdom Save=+2}}
Sky said: Nope. Best you could do is: &{template:default} {{name= Wisdom}} {{Roll=[[1d20]]}} {{Wisdom Check= +0 }} {{Wisdom Save=+2}} Darn. Thanks for the quick reply!
With the assistance of an API Script , this can be done. (API access requires a Game's Creator to have an active Pro subscription.) For example, using PowerCards : !power {{ --name|Wisdom --Check|[[ [$Save]{1d20 + @{wis-save-mod}} - @{wis-save-mod} + @{wis-check-mod} ]] --Save|[! [^Save] !] }}
That's sneaky. My damn script and I wouldn't have thought of that.
Silvyre said: With the assistance of an API Script , this can be done. (API access requires a Game's Creator to have an active Pro subscription.) For example, using PowerCards : !power {{ --name|Wisdom --Check|[[ [$Save]{1d20 + @{wis-save-mod}} - @{wis-save-mod} + @{wis-check-mod} ]] --Save|[! [^Save] !] }} That is really cool. Unfortunately my DM and I are scrub tier Roll20® players at the moment. This is our first real campaign on Roll20® (bought the "Tales From the Yawning Portal" module). I will keep this in mind in the future. Thank You
1498499459

Edited 1498499510
The Aaron
Pro
API Scripter
If you only have 2 modifiers, you could do something like: &{template:default} {{name=Wisdom}} {{Wisdom Check.Save [[(1d20*1.01)+(@{check}+(@{save}*.01))]]}} That will give you a decimal number where the left side of the decimal point is the number rolled + the check value and the right side of the decimal point is the number rolled + the save value.   An example of the math, assuming a 7 was rolled and the bonuses are 2 and 5: (7 * 1.01) + (2 + (5 * 0.01) ) (7.07) + (2 + (0.05) ) (7.07) + (2.05) 9.12
1498505584

Edited 1498505742
The Aaron said: If you only have 2 modifiers, you could do something like: &{template:default} {{name=Wisdom}} {{Wisdom Check.Save [[(1d20*1.01)+(@{check}+(@{save}*.01))]]}} That will give you a decimal number where the left side of the decimal point is the number rolled + the check value and the right side of the decimal point is the number rolled + the save value.   An example of the math, assuming a 7 was rolled and the bonuses are 2 and 5: (7 * 1.01) + (2 + (5 * 0.01) ) (7.07) + (2 + (0.05) ) (7.07) + (2.05) 9.12 This is genius but I do get decimal points past the hundred Millionths. is there a way to round to the nearest hundredth?                            .  
1498513857
The Aaron
Pro
API Scripter
Yeah, you can multiply by 100, use the round() function, then divide by 100 and loose that IEEE754 rounding error: [[ round(100*( (1d20*1.01)+(@{check}+(@{save}*.01)) ))/100 ]]
1498515869

Edited 1498516445
The Aaron said: Yeah, you can multiply by 100, use the round() function, then divide by 100 and loose that IEEE754 rounding error: [[ round(100*( (1d20*1.01)+(@{check}+(@{save}*.01)) ))/100 ]] Perfect!! Thank you so much!!!
1498521719
The Aaron
Pro
API Scripter
No worries!  Happy rolling!