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

Way to show picture in inline roll

As in title. I made a rollable table with entries containing pictures. When I roll it normally it shows picture but in a usual messy way. Using inline shows only the name of the entry, no picture. How to show picture in inline rolls?
1476369420

Edited 1476372862
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Without the API, it isn't possible as far as I know. If all you want is the picture, then Silvyre came up with a slick workaround a while back (can't find the exact post now). Find the html address of the picture you want (you can do this by right clicking an image in your library and opening it in a new window. Make sure to change the "thumb" part of the image url to "max" and remove the "?##########" that comes after the image tag. Example url before modifications: <a href="https://s3.amazonaws.com/files.d20.io/images/23613384/NPlJmQNuO6JsRvvAc53ddQ/thumb.png?1475105831" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/23613384/NPlJmQNuO6JsRvvAc53ddQ/thumb.png?1475105831</a> After Modifications: <a href="https://s3.amazonaws.com/files.d20.io/images/23613384/NPlJmQNuO6JsRvvAc53ddQ/max.png" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/23613384/NPlJmQNuO6JsRvvAc53ddQ/max.png</a> Now go to&nbsp; tinyURL . Copy your modified picture URL into the "enter url" text box there and use the custom alias option to make your address for each picture have a number somewhere in it (same place for all pictures for a given table. And make sure it ends in an image tag (.jpg, .png, or .gif). Now to display the image in chat use the embed html link syntax for chat: [Text to display](URL) In this syntax, if the url ends in an image tag, it will display the image instead of the text that is between the square brackets. To mimic a rollable table, you will do: [Text to display, doesn't matter for image]( <a href="http://tinyurl.com/ImageTable[[1d6]].jpg" rel="nofollow">http://tinyurl.com/ImageTable[[1d6]].jpg</a> ] The inline roll is resolved prior to the link, and so you should be able to get random images to show up. It's a lot of setup, but I think it is the only way to do what you are asking for, hope it helps Scott EDIT: Gah, nvm, tinyurl doesn't play well with image tags at the end of their made addresses. If you can find a shortening service that does allow it, then the above would work. EDIT the Second:&nbsp; Found the thread with Silvyre's post in it . This apparently only works if you embed it in an&nbsp; API Command Button (does not require API or Pro Membership). Instead of making the tinyUrl have the image tag on it, you make the tinyUrl without the image tag. then when you enter it in the embed link syntax you add a fragment onto the end with the image tag: [Generate](!&amp;#13; &amp;amp;#1; [White Wraith]( <a href="http://tinyurl.com/testerimage[[" rel="nofollow">http://tinyurl.com/testerimage[[</a> [[1d1]] ]]#.png&amp;#41;) Maybe Silvyre will stop by and explain why it requires the API command button ( or more likely one of those html replacements is required to make it work; my money's on the &amp;amp;#1; ) and if there is a way to get it to work outside of them.
1476374235
Silvyre
Forum Champion
Scott C. said: Maybe Silvyre will stop by and explain why it requires the API command button The ACB is a means of turning inline rolls into plain text. I've since discovered another method; using unmatched inline roll brackets. [[ [White Wraith](<a href="http://tinyurl.com/testerimage[[" rel="nofollow">http://tinyurl.com/testerimage[[</a> 1d1 ]]#.jpg)
1476374312
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
ha, knew you'd have something up your sleeve Silvyre.
Is there a way to apply that to rollable tables?
1476379734
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
You would do this in place of your pictorial rollable tables. There isn't a way short of a custom script in the API to have the picture from the rollable table displayed in an inline roll.
1476381324

Edited 1476381406
Gold
Forum Champion
However you CAN roll a Rollable Table when it is a Rollable Table Token on the map page as a way to show the resulting image in much larger size on the tabletop. &nbsp;Downside: This method is not in the chat and shows nothing in the chat, and it is not inline with any text. &nbsp;The advantage of this method is that you can "roll" the Rollable Table token (on the map) and show the full size image that results, but again it will be showing the full size image on the tabletop not in the chat, and it has no text or numbers just the picture(s). To do this method, create your Rollable Table, then click the "Token" button by it. This puts a token (icon) of your Rollable Table in the middle of the tabletop. From there you can resize it and move it around like any other token, you can even give it a name and bars if you want. Now right-click on the Rollable Table Token that's on your tabletop, and use "Choose Random Side". Doing this will "roll" the token to show a random picture from the Rollable Table. Wiki docs for this, <a href="https://wiki.roll20.net/Card_Decks_and_Rollable_Ta" rel="nofollow">https://wiki.roll20.net/Card_Decks_and_Rollable_Ta</a>... The reason I'm using this method in my game is because I agree with&nbsp; Biały , the output display of rollable tables in the chat room is extremely small for showing the picture, and it includes extraneous information like = 0 that we don't need in my game.
1476383035
The Aaron
Pro
API Scripter
Minor correction, it does output to the chat in the same obnoxious format. =( One other caveat: it doesn't preserve the weights of rows from the table. Each image has an equal chance.
1476383533

Edited 1476384047
Silvyre
Forum Champion
The Aaron said: One other caveat: it doesn't preserve the weights of rows from the table. Each image has an equal chance. Good to know! /talktomyself prevents the Text Chat output from rolling Rollable Table Tokens. This also (beneficially?) prevents the context menu from closing after clicking 'Random Side'. (Edit: added this to the Wiki.)
1476384802

Edited 1476384871
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
You could also probably use rollable tables in place of the inline dice roll as long as you started each table entry with a number (1 - however many different images there are) as an inline table roll resolves to a number if the table entry starts with a number or the table entry text if it does not(0 for the purposes of calculations). This would allow you to preserve your table item weights without needing to make duplicate links for any images that had a weight higher than 1.
1476384804
Gold
Forum Champion
Both interesting findings, The Aaron and Silvyre. Confirmed, I saw the same. We have 2 good Suggestion threads going for improvements to Rollable Tables. Please add your Comments and Vote +1 if you agree, it would be great to get some traction and development in this area. Prettier Rollable Tables Improvements to Rollable Tables