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

Keeping a rolled number or round the rest.

Ok this one may not be possible with a Macro but I need a macro to roll a d10, if the roll is 10 keep the 10, if the roll is 1 to 9 divide the rolled number by 2 and round up. Any thoughts? Thanks, AE
1763267401

Edited 1763268126
Gauss
Forum Champion
Hi AE, Which character sheet are you using?  Edit: If the sheet you are using doesn't have a good option in the template then the following will work until someone (probably RainbowEncoder) comes along with a better idea:  [[{1, 3, 5, 7, 9, 10, 10, 10, 10, 10}<[[1d10]]]]
Gauss said: Edit: If the sheet you are using doesn't have a good option in the template then the following will work until someone (probably RainbowEncoder) comes along with a better idea:  [[{1, 3, 5, 7, 9, 10, 10, 10, 10, 10}<[[1d10]]]] It's a perfectly fine solution. I was able to work it into a single roll that preserves the critical highlighting though [[ { ceil({1d10}/2) + { {10} } }dh1 ]] Although neither solution works if you want to roll many of these d10's without just copy and pasting it repeatedly. There is an open suggestion for a custom dice syntax which would make that aspect easier.
Thank you very much. That works perfectly. This isn't for a character sheet it is for a game called Silver Bayonet where you can give up a counter to allow you to off-set damage just taken. So it isn't used that often. Thanks again, AE