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

Having trouble with Nested Macros calling rollable tables

I have a series of Macros and Rollable tables for determining Party Loot.  The 1st Macro lets you choose based on Party level: /w gm &{template:default} {{name=TREASURE HOARDS}} {{[0-4](~/w gm |#Hoard0-4)[5-10](~/w gm |#Hoard5-10)[11-16](~/w gm |#Hoard11-16)[17+](~/w gm |#Hoard17+) }} It displays the following in the Chat window: Clicking the generated 0-4 button should launch the following: /w gm &{template:default} {{name=TREASURE HOARD: CHALLENGE 0-4}} {{CP= [[6d6*100]]}} {{SP= [[3d6*100]]}} {{GP= [[2d6*10]]}} {{Others=[[1t[0-4]]]  [Roll Others](~/w gm |#treasures)}} Which should return the following: Clicking on the "Roll Others" Chat button is supposed to return the following Chat menu of the tables: These Chat buttons should roll from the appropriate rollable table. However, it returns the following errors in the chat window: Will someone please help me understand how to fix the syntax in order for each Macro generated Chat button to initiate the nested Macros and access the correct rollable tables? Thank you in advance for any assistance you can provide. Jason
1770686230

Edited 1770707637
vÍnce
Pro
Sheet Author
Hi Darth, does this work? (borrowed one of Keith's tricks... ) /w gm &{template:default} {{name=TREASURE HOARDS}} {{[0-4](!
 /w gm #Hoard0 - 4)[5 - 10](!
 /w gm #Hoard5-10)[11-16](!
 /w gm #Hoard11 - 16)[17 +](!
 /w gm #Hoard17+) }} edit/update: I was missing some spaces between !
 and /w. fyi:  I believe you could also use !
 instead of !

Thank you,  I tested it on the first macro and it actually let me use the Chat button and returned values. To make sure I'm reading that correctly, I need to replace every "~" with "!
" and remove the "|" in front of each macro call for it to work? Again, thank you very much for the assistance. Although I don't always know where to look on the forums to find the answers, I know someone is willing to help. I truly appreciate the Roll20 community.
1770707945

Edited 1770708017
vÍnce
Pro
Sheet Author
I believe your original macro was set up as an Ability Command button( <a href="https://wiki.roll20.net/Macros#Ability_Command_Buttons" rel="nofollow">https://wiki.roll20.net/Macros#Ability_Command_Buttons</a> ), but because it's calling macro and tables from the Collection Macros (side bar) you need to use API Command Buttons( <a href="https://wiki.roll20.net/API:Chat#API_Command_Buttons" rel="nofollow">https://wiki.roll20.net/API:Chat#API_Command_Buttons</a> ).&nbsp; I updated my example macro above because it was missing a few spaces between&nbsp;!&amp;#10; and the whisper.&nbsp;I believe you could also use&nbsp;!&amp;#13; instead of&nbsp;!&amp;#10;
vInce,&nbsp; Your original macro worked perfectly without the extra spaces. Again, I thank you so very much; you've been a major help. Jason