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

Rollable Table: How to refer to one specific table item?

The following seems like a basic thing to do, but I haven't found a way to accomplish this so far. Let's consider a rollable table with several table items. I roll on it with [[1t[table-name]]] and let's say that roll returns table item 3. As a result its name is displayed as a text like this: "Something happens. In case of a specific circumstance, see table item 2 ". I want the part " table item 2 " to be a link to the respective table item, returning its name/text when being clicked. So in a nutshell, I am looking for a link to "roll" on a rollable table where I already know what the result will be.  Thanks for your help.
1585735599
GiGs
Pro
Sheet Author
API Scripter
You cant do this with rollable tables. There's no way to pick specific items. As a Pro user, you could do this with a custom API script, but I dont know if any such script has already been written.
Any hints of how to achieve that e.g. in the context of, or an extension to, the RecursiveTable script, would be much appreciated. Thanks. 
1585747649
The Aaron
Roll20 Production Team
API Scripter
If you're using RecursiveTable, there's an easy but not obvious way to do this, but it requires a bit of additional setup. When creating your parent table, table-name , each of it's table items will contain another roll on a table specific to that table item entry, and which only has one entry: table-name: [[1t[table-name-item-1] ]] [[1t[table-name-item-2] ]] table-name-item-1: Something you want to refer to table-name-item-2: Something else you want to refer to To refer directly, you just role on the specific item table: [[ 1t[table-name-item-2] ]] To roll on the full table: !rt [[ 1t[table-name] ]]
Ah, clever. That will do the trick. Thanks a lot. 
1585749841
The Aaron
Roll20 Production Team
API Scripter
No problem!  If you don't have too many to do, making a character to represent the table with abilities for each of the table rows (which just roll on them) makes it easy to use ability command buttons to selectively output the contents.