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 Returning 0 Bug

1736922307

Edited 1736977647
I've been experiencing this bug where my rollable tables through RecursiveTables are only returning a value of '0', instead of a table item. I see that this was a bug first reported by TheAaron 6 years ago , but it seems like it is still around! The interesting thing is that it seems like as long as all your rollable table rolls have a nested inline roll, it works. So writing [[ 1t[table] ]] as [[ [1d1]]t[table] ]] seems like it will always work, as long as all tables are written that way.  That's just a guess, it might just make it more subtle.  I'm updating all of my treasure tables , and at this point, my macros are completely useless because I've added some complex nested inline rolls, and every result after the first one is showing up as a '0',  I'm hoping there is some kind of resolution, or possible suggestion on how to workaround this bug! I've tried replacing every [[ 1t[TableName]]] with [[ [[1d1]]t[TableName]]] but that's not working either - the workaround that TheAaron suggested might work does seem to only make it more subtle. Other threads referencing this bug:  Recursive Tables (!rt) output returning 0 Creating 1 Click Treasure Tables in Roll20 [Script] RecursiveTables -- Expands Inline Rolls in Rollable Table Results RecursiveTable macro returns 0 randomly .
1736924247
The Aaron
Roll20 Production Team
API Scripter
Can you check if it still fails on the Experimental API Server?  I updated the dice parser there so I'm curious if that affected it. 
Yeah it's still failing on the Experimental API Server as well.
1736928922
Boli
Pro
API Scripter
Out of interest, does the data in the rollable tables start with a number? I know that messes up the script. E.g. '5 gp' won't work but 'a bag containing 5 gp' will. I can't remember exactly how it fails; but i do remember changing a lot of my rollable table entries to make sure it didn't start with a number.
Boli said: Out of interest, does the data in the rollable tables start with a number?  Nope, none of the rollable table items start with numbers. 
1738642612
The Aaron
Roll20 Production Team
API Scripter
I believe this should be resolved now! <a href="https://app.roll20.net/forum/permalink/12224553/" rel="nofollow">https://app.roll20.net/forum/permalink/12224553/</a>
Awesome awesome awesome!&nbsp; I'll let you know if I have any more issues!