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

Compendium links in rollable tables

I've built some random encounter tables and would like to link to the monster stats from the compendium directly.  For example if I roll 2d4 orcs, I'd like the "orcs" text to link to the compendium page.  I've found a couple of suggestions in the forums but haven't been able to find the actual URL for the compendium pages.  I'm sure this is an easy solution I'm overlooking but I'd appreciate anyone pointing me in the right direction.
1652406936

Edited 1652407484
F P.
Pro
I found it!&nbsp; Now I just have to edit 1400 lines of table entries... In case anyone else has the same issues I did, here's what worked for me.&nbsp; It does require the Recursive Tables API script. Rollable table entry format 1 [Abominable Yeti]( <a href="https://roll20.net/compendium/dnd5e/Abominable%20Yeti#content" rel="nofollow">https://roll20.net/compendium/dnd5e/Abominable%20Yeti#content</a> ) A recursive table roll of: !rt /w gm &amp;{template:default} {{RandomEncounter=[[1t[new-table]]]}} yields the following return in the chat window: clicking on the "Abominable Yeti" text brings up the compendium page linked in a new window: To find the individual links, I just opened the appropriate compendium in a new browser window and searched for the creature I wanted then copy and pasted the URL from there.
1652423767

Edited 1652423789
Brian C.
Pro
Marketplace Creator
Compendium Curator
For any general compendium links, you can just put the following in front of the name of the item: <a href="https://roll20.net/compendium/dnd5e/" rel="nofollow">https://roll20.net/compendium/dnd5e/</a> You can also omit use a space instead of %20 (at least for handout links). The #content isn't needed either and will clean up the title of the window that pops up. If you keep the url prefix in a handout, you can quickly copy it and use it whenever you need a compendium link. As long as you have the name right, the link will just work. So our yeti would be <a href="https://roll20.net/compendium/dnd5e/Abominable" rel="nofollow">https://roll20.net/compendium/dnd5e/Abominable</a> Yeti .
1652565918

Edited 1652582862
F P.
Pro
Thank you, @Brian C.&nbsp; That's good information to have and understand. Now I just have to get my table imports to stop changing my rolls into $[[0]] and I'll be golden. Follow-up question.&nbsp; It occurred to me that linking to token might be nice or embedding the token into the chat would be very cool for the DM to just drag it to the screen.&nbsp; Is this possible?&nbsp; My searches don't seem to turn up anything.
1652605762
Brian C.
Pro
Marketplace Creator
Compendium Curator
F P. said: Thank you, @Brian C.&nbsp; That's good information to have and understand. Now I just have to get my table imports to stop changing my rolls into $[[0]] and I'll be golden. Follow-up question.&nbsp; It occurred to me that linking to token might be nice or embedding the token into the chat would be very cool for the DM to just drag it to the screen.&nbsp; Is this possible?&nbsp; My searches don't seem to turn up anything. You're welcome. Someone knowledgeable with the nested tables API would have to help you with the roll, although it might help to post what the entry and roll is that is getting converted. You can link images into the text chat. See&nbsp; <a href="https://app.roll20.net/forum/post/5899495/roll20-tips-and-tricks-innovative-solutions-to-common-problems" rel="nofollow">https://app.roll20.net/forum/post/5899495/roll20-tips-and-tricks-innovative-solutions-to-common-problems</a> . It's in there somewhere.