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

Too many rollable table calls in a single macro?

I'm trying to stack up a bunch of rollable table calls in a single macro, but for some reason it seems to dump all calls after the 16-25th or so roll (it varies, sometimes it outputs 6 sets, sometimes it outputs 7, never the full 12 I'm trying to call.) Below is the code, made as readable as I can for the forums, so those line breaks are not actually there in my final code. In total it involves 36 table rolls and outputs it to a singular template, formatted to show the type of shop on the left, and the NPC that runs it on the right. However, the output is both incorrect and inconsistent. It outputs between 5 and 7 of the lines, never the full 12, and will vary between 5 and 8 seemingly without rhyme or reason. I suspect there's something simple I'm missing, but if anyone could offer a suggestion to explore, I'd greatly appreciate it. !rt[maxdepth:100] /w gm &{template:default} {{name=Large Minor Town}} {{[[1t[Shop-Types]]]=[[1t[NPC-First-Names]]] [[1t[NPC-Last-Names]]]}} {{[[1t[Shop-Types]]]=[[1t[NPC-First-Names]]] [[1t[NPC-Last-Names]]]}} {{[[1t[Shop-Types]]]=[[1t[NPC-First-Names]]] [[1t[NPC-Last-Names]]]}} {{[[1t[Shop-Types]]]=[[1t[NPC-First-Names]]] [[1t[NPC-Last-Names]]]}} {{[[1t[Shop-Types]]]=[[1t[NPC-First-Names]]] [[1t[NPC-Last-Names]]]}} {{[[1t[Shop-Types]]]=[[1t[NPC-First-Names]]] [[1t[NPC-Last-Names]]]}} {{[[1t[Shop-Types]]]=[[1t[NPC-First-Names]]] [[1t[NPC-Last-Names]]]}} {{[[1t[Shop-Types]]]=[[1t[NPC-First-Names]]] [[1t[NPC-Last-Names]]]}} {{[[1t[Shop-Types]]]=[[1t[NPC-First-Names]]] [[1t[NPC-Last-Names]]]}} {{[[1t[Shop-Types]]]=[[1t[NPC-First-Names]]] [[1t[NPC-Last-Names]]]}} {{[[1t[Shop-Types]]]=[[1t[NPC-First-Names]]] [[1t[NPC-Last-Names]]]}} {{[[1t[Shop-Types]]]=[[1t[NPC-First-Names]]] [[1t[NPC-Last-Names]]]}}
1541480392
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Things to try: Separate the end bracket of the table call and the first of the inding inli e roll brackets with a space. This also needs to be done for any nested tablea You're using recursive tables, so I'm assuming that these tables have other rolls in them. What do those rolls look like. Can you post the output that you do get?
Sharp call, it's an issue with recursive tables. Something in my tables is awry because when I try it without recursive tables it outputs everything just fine. Never occurred to me that might be an issue.
1541506154
The Aaron
Pro
API Scripter
I’m going to guess you’re hitting some form of this 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>
Interesting! Have you found any way to work around that issue, or will I just need to forego the slightly cleaner rt formatting for this particular issue?
1541596031

Edited 1541616174
The Aaron
Pro
API Scripter
If I remember correctly, writing all rollable table references with a die roll determiner it prevents it. So: [[[[1d1]]t[table]]]