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 an 'Item' roll from another table?

I'm not the best when it comes to Macros and Scripting. Recently I've been making some tables to try to streamline some generating of encounters, loot, and events for my game. I am able to get some basic Macros and Tables set up, but then I got an idea to streamline some things. I wanted to try to have certain tables pull from and roll on other tables as part of a roll, but I lack the understanding or skills to properly set up the script for it. For example, I have a macro to roll on multiple tables as part of determining what my players encounter. Part of this is a roll to determine if the creature is holding something. /gmroll [[d100]] [[1t[Shiny]]] [[1t[Size]]] [[1t[Natures]]] [[1t[Gender]]][[1t[Abilities]]] [[1t[Poke-Loot]]] A thought came to my mind 'What if I was able to streamline this, and instead of being told 'that this thing is holding a berry' the script went one step further and rolled on my berry table?' Following instructions from the Recursive Tables scripts and tools, I tried multiple attempts to get the 'Item' rolled on a table roll on a separate table but to no avail. !rt &{template:default}{{[[1t[Random-Berry]]]}} Whenever I try to make the Item roll the table, I just get the script spat out as the Roll Result. I don't know what, if anything, I'm doing wrong. Is my idea even possible?
I'm guessing it's the 'Poke-Loot' table that lists the items that the creatures might be holding, and you want to roll from the sub-table automatically?  If that's the case, then the item in the 'Poke-Loot' table should be [[1t[Random-Berry]], and then the other items in the table should be with whatever other types of items you want to have in the 'Poke-Loot' table, such as [[1t[Random-Vegetable]] and [[1t[Random-Meat]].  The items in the 'Poke-Loot' table do not include the !rt command or anything else; just the rolls for the subtables.  Then the 'Random-Berry' table will have plain text items like 'Blackberry', 'Blueberry', 'Raspberry', etc.  So when you use this command: !rt &{template:default} {{ [[1t[Poke-Loot]]] }} The script will roll once on the 'Poke-Loot' table. If the result of that is the 'Random-Berry' table, then it will return the result from that table, such as 'Blackberry', 'Blueberry', 'Raspberry', etc. 
I've tried that command string before, and it sadly keeps spitting out what look to be 'error stings'
The command/macro you use needs to start with !rt. No table item should have !rt in any item. 
I see, that's where my mistake was! Thank you, the script is doing what I was hoping it would do now!