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
This post has been closed. You can still view previous posts, but you can't post any new replies.

How do I divide the result of a Roll macro?

Hi Folks, Just getting into this great tool and I have a simple question I cant figure out. How do I get the result of a dice roll to divide in half? I want to roll 1 D6+2 and divide the result in half When I enter: /roll 1d6+2/2 it doesn't work. What am I missing? Thanks in advance! -Richard
1446312404
Diana P
Pro
Sheet Author
Parentheses will tell the computer you want to divide the whole thing.  Try /roll (1d6+2)/2
Thank You Diana. That's it!!
1446318332
Ziechael
Forum Champion
Sheet Author
API Scripter
Since Diana has expertly answered your question i'll close this thread. Also note you can use inline rolls the same way [[(1d6+2)/2]] to output just the result without all the fluff.