
Hi jonathan.
Are you asking about posting GIF images into the chat room with the Image macro command?
Rollable Table is a way to randomize things. I am not sure if the Image macro command will render if called from a Rollable Table. Let's test and see.
Wiki docs,
https://wiki.roll20.net/Collections#Rollable_Tables
https://wiki.roll20.net/Text_Chat#Basic_Formatting
Ok so for e.g. under my character sheet > spells> edit spell > description: [insert any text](url of gif) . that gives the ability to add gifs to spells I cast. I just wanted to know if there was a way to add multiple gifs that would be selected at random when I cast the spell as a player?
Yes. I'd say best possibility is try to put your
[insert any text](url of gif)
into a Rollable Table (under the Collection Tab). Let's say for example if you name the Rollable Table "Random Fire Graphics" and put all the random images in there using the GIF-displaying code you have.
Then put
1t[Random-Fire-Graphics]
in your Character Sheet > Spells > Edit Spell > Description. To roll the rollable table and produce one of your image-codes randomly selected.
See if that works. I'm not sure if Rollable Tables support rendering the Image code. This seems like the most likely way to accomplish it.
I can research, test, and find out if that would work, if that would help more.
I've tried some options myself for it. Trying it that way the code seems not to make the spell roll on a table. I tried this [[1t[Random-Fire-Graphics]]] and it has rolled on the table but it has not displayed any url gifs and for some reason I cannot add icons or gifs into the table icons. Its weird because I remember being able to do so before. So essentially when I would cast like alarm for example I would get this
What about taking the frames out of the GIF and putting them in the rollable table (so that the resulting PNGs are actually stored within the rollable table on Roll20's server)? I am not very good with the Roll20 macros or API, but I would assume that a macro would then be able to not only reference the picture but associated text as well.
Animated GIFs do not work in Roll20, and GIFs in general do not always play well with Roll20. Use a JPG or PNG.
Brother Castor said:
I've tried some options myself for it. Trying it that way the code seems not to make the spell roll on a table. I tried this [[1t[Random-Fire-Graphics]]] and it has rolled on the table but it has not displayed any url gifs and for some reason I cannot add icons or gifs into the table icons. Its weird because I remember being able to do so before. So essentially when I would cast like alarm for example I would get this
Try adding #.png to the end of the URL.
[ded](https://media.giphy.com/media/STeu8ICZgDUXK/giphy.gif#.png)
Rabulias said:
Animated GIFs do not work in Roll20, and GIFs in general do not always play well with Roll20. Use a JPG or PNG.
They have worked fine in the Chat for years. My groups post dozens of GIF's every week we play. The format may be unsupported, but it generally works fine in chat with the image code. They just don't work on the tabletop / Library / Uploads / Bio / Sheets.
My preferred method for doing this takes some setup, but displays much nicer than doing it via rollable table would. Additionally, rollable tables can't display images when rolled inline. So here's my preferred method (which I really need to add to Keith's Stupid Tricks Thread):
[Image[[](http://tiny.cc/image_swap_demo_[[1d4]]#.gif)
The double open brackets in the image title (i.e. [image[[]) are there to force the dice roll to display as plain text so that the link works correctly.
This will give you an image based on your die roll:
I've done it with .png's here, but it works with .gifs as well (and in fact, you can see that is what I used as the file type extension in the link (i.e. #.gif). As an added bonus, this method means that you just need to copy your macro between games instead of having to deal with recreating a rollable table in the new game, or having to ask your GM to setup a rollable table for you.
Gold said:
They have worked fine in the Chat for years. My groups post dozens of GIF's every week we play. The format may be unsupported, but it generally works fine in chat with the image code. They just don't work on the tabletop / Library / Uploads / Bio / Sheets.
Thanks, Gold. My comment was about the tabletop. I did not think about folks generating images into chat.