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 problems, things don't seem to parse right

I'm trying to build an Initiative macro for a housrule I run, and was trying to set it to work with 5e advantage aswell, however I came across an issue with grouped rolls  the macro is thus: &{template:5eDefault} {{title=Standardised Initiative}}{{deathsave=1}} {{roll=[[?{advantage?|standard, 4d4 |advantage, {4d4,4d4}kh1}} + (?{mod|1|-1})*?{dex mod|0|1|2|3|4|5|?{>5}} &{tracker}]]}} where {4d4,4d4}kh1} is supposed to be the grouped roll {4d4,4d4}kh1, however when that is put in it seems to parse it as {4d4}kh1} so I tried using the HTML for ,  and it returned as 4d4+4d4kh1  help please, anyone, the wiki has nothing
ok so I fixed the problem with the grouped roll with the following {4d4 , {4d4}}}kh1}}, however this then causes it to exit the macro and so none of the modifiers are added to the roll I'm at a loss
1500829433
Silvyre
Forum Champion
Have you checked out Advanced Usage for Roll Queries ? Regardless, you should be able to avoid using HTML entities by writing your macro like this: &{template:5eDefault} {{title=Standardised Initiative}} {{deathsave=1}} {{roll=[[ {4d4, ?{advantage?|standard, 0|advantage, 4d4} }kh1 + ?{mod|1|-1} * ?{dex mod|0|1|2|3|4|5|6|7|8|9|10} &{tracker} ]]}}
1500829906

Edited 1500830340
I have that's why I changed it?,  thank you for solving my issue though, I was starting to get quite confused. however I notice that now using your macro the standard setting doesn't work maybe something to do with using an M roll as a sub-roll in a query?
1500830432

Edited 1500830477
Silvyre
Forum Champion
Here are the correct replacements in case they help: &{template:5eDefault} {{title=Standardised Initiative}}{{deathsave=1}} {{roll=[[?{advantage?|standard, 4d4 |advantage, {4d4,4d4}kh1} + (?{mod|1|-1})*?{dex mod|0|1|2|3|4|5|?{>5}} &{tracker}]]}} I removed an extra } from the macro, as well.
1500830568
Silvyre
Forum Champion
Chris D. said: however I notice that now using your macro the standard setting doesn't work maybe something to do with using an M roll as a sub-roll in a query? Right, try this: &{template:5eDefault} {{title=Standardised Initiative}} {{deathsave=1}} {{roll=[[ {4d4, ?{advantage?|standard, 0d0|advantage, 4d4} }kh1 + ?{mod|1|-1} * ?{dex mod|0|1|2|3|4|5|6|7|8|9|10} &{tracker} ]]}}
yes, that was how I corrected it