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

Pathfinder Community Sheet help with a complex query

1594493653

Edited 1594493788
Hello, I am playing an alchemist, and using the Healing Bomb discovery I wanted to set up an all-in-one attack macro. However, using the syntax I have, clicking to roll the attack pulls up the proper query drop-down menu, but when I make a choice, nothing gets sent to the chat. Not even an error message. What am I doing wrong? [[?{Healing?|CrLi, CrLi = [[1d8+1]]+[[2]]|SpLi, SpLi = [[1d8+5]]+[[6]]|CrMod, CrMod = [[2d8+3]]+[[5]]|SpMod, SpMod = [[2d8+{@{level},10}kl1]]+[[2+{@{level},10}kl1]]}]] CrLi means Crafted Cure Light, SpLi is Spell Slot Cure Light, etc.
1594497136

Edited 1594497362
vÍnce
Pro
Sheet Author
Hi Ajulex, there's a couple things that are going to give you problems.&nbsp; You've wrapped the entire query within an inline roll [[ ]], which is fine, but you have text included in your query that cannot be resolved like a roll.&nbsp; You either need to remove the text (you can use roll descriptors fenced by single brackets ie " [description]" which show only when hover over the inline roll) or you can remove the inline roll wrapping your query.&nbsp; You also need to do some special character substitution.&nbsp; There are some nuances you must be aware of regarding a few characters that will break your query if they are included within the query.&nbsp; more info in the wiki&nbsp; <a href="https://wiki.roll20.net/Macros#Advanced_Usage_for_Roll_Queries" rel="nofollow">https://wiki.roll20.net/Macros#Advanced_Usage_for_Roll_Queries</a> try this; ?{Healing?|CrLi, CrLi = [[1d8+1]]+[[2]] |SpLi, SpLi = [[1d8+5]]+[[6]] |CrMod, CrMod = [[2d8+3]]+[[5]] |SpMod, SpMod = [[2d8+{@{level}&amp;#44;10&amp;#125;kl1]]+[[2+{@{level}&amp;#44;10&amp;#125;kl1]]}
1594497926

Edited 1594498048
Hmm, getting the same issue.&nbsp; Clicking the attack, getting the drop down, selecting an option, hitting confirm, then nothing at all happens.Not even an error.
1594499534
GiGs
Pro
Sheet Author
API Scripter
The macro snippet Vince posted will work if used in a normal macro. But putting inside a sheet roll, means it has to be processed through a rolltemplate, and that's likely to remove the special characters Vince added. You might be able to get it work by adding another level of nesting to those html entities (replace each &amp; with &amp;amp; ) but there might be other things going on with the rolltemplate that make using a query like this difficult or impossible.
1594501146

Edited 1594501603
vÍnce
Pro
Sheet Author
This works for me when used in the Add to Damage field.&nbsp; You'll need to hover over the damage to see what was included for the [macro]. ?{Healing?|CrLi, [[1d8+1+2]]|SpLi, [[1d8+5+6]]|CrMod, [[2d8+3+5]]|SpMod, [[2d8+{@{selected|level}&amp;#44;10&amp;#125;kl1]]+[[2+{@{selected|level}&amp;#44;10&amp;#125;kl1]] }