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

Pulling Journal entries from a rollable table

Hello! I'm trying to make a rollable table i can access from the chat area that links to journal entries. my goal is to make a macro that will allow me to generate an NPC name and link it to a random journal entry i plan to use as a generic stat block.  i just cannot figure out how to make a rollable table with a link, nor can i figure out how to link a journal entry from within my own game.  Any help would be ideal! a note; I know nothing about coding or programming, so im kinda just stumbling my way through this, if you have a suggestion please explain it to me like im 5 and assume i dont know what you are talking about.. thanks in advance!
1680579973

Edited 1680583256
Gauss
Forum Champion
I am 99% sure that you cannot use a rollable table as a link to a journal entry. But perhaps there is a "stupid trick" for doing this that I am unaware of so, maybe someone else will pipe up with one.  Edit: and of course Mods (API scripts) As for linking to journal entries  HERE  you go.  In short, put "[character or handout name]" (without quotes) and it will link to that character or handout. 
1680582820
timmaugh
Forum Champion
API Scripter
You can use a ZeroFrame trick for linking to journal entries... with one intervening step: y ou can link to characters or handouts using buttons (which you then click). Create a button to a character like this: [Character](<a href="http://journal.roll20.net/character/-MYm78WQ-4Is70X7-UN7" rel="nofollow">http://journal.roll20.net/character/-MYm78WQ-4Is70X7-UN7</a>) And create a button to a handout like this: [Handout](<a href="http://journal.roll20.net/handout/-Mk8nWiHquPYYeHfYk8F" rel="nofollow">http://journal.roll20.net/handout/-Mk8nWiHquPYYeHfYk8F</a>) Obviously what is between the brackets is your button label... and you'll have to replace the ID portion of the URL with the appropriate URL of the thing you want to link to. Then roll against the table in a bangsy message (starting with a !) and include a {&amp;simple} in it: ![[1t[TableOfButtons]]]{&amp;simple} You will get a button in chat with the appropriate link target. Clicking it should open the character/handout you've specified. All button formations should work with this: [Ability](~Character|AbilityName) [Script](!scripthandle --args|value) [Macro]( !&amp;#13;#MacroName)
Thank you all a ton, this was a wonderful help!