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

[HELP] Drop-down query problem

Hi everybody! I just need some help to fix my drop-down query. Pathfinder charachter sheet. I have a witch PC called Hilion and I've made 2 macros for evileye (malocchio) and slumber (sonno), but I want to have a dropdown query where I want to select between them but I can't have it fixed. macro for Evileye &{template:pc} {{showchar=[[1]]}} {{charname=Hilion}} {{name=Malocchio}} {{type=spell}} {{rolldmg1=[[1]]}} {{shortdesc=Penalità di -4 ad SC}} {{save=[[1]]}} {{saveeffect=volontà parziale}} {{savedc=%{Hilion|Hexdc}}} {{castingtime=1 azione standard}} {{range=9m}} {{targets=1 creatura}} {{duration=[[3+@{Hilion|intelligence_mod}]] round}} {{descflag=[[1]]}} {{desc=aaaaaaaaaa}} {{shownotes=[[1]]}} {{notes=In caso di TS superato durata 1 round. Effetto influenza mentale}} macro for Slumber &{template:pc} {{showchar=[[1]]}} {{charname=Hilion}} {{name=Sonno}} {{type=spell}} {{shortdesc=aaaaaaaaaa}} {{save=[[1]]}} {{saveeffect=volontà nega}} {{savedc=%{Hilion|Hexdc}}} {{castingtime=1 azione standard}} {{range=9m}} {{targets=1 creatura}} {{duration=[[@{Hilion|class1_level}]] round}} {{descflag=[[1]]}} {{desc=aaaaaaaa}} {{shownotes=[[1]]}} {{notes=Effetto influenza mentale}} I've tried a lot of combination for the drodown but none seems to work 1.(I've saved macros #hexmalocchio and #hexsonno ?{Che fattura lancia Hilion|Malocchio, #hexmalocchio | Sonno, #hexsonno } 2. ?{Che fattura lancia Hilion| Malocchio, %{Hilion|Malocchio}| Sonno,%{Hilion|Sonno}} None of them is working. Can someone help me please?
1693688038

Edited 1693688239
vÍnce
Pro
Sheet Author
Not sure if a query is going to automatically roll a macro like that... <a href="https://wiki.roll20.net/Macros#Roll_Query_Troubleshooting:_Collections_Macros" rel="nofollow">https://wiki.roll20.net/Macros#Roll_Query_Troubleshooting:_Collections_Macros</a> Would a chat menu work instead of a query? example; &amp;{template:pc} {{name=Abilities}} {{descflag=[[1]]}} {{desc=[Malocchio](!&amp;#13;#Evileye) [Sonno](!&amp;#13;#Slumber) }}
1693751975
timmaugh
Forum Champion
API Scripter
Because of the order of operations, macros will be expanded before the query is parsed, so all of the verbiage from both macros will be in the command line. That means that the right-braces in the included macros will act as a "terminator" to the query closure (the first one detected)... and commas and vertical pipes will act to advance the query option (from 1 to 2, 2 to 3, etc.). There is a way to work around this with Fetch and ZeroFrame if scripts are available, but without them Vince's suggestion is the best option.
I'd rather a drop-down but it could worth a chat menu!! thank you!!
timmaugh said: Because of the order of operations, macros will be expanded before the query is parsed, so all of the verbiage from both macros will be in the command line. That means that the right-braces in the included macros will act as a "terminator" to the query closure (the first one detected)... and commas and vertical pipes will act to advance the query option (from 1 to 2, 2 to 3, etc.). There is a way to work around this with Fetch and ZeroFrame if scripts are available, but without them Vince's suggestion is the best option. Thank you!! I'm a free user and I think a can't use a script