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

Roll a dice and add numbers then divide by half and round down

What should be a simple macro is throwing me for a loop right now, basically it's suppose to add 1d6+1+3 then divide the number by two and round down, but when I rolled a 4 on the d6 it gave me a result of 6 when 4+1+3=8 which divided by two is 4. [[floor(1d6+1+3/2)]] What am I doing wrong here?
1551541167

Edited 1551541201
GiGs
Pro
Sheet Author
API Scripter
You need to enclose everything you want to halve in another set of brackets. As it is, your calculation is only halving the last number, the 3. [[floor((1d6+1+3)/2)]]
Should have known it would be a simple like that! Thank you GiGs!