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

Link text from script to a Handout?

Is there a way to hyperlink text sent to chat from an API script so that if you click on it a Handout pops up? Aaron implies that there is in this  thread .  He says a button, but how about a hyperlink from some text?  Or heck, I'd settle for a button, but I prefer text. I've searched, but my google-fu is failing me yet again.
1503541199

Edited 1503541268
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Yep, here's the showHelp function from PFC (the relevant link is bolded): showHelp = function(who){ sendChat('Pathfinder Companion','/w "'+who+'" &lt;b&gt;&lt;u&gt; [Access The Quick Reference Handout](<a href="https://journal.roll20.net/handout/'+state.PFCompanion.helpLink+" rel="nofollow">https://journal.roll20.net/handout/'+state.PFCompanion.helpLink+</a>') &lt;/u&gt;&lt;/b&gt;&lt;br&gt;OR&lt;br&gt;' +"&lt;b&gt;&lt;u&gt;[Read the User's Manual](<a href="https://docs.google.com/document/d/12OWJIiT8RWN6zeyZdpkl3d8_DY7XLVxbVL9QzxyJV_s/edit?usp=sharing" rel="nofollow">https://docs.google.com/document/d/12OWJIiT8RWN6zeyZdpkl3d8_DY7XLVxbVL9QzxyJV_s/edit?usp=sharing</a>)"); }, You can also link to characters by replacing handout &nbsp;with character . EDIT: The state.PFCompanion.helpLink stores the id of the handout in question.
1503542694
The Aaron
Pro
API Scripter
The same thing works for links in chat. You could just type: [the handout](<a href="https://journal.roll20.net/handout/&lt;ID" rel="nofollow">https://journal.roll20.net/handout/&lt;ID</a>&gt; You can get the ID pretty easily from the external journal.&nbsp;
Thank you for the input! I'll test it out Friday.