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

Is there a macro that links a Description, with an image attached that opens a handout?

I found a macro that allows the players to whisper themselves information linked to Map Tokens and click a link to the handout of said token. My question refers to making this clickable link a picture instead of text, and open the handout I have linked.
Current Macro:

/w ?{enter your name} &{template:default} {{name=@{selected|token_name}}}

{{@{selected|bar1} [***Click Here To Learn More***](@{selected|bar1|max})}}


Bar 1 has a line of text describing the location, bar1 max has the link to the handout.

March 23 (5 years ago)

Edited March 23 (5 years ago)
vÍnce
Pro
Sheet Author

I don't think you can make a hyperlink of an image the way roll20 currently allows images in chat.

ie [x](<URL>) 

I think the best you can do is simply post the image as well as the link to the handout. ;-(

/w ?{enter your name} &{template:default} {{name=@{selected|token_name}}} {{[x](https://s3.amazonaws.com/files.d20.io/images/72116248/LYw96bK7KLJyyodTz5T6pw/thumb.png) @{selected|bar1}}} {{[***Click Here To Learn More***](@{selected|bar1|max})}}



March 23 (5 years ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

Yeah, I don't think that you can make an image link into a button that does anything other than open the image.

Gotcha, I might be able to work with that then. Thanks both of you for helping! 

Keith, can this be used to help?  It seems related, but I can't quite get my head around how to make it work.

March 24 (5 years ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

That's to display an image in text. AFAICT, the OP is asking to use an image as a button. I.e. click on an image to invoke a command. I could be misunderstanding, though.