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

ColorEmote and RecursiveTables

Naturally a big fan of The Aaron's work, but I'm a little stuck using some of the APIs. I'm not a coder but can usually figure things out with a bit of trial and error and I've had a look across the forums but can't seem to find anyone who has the same issue so I was wondering if anyone could point me in the right direction. I'm looking to use ColorEmote to output some choice language constructed from two tables.  In my example, I am only calling one as I was trying to simplify to work out what was happening... Using !cem [[1t[ExpressionsOfOuch1] ]] returns a nice-looking chat box with "0" as the text. So I tried to use RecursiveTables to deliver the raw text to ColorEmote, however, I can't seem to get them to work in conjunction properly. !rt !cem [[1t[ExpressionsOfOuch1] ]] parses the text nicely but seems to break ColorEmotes ability to detect colour (assigned to aura) and token. However, !cem !rt [[1t[ExpressionsOfOuch1] ]] keeps the ColorEmote features but fails to parse the table correctly (never triggering RecursiveTables at all) Would anyone be able to provide insight or if this is even possible? Thank you :)
1637127352
The Aaron
Roll20 Production Team
API Scripter
Hmm.  The issue is that when you call it with !rt !cem, the calling playerid doesn't transfer to the color emote command.  The easiest way around this is to specify an explicit character with: !rt !cem [@{Some Character|character_id}] [[1t[ExpressionsOfOuch1] ]]  If you need to use a player, you can use Tim's Zero Framework to get it done, though I'll defer to Tim over the actual syntax. =D
Thank you very much for your help! I had to change the parse to the character sheet as well but it is working smoothly now. Felt foolish once I went back into the help menu to change the parse order and saw this very syntax right there... Thank you anyway - you must have a lot of patience :)
Heads up for you, I'm not a forum person and don't know how to make sure a post will get to the folks I would like it too. I apologise for hijacking your post but it's the only thing I can think to do (I am very sorry) I just upgraded to Pro as of a few hours ago and was doing some googling on rolling tables as I am planning on relying on them heavily in an upcoming campaign. This lead me to the 2.5 update notes for the RecursiveTable API which looks like an amazing tool and would be a massive help for my project. The problem I have is that I am struggling to find some earlier documentation regarding it. I have no idea how to use this API though I am really interested in learning! My coding skills are next to 0 (I have done the first few lessons of the Codecademy JavaScript course in hopes to begin understanding the API system a little better). If anyone can point me towards some information that they feel would be helpful it would be greatly appreciated. TLDR: Me stupid. Anyone help me learn RecursiveTable API? Please and Thank
1638510298
The Aaron
Roll20 Production Team
API Scripter
Start here:&nbsp; <a href="https://app.roll20.net/forum/post/7844658/script-update-recursivetable-now-with-rollable-table-images-and-better-prefixing-rules-for-roll-templates" rel="nofollow">https://app.roll20.net/forum/post/7844658/script-update-recursivetable-now-with-rollable-table-images-and-better-prefixing-rules-for-roll-templates</a> Toward the end of the post, there's a link to the prior thread. Toward the end of that post, there's a similar link and so on.&nbsp;
The Aaron said: Start here:&nbsp; <a href="https://app.roll20.net/forum/post/7844658/script-update-recursivetable-now-with-rollable-table-images-and-better-prefixing-rules-for-roll-templates" rel="nofollow">https://app.roll20.net/forum/post/7844658/script-update-recursivetable-now-with-rollable-table-images-and-better-prefixing-rules-for-roll-templates</a> Toward the end of the post, there's a link to the prior thread. Toward the end of that post, there's a similar link and so on.&nbsp; Thank you very much. I am getting stuck in nicely as my understanding continues to grow!