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 in nested query

When I get through the input screens, it just outputs the macro call that should be made as a string. So instead of performing #StoreWearonLarge it will output '#StoreWeaponLarge'. Am I missing something in Nesting here or is this not possible? ?{Store Size|     Large, ?{Browsing|         Weapons,#StoreWeaponLarge |         Armor,#StoreArmorLarge |         Items,#StoreItemsLarge      } |     Medium, ?{Browsing|         Weapons,#StoreWeaponMedium |         Armor,#StoreArmorMedium |         Items,#StoreItemsMedium      } |     Small, ?{Browsing|         Weapons,#StoreWeaponSmall |         Armor,#StoreArmorSmall |         Items,#StoreItemsSmall      } }
1693866324
vÍnce
Pro
Sheet Author
You'll probably need to go the chat menu route. See similar post earlier this week. <a href="https://app.roll20.net/forum/permalink/11606154/" rel="nofollow">https://app.roll20.net/forum/permalink/11606154/</a>
1693869587
GiGs
Pro
Sheet Author
API Scripter
Chat menus are a much better solution that nested queries. However, if you are intent on making a nested query, don't cll macros. Place the contents of the macro in the query. When you run a macro which contains other macros (sub-macros), those sub-macros are expanded and placed in the master macro, and then the master macro runs. if any of the sub-macros contain characters that need html substitution, the macro will break. Sp you need to copy tjem into the master macro and then modify them, to make it work.
Thanks everyone, i ended up going with the simple chatmenu approach like vInce suggested /w gm &amp;{template:default} {{name=Store Size}}{{ [Large](`#LStore) [Medium](`#MStore) [Small](`#SStore)}} then a follow up menu for each size: /w gm &amp;{template:default} {{name=Store Browsing (Large)}}{{ [Weapons](`#StoreWeaponLarge) [Armor](`#StoreArmorLarge) [Items](`#StoreItemsLarge) [All](`#StoreAllLarge)}}