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

Parsing Rollable Table Output?

Ok, I'm sure this is covered somewhere and that I'm simply doing this wrong but I'm going to dive right in as my search turned up a lot of unhelpful posts. What I am trying to do is create a table that can be rolled against to return a result and a description of that result. Such as: Overload: An overload occurs - Weight 1 Lock Up: The device locks up and must be rebooted - Weight 3 etc. So far it seems the only way to accomplish this is to nest that all in the name entry on the add item portion of the table. The problem I have with this is that when I roll the table the output I get looks like: rolling 1t[Anti-Tech-Aura] ( Boogered: The device locks up, requiring a reboot. This usually takes 1d6 minutes for most devices.) = 0 What I'm wanting it to output is more like: So and So experiences Boogered: Description of the effect I assume at least part of this is to nest the roll into a macro that sets up the output regarding @{Selected|name} exeperiences [table results], but as the output for the table is so ugly even using this results in the same output as the player simply rolling the table to begin with, complete with the 1t[tablename] and the =0 at the end. Is there any way to achieve the output I'm looking for using simply macros or am I once again in the realm of wanting an API script.
1405528654

Edited 1405528719
The Aaron
Roll20 Production Team
API Scripter
try doing this: @{Selected|name} experiences [[ 1t[Anti-Tech-Aura] ]]
Next stupid question regarding table output. If I want a Table to return text that includes dice such as "3d6 guests +2 Special guests" but I want it to return the text not a computed roll is there any way to have it do that using the [[1t[Tablename]]] format? When ever I run it all I get for output is the result of actually executing the dice roll and all the text is obfuscated and has to be moused over for detail.
1405638519

Edited 1405638543
The Aaron
Roll20 Production Team
API Scripter
Good question. Try putting the text in the table as: "3d6 guests + 2 Special guests"
Nope, that just throws syntax errors for symbols the dice roller tries to resolve. With the quotes: SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|\-] or [0-9] but "\"" found. Without the quotes: Could not determine result type of: [{"type":"M","expr":3},{"type":"C","text":"d6 guests + 2 Special guests"}]
1405643225
The Aaron
Roll20 Production Team
API Scripter
Ah. Just tried it out. the problem is that it starts with a number. If you put the entries in with something before the number, it will work. "Guests: 3d6 + 2 Special Guests" will work.
I swear I tried that but I'll go test that next.
Ah, that didn't work when I typed it into chat but when I actually nested it in the table and called it with the macro it worked, thanks.