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

Recursive tables

1690052494

Edited 1690052610
F P.
Pro
So I'm trying to build recursive tables to roll for random magic items and I'm not having much luck figuring out what I'm missing: From a macro I'm trying to call a treasure table.  This part works: !rt /w gm &{template:npcaction} {{rname= Treasure Hoard }} {{name= Challenge Rating: 11-16 }} {{description= [[4d6*1000]] GP [[5d6*100]] PP [[1t[Hoard-CR5-10]]] }} Now, within the treasure hoard table, I'm trying to call the "art objects" table.  If I just make the die roll recursive, I get the die roll properly showing a return of <die roll> 250 GP art objects.   [[2d4]] 250-GP-Art-Objects Trying to then get it to actually roll on the art table and return those results seems to break it though.  I'm sure it's just a syntax error but I can't seem to figure it out.  Any ideas what I'm doing wrong? !rt [[ [[2d4]] t[250-GP-Art-Objects] ]]
I think you might just need to remove the space:&nbsp; !rt [[ [[2d4]]t[250-GP-Art-Objects] ]] Also if you don’t want to the recreate the wheel, I have a post with a couple options for D&amp;D 5E Treasure tables:&nbsp; <a href="https://app.roll20.net/forum/post/10489371/creating-1-click-treasure-tables-in-roll20/?pageforid=10490102#post-10490102" rel="nofollow">https://app.roll20.net/forum/post/10489371/creating-1-click-treasure-tables-in-roll20/?pageforid=10490102#post-10490102</a> You can read further down that thread for a script option to import a Macro Mule character for treasure tables.&nbsp;
1690072297

Edited 1690073764
F P.
Pro
No, definitely doesn't seem to make any difference with or without the spaces. /roll [[2d4]]t[250-GP-Art-Objects] works when typed directly in the chat... i.e. it rolls 2d4 rolls on the table and provides results in the chat.
1690075653
The Aaron
Roll20 Production Team
API Scripter
What's the output from just: [[ [[2d4]]t[250-GP-Art-Objects] ]]
1690077750

Edited 1690078487
F P.
Pro
That works though it only shows the first item rolled from the table rather than all of the items.&nbsp; When I hover over the result, I see all the rolls.