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

Help with a macro that sum only double dice

Hi, I need to create a macro that allows me to sum only double dice. Example /roll 2d20  --> 5 and 7 --> no sum /roll 2d20 --> 10 and 10 --> sum can you help me? thanks!
Sounds doable. But what should the macro output if the two rolls are not equal? The larger one?
Yes! For now I use this macro: /me [[?{D20|0}d20kh1+?{QP|0}+?{AM|0}]] I would like to integrate the possibility to sum only double dice.
1479082404
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Impossible without the API. Aaron has written some scripts for similar situations, but there's no way without a pro sub.
1479123965

Edited 1479124396
Thanks, If I passed a pro ... how should I set the API that I need? ...and second question. how can I improve the existing macro?  /me [[?{D20|0}d20kh1+?{QP|0}+?{AM|0}]] My goal is: - Roll 1 or more D20 and take the high. - Add the Primary Quality (QP) - Add the Enhanced Action (AM) 2 dice -> +4 3 dice -> +6 4 dice -> +8 5 dice -> +10 etc
1479148951
The Aaron
Pro
API Scripter
Regarding the API, you'd make a post in the API forum describing the game you are playing and it's various mechanics and ask for someone to automate it for you with a script.  You'd give some details on what the interface should be like and then hope that someone would write it for you.  (and in all likelihood, that would be me...).
ok... thanks. I'll talk to my players and we will evaluate the possibility to upgrade to pro.