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

After I've rolled a pair of dice, how do I add a set value to the higher one?

I roll a pair of dice and I keep the result. Then, I want to keep the higher of the two, add a set value to it and show the result below the first sum. How do I do that?
Something like this? 2d20 = $[[0.computed]] + ?{Value?|} = [[[[2d20kh1]]+?{Value?}]] If you're looking for something different, the more information you provide, the better answer you will get. :)  E.g. what game are you playing; what character sheet template are you using; if the static value is referenced from a character's sheet or typed in by a player, etc.
We're playing a game called Fabula Ultima, based on Ryuutama. The specific situation is as follows: to attack a target, my character has to roll 2d10 clean. This is to confirm wheter or not the attack was successful. After that, I check the damage by picking the higher die and adding 10 to that. What I want is to have both these calculations one above the other. I hope I'm being more clear now.
1648420654
GiGs
Pro
Sheet Author
API Scripter
In roll20 you can't do two different operations with the same dice (adding two dice vs taking the highest of two dice). API scripts can bypass these limitations, but the game creator nees a Pro subscription to use them.