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 .
×
May your rolls be merry + bright! 🎄
Create a free account

Use of !rt with gifs

Is there a reason when using  !rt[showicons|iconlabel:off] [[1t[Tablename] ]], it does not work if the icon in the table is a gif ?
Does the gif end in a filetype that is an image like jpg/gif/png?  If not add that to the end.  Also TheAaron would know for sure but I know a few of his scripts require something funky to be done with sanitizing some stuff.  I do know that when I do apichat buttons in the tables I have to sanitize virtually everthing in the button syntax and thats basically the same syntax as a display gif.  
1643899521
The Aaron
Roll20 Production Team
API Scripter
The API in general has issues interacting with animated tokens. What issue are you seeing? Also, what is the actual command you are issuing, and what is some detail of your table setups?
images i use were uploaded to the library and are labeled .gif
OK, so here is my full macro : &{template:npcaction} {{rname= Definitely looks like the end of this nasty @{selected|token_name}}} !rt[showicons|iconlabel:off] [[1t[Dead] ]] /fx nova-blood @{selected|token_id} !token-mod --ids @{selected|token_id} --set statusmarkers|dead And here is what it does (effects are ok) 
Also, the gif I use I tied in another macro and it worked fine...but it was on a http://..  .gif shape.
1643902134
The Aaron
Roll20 Production Team
API Scripter
If I had to guess, I'd say the images are getting converted to .webm format and the standard image link format doesn't work for them since they are movie format files, not image format files.
yes, that's exactly that. I'll try do find a way out. Thanks
Just host them on giphy and use [x](url) to display them?  
in a rollable table ? dont see how...
You can post an image directly to chat by doing [x](url of gif that ends in filetypes).  Have the rollable table use that syntax and then when recursive tables spits out the template you could have it spit it out in the actual template instead of in an extra line after it.  Obviously don't use icons only since you want it to use the text field of the table.  
The wiki details on apichat buttons might be important here as you may have to sanitize a bunch of symbols for recursive tables to take the gif syntax, I think there might be a required line break in there that has to be escaped but I honestly don't remember, I know apichat buttons for macros need to be heavily sanitized for recursive tables.  And they are basically the same syntax.