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

Macro for rolling 2d6 and adding the Greater (or equal to) of two attributes

Thanks in advance I hope. I am currently designing a character sheet and am stuck at a point where i need to have a macro where it calls a 2d6 roll (that's an easy bit) to be added to one of two attributes (attr_) which is the higher of the two. EG: attr_skill and attr_magic which both have numerical values. If they are equal it also needs to fire with either number. Searched the wiki and it only seems to concern with rolled results, not static values. Tah
The Aaron
Roll20 Production Team
API Scripter
Try: [[2d6 + {@{skill},@{magic}}kh1]] or [[2d6 + {@{skill}d1,@{magic}d1}kh1]]

Edited 1604400816
That sir, is awesome thanks. So you can compare with commas and keep 1? So simple when you are a scripting God lol.
Sheet Author
API Scripter
For more techniques like that, browse this page:&nbsp;<a href="" rel="nofollow"></a>