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 it possible to add images to skill roll template?

Is it possible to add images (image links) within the skill roll template?  Currently we are using macros to make token actions with the image included with the roll, but would like to fit the image inside the skill roll "box"(template).  Just want it to look nicer, and less confusing, for my players.
That depends entirely on the sheet you're using and the templates it uses.
1605284730
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
If you place it in a text-displaying field, you can likely use: [any text here](Image URL here) But an example of the template and/or code you are using would help.
Thanks for the replies. Sorry I forgot to include the type of sheet. I forget there are multiple sheets and games. I am using the D&D 5E sheet by Roll20.  Currently using the  [any text here](Image URL here) format to include an image gif before/after the roll, but the image is outside of the roll template for thinking like skills and initiative. The spells, attacks, and class features have a description box, so it's easy to include image links with those that are inside the template. Here is an example where the image is inside the template: and here is an example where I cannot figure out how to get an image in the template: It's not gamebreaking as it is, but it'd be nice if the image were inside the tidy template. Any suggestions would be appreciated.
1605671362

Edited 1605672193
Oosh
Sheet Author
API Scripter
You have a couple of options - you can do a full custom macro, or you can use an overwrite: %{selected|npc_acrobatics}{{r1=[[1d20 + @{selected|npc_acrobatics}]] [img](<a href="https://s3.amazonaws.com/files.d20.io/images/28445943/cOEKuPZYqhb2PCUtvskG3A/original.png" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/28445943/cOEKuPZYqhb2PCUtvskG3A/original.png</a>)}} This rolls acrobatics straight off the sheet, then overwrites {{r1}} with an identical roll and an image: This will cut off the second roll though. I'm not sure if there's a way around that with this particular template. Edit - if you adapt the npcatk template instead, you get a description field you can use. You'll need to use a drop-down or Chat Menu for all the skill rolls for this to work, but it will display correctly when roll both d20s: @{selected|wtype}&amp;{template:npcatk} {{attack=1}} {{damage=}} {{dmg1flag=}} @{selected|npc_name_flag} {{rname=Acrobatics}} {{rnamec=Acrobatics}} {{type=Skill}} {{typec=Skill}} {{r1=[[@{selected|d20}+@{selected|npc_acrobatics}]]}} @{selected|rtype}+@{selected|npc_acrobatics}]]}} @{selected|charname_output} {{description=[img](<a href="https://s3.amazonaws.com/files.d20.io/images/28445943/cOEKuPZYqhb2PCUtvskG3A/original.png" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/28445943/cOEKuPZYqhb2PCUtvskG3A/original.png</a>)}}
Thank you for this. it will really make things nicer to look at and I would never have figured this coding out on my own.
You could also streamline this a bit, if you make an attribute named 'image' and put the URL [img](<a href="https://s3.amazonaws.com/files.d20.io/images/28445943/cOEKuPZYqhb2PCUtvskG3A/original.png" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/28445943/cOEKuPZYqhb2PCUtvskG3A/original.png</a>) code into it.&nbsp; You could repeat that for each creature you want to have access to their image (changing the image URL for each one), then create a generic macro that will work for all creatures: @{selected|wtype}&amp;{template:npcatk} {{attack=1}} {{damage=}} {{dmg1flag=}} @{selected|npc_name_flag} {{rname=Acrobatics}} {{rnamec=Acrobatics}} {{type=Skill}} {{typec=Skill}} {{r1=[[@{selected|d20}+@{selected|npc_acrobatics}]]}} @{selected|rtype}+@{selected|npc_acrobatics}]]}} @{selected|charname_output} {{description=@{selected|image}}} It would be nice if macros could access the character avatar dynamically, but since it's not a character attribute I'm pretty sure that's not possible. But The Aaron did write a script that allows you to show the character image URL, which might also help find the URL for each creature.