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

Scaling breaks roll query

I am trying to make a Toll the Dead macro that asks whether the target is healthy (d8) or hurt (d12), then scales the dice rolled based on the player's level. This works great in other macros, when I don't use the query, but combining the query and the scaling breaks it right after the 17. Any ideas? Thanks in advance &{template:default}{{name= Toll the Dead}} {{?{Health Status|Healthy, Necrotic Damage: [[[[2 * {5,11,17}<@{ Kiara |level}]]d8]]|Hurt, Necrotic Damage: [[[[2 * {5, 11,17}<@{ Kiara |level}]]d12]]}}
1678479468
Andreas J.
Forum Champion
Sheet Author
Translator
Solution likely includes replacing some character with these <a href="https://wiki.roll20.net/HTML_Entities" rel="nofollow">https://wiki.roll20.net/HTML_Entities</a> replacing each } inside the query with the html entity should stop the query from "closing" too soon.
Jeez, that took about 50 tries, but I finally got it. I had to escape 2 right braces, and the commas. &amp;{template:default} {{name= Toll the Dead}} {{Range: 60 ft}} {{DC:@{ Kiara |spell_save_dc} - Wisdom Save}} {{?{Health Status| Healthy, Necrotic Damage: [[[[1 + 1 * {5&amp;#44; 11&amp;#44;17&amp;#125;&lt;@{ Kiara |level}]]d8]]| Hurt, Necrotic Damage:[[[[1 + 1 * {5&amp;#44; 11&amp;#44;17&amp;#125;&lt;@{ Kiara |level}]]d12]]}}} Thanks for the help.
1678643156
Gauss
Forum Champion
Regarding this spell, I typically just add both damage types to the base spell, that way it rolls both and I select whichever one applies at the moment.&nbsp; Much easier than this macro. :)
I understand, and you are probably right. The main reason for doing this macro is simply to see if I can make the syntax work as I may need something similar in the future. Knowing how to make complicated macros make you a better macro maker, lol. Kind of a "prove to myself I can do it" mentality.&nbsp;
1678652608
Gauss
Forum Champion
Jimbalaya said: I understand, and you are probably right. The main reason for doing this macro is simply to see if I can make the syntax work as I may need something similar in the future. Knowing how to make complicated macros make you a better macro maker, lol. Kind of a "prove to myself I can do it" mentality.&nbsp; True, but after a certain amount of HTML entity substitution the usual answer is: use a Chat Menu . :) HTML entities get extreme after a certain point, Chat Menus are just easier.&nbsp;