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 .
×
Cloudflare is experiencing elevated issues across all platforms. Load times for pages and images may be longer than expected. We are continuing to monitor the situation.

Recursive Table help

Hey, using recursive table and I'm getting "SyntaxError: Expected "[" but "r" found. undefined". The table is massive and I just cant figure out where the mistake is. HOWEVER, I'm using it to roll treasure hoards. It seems to work fine up until it trys to roll more than 2 tables at once. It rolls the gems fine, it rolls the gold, but art pieces and more than 1 magic item and it makes that error. Example, one potential roll will roll: [[6d6x100]]cp, [[3d6x100]]sp, [[2d6x10]]gp, [[[[2d6]]t[Treasure-10gpGemstones]]] That works fine, but when I roll [[6d6x100]]cp, [[3d6x100]]sp, [[2d6x10]]gp, [[[[2d4]]t[[Treasure-25gpArtObjects]]] that breaks.
1681497667
Gauss
Forum Champion
Noah F said: Hey, using recursive table and I'm getting "SyntaxError: Expected "[" but "r" found. undefined". The table is massive and I just cant figure out where the mistake is. HOWEVER, I'm using it to roll treasure hoards. It seems to work fine up until it trys to roll more than 2 tables at once. It rolls the gems fine, it rolls the gold, but art pieces and more than 1 magic item and it makes that error. Example, one potential roll will roll: [[6d6x100]]cp, [[3d6x100]]sp, [[2d6x10]]gp, [[[[2d6]]t[Treasure-10gpGemstones]]] That works fine, but when I roll [[6d6x100]]cp, [[3d6x100]]sp, [[2d6x10]]gp, [[[[2d4]]t[[Treasure-25gpArtObjects]]] that breaks. You have one too many "[" in [[[[2d4]]t[[Treasure-25gpArtObjects]]] It should be: [[[[2d4]]t[Treasure-25gpArtObjects]]]
1681497728
timmaugh
Forum Champion
API Scripter
First, the "x100" doesn't produce a number multiplied by 100... if I just put: [[6d6x100]] ...into chat, I get 6. Also,  you have an extra opening bracket on your ArtObjects roll. You have 2 opening brackets after the "t" for the table roll, not one.
1681498644

Edited 1681498693
Thank you I knew I needed another pair of eyes its been killing me
timmaugh said: First, the "x100" doesn't produce a number multiplied by 100... if I just put: [[6d6x100]] ...into chat, I get 6. Also,  you have an extra opening bracket on your ArtObjects roll. You have 2 opening brackets after the "t" for the table roll, not one. I thought that "[[ 6d6x100]]" is treated like a dice roll, do i need to space it more?
1681499279

Edited 1681499443
Noah F said: timmaugh said: First, the "x100" doesn't produce a number multiplied by 100... if I just put: [[6d6x100]] ...into chat, I get 6. Also,  you have an extra opening bracket on your ArtObjects roll. You have 2 opening brackets after the "t" for the table roll, not one. I thought that "[[ 6d6x100]]" is treated like a dice roll, do i need to space it more? The answer is yes. Man I'm bad at this -.-. It's [[6d6 x 100]]
Anyone know why the last part might be rolling a 0 in that 1d4? [[2d6 × 100]]cp, [[2d6 × 1,000]]sp, [[6d x 100]]gp, [[3d6 x 10]]pp, [[[[2d4]]t[Treasure-250gpArtObjects]]], [[[[1d4]]t[Treasure-MagItem-B]]]
1681525473
Gauss
Forum Champion
Noah F said: Anyone know why the last part might be rolling a 0 in that 1d4? [[2d6 × 100]]cp, [[2d6 × 1,000]]sp, [[6d x 100]]gp, [[3d6 x 10]]pp, [[[[2d4]]t[Treasure-250gpArtObjects]]], [[[[1d4]]t[Treasure-MagItem-B]]] Could you post a screenshot?  Also please post a screenshot of the Table.
1681537099
The Aaron
Roll20 Production Team
API Scripter
Use * for multiplication: [[ 6d6 * 100 ]]