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

"X or Y, whichever is greater" macro

Hey all, I have a simple request for help with a macro... I have two variables, @{masterwork} and @{enhancement} that apply to weapon attack rolls [[1d20]]. However, not both apply - only the greatest of them is added. How would I write... [[1d20+(@{masterwork} or @{enhancement}, whichever is greater)]] I'm sure there's some floor and abs and +0.1 going on to do that, but I've never been too good at that specific thing. Thanks!
1437855140

Edited 1437855176
Gen Kitty
Forum Champion
Try: [[1d20+{@{masterwork},@{enhancement}}kh1]] The Dice Reference page has tons of useful rolls! :)
Thanks! Just what I needed.