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

Internal links in chat?

Is it possible to put internal links in the chat window?  I have a script that does random encounters and would be good if it spat out the related link in the chat window when it generated the encounter.  For example [[1d4]] goblins where goblin would like to a handout/monster statblock. Thanks.
1474125450
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Yes, it will require  Aaron's Recursive Tables script though. The url setup is a little annoying, but what you will want to do is setup a  journal link to the character sheet/journal entry in question. You do this by putting the name of the journal entry you are linking to in single square brackets: [journal entry name here]. Save the journal entry, now right click on the created hyperlink text and copy the link address; you can now utilize the chat embedded link syntax, [display text](url) and put it into your table item name where you would have had "goblins" for instance. So your goblins entry would look like this: [[1d4]] [goblins](roll20JournalURL) I use this setup extensively for my random item generation table series to link to the details on a magical ability or weapon type on d20pfsrd.com.
1474133900
The Aaron
Pro
API Scripter
Note: you only need RecursiveTables for this if you are going to generate the random encounters from a rollable table (which I think you are from other threads, but for clarity for other readers...).
1474139000
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
good clarification Aaron. And I have another one since I realized my post wasn't clear; you need the script both to expand the inline roll and to have the embedded link syntax parsed into an embedded link.
Great, thank you both.  Will experiment.