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

Can somone (try) and help me finish this macro. (round up/down)

currently playing a game where you roll X amount of D6s and every roll of 5 and 6 is a success. My current (normal) macro: "&{template:default} {{name=Fif Slash}} {{Roll=[[((@{M.Accuracy}))d6cs>5>5]] }} {{note= [Melee] [Damage] [Charge] [Pass]}}" You can go into offensive stance which raises the amount of dices with 150% (rounded down) so I made this: "&{template:default} {{name=Offensive Fif Slash v2}} {{Roll=[[(@{M.Accuracy}*1.5)d6cs>5>5]] }} {{note= [Melee] [Damage] [Charge] [Pass]}}" This always rolls 11 dices instead of 10, so I tried to do this: "&{template:default} {{name=Offensive Fif Slash v3}} {{Roll=[[floor((@{M.Accuracy}*1.5))d6cs>5>5]] }} {{note= [Melee] [Damage] [Charge] [Pass]}}" This always rolls the nummber "10" anyway to finish this and make it work?
Try putting the number to roll within an inline calculation rather than inside parentheses [[ [[floor(@{M.Accuracy}*1.5)]]d6cs>5>5 ]]
Kyle G. said: Try putting the number to roll within an inline calculation rather than inside parentheses [[ [[floor(@{M.Accuracy}*1.5)]]d6cs>5>5 ]] Works wonders, Thank you very much! :D