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

prevent PullDown from parsing inline roll?

I am open to any suggestions as to a better way to do this, barring using the API, thank you in advance. My goal is to create a pull down that will offer the option of selecting, and rolling  a Die such as D6, D8, etc. That part is working, the problem I am currently having is add a modifier to that roll, as I need determine which stat bonus is higher and apply that to the roll. For example I have this Macro: ?{PickOne|Light, [[1d6 +[[ [[{@{selected|strength_mod},@{selected|dexterity_mod}}KH1]]d1 ]] ]]}|D8, [[1D8]]} which should roll 1D6 + strength_mod or dexterity_mod which ever is higher on the selected character. The problem is when I test my Macro instead of a pull down for "Light" or "D8"  I am unable to select anything and see this: Light, [[1d6 +[[ [[{3,4 the 3,4 is the Macro evaluating the mods from strength and dexterity, which are correct. I have also tested putting the damage routine in a separate macro, which works by itself: [[1d6 +[[ [[{@{selected|strength_mod},@{selected|dexterity_mod}}KH1]]d1 ]] ]] and calling that as a nested macro: ?{PickOne|Light, #Light |D8, [[1D8]]} Same problem.  Additionally I have tested the ascii character substitution, replacing all {}[] with things like  }  thanks for any pointers or suggestions.
1546974836
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Roll Queries can be notoriously difficult to parse. I would strongly suggest a Chat Menu for something like this.
Beautiful and elegant,  seems to do just what I want. Thank you very much for the quick reply.