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

[Script] Recursive Tables issue

1589766457
Pat
Pro
API Scripter
Script is working fine, but I think I have found an obscure parser problem.  RT is having trouble parsing this line: **Minor:** [[[[d4]]t[Minor-Enchantments]]] **Major:** [[[[d3]]t[Major-Enchantments]]] **Relic:** [[[[d2]]t[Relic-Enchantments]]]  "Minor" and "Major" tables roll fine, but "Relic" always returns a zero If I take the text formatting off and make the line look like this: Minor: [[[[d4]]t[Minor-Enchantments]]] Major: [[[[d3]]t[Major-Enchantments]]] Relic: [[[[d2]]t[Relic-Enchantments]]]  I get proper results from all 3 tables. The text formatting works fine with 2 table calls on the line, but the third one appears to confuse the parser
1589806305
The Aaron
Roll20 Production Team
API Scripter
I think you're hitting this obscure Roll20 bug:&nbsp; <a href="https://app.roll20.net/forum/post/6778746/api-sendchat-returns-bad-results-to-callback-with-rollable-tables-expressions-with-inline-rolls" rel="nofollow">https://app.roll20.net/forum/post/6778746/api-sendchat-returns-bad-results-to-callback-with-rollable-tables-expressions-with-inline-rolls</a> If all your table rolls use an inline dice roll (even just a constant) it should prevent it.