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 .
×
May your rolls be merry + bright! 🎄
Create a free account

emMacro with Dropdown and keep-Function

Hi guys and girls, I'm trying to create an emote macro that allows me to display different choices using a dropdown menu. /em uses a skill ?{Skill|Perception, Perception with [[d6!]]+[[d8!]]|Listening, Listening with [[d6!]]+[[d10!]]|............} So far this works quite well. However, This gives me both roll results but I only need the result of the higher die. So i tried to include a keepfunction into the macro. On the internet I found the following function for a keep throw: /r {d6!,d8!}k1 However, if I insert this into the macro: [[{d6!,d8!}k1]] the macro does not work anymore. Can someone tell me what is wrong with it Or is there a smarter implementation for my idea?
1635515600

Edited 1635515668
The Aaron
Roll20 Production Team
API Scripter
Try using: [[{d6!,d8!}k1]] Probably the } is braking the ?{ } Roll Query, so escaping it thusly lets it pass through the selection and get evaluated at the right time. 
Oh that was a good tip with the HTML entities. However, it was not enough to replace only '}', also the ',' in the keepfunction made problems, but now they are off the table and the macro works. Thanks a lot :)