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

Pathfinder Community Sheet - Using Header Images or Images in General

What do I write in a macro to use the header images like pf_spell or pf_generic? What would I add to the following macro to have the header image in it: &{template:default} {{name=Initiative}} {{@{selected|character_name}}} {{ Base Initiative: @{selected|bar3}}} {{Final Initative:[[1d20+@{selected|init} &{tracker}]]}} I tried changing the template to&nbsp;&{template:pf_generic} and it changes how the output looks but doesn't include the image (and yes I checked the checkbox in settings to use the image). SO how do I use images in the roll templates? what can I add to my macro to use say this&nbsp;<a href="http://imgur.com/phw1eFB.png" rel="nofollow">http://imgur.com/phw1eFB.png</a> in the output?
1522831992
James W.
Sheet Author
API Scripter
To include images, you need to format it as a link; any link that ends in ".png", ".jpg", ".jpeg", or ".gif" will automatically insert the image into chat. For any of the PF community sheet templates, what you want to add is {{header_image=[This text doesn't matter]( <a href="http://imgur.com/phw1eFB.png" rel="nofollow">http://imgur.com/phw1eFB.png</a> )}} For the default template, the {{name}} property is the only thing that's put into the header, so you'd need something like {{name=Initiative [This text doesn't matter]( <a href="http://imgur.com/phw1eFB.png" rel="nofollow">http://imgur.com/phw1eFB.png</a> )}}
Thank you so much I got it working now! The issue I was having was I wasn't using square or standard brackets like [ ] or ( ) in the header_image field so I was basically doing this: {{header_image=Initiative | <a href="http://imgur.com/phw1eFB.png" rel="nofollow">http://imgur.com/phw1eFB.png</a>}} Now that I'm using the brackets it works. I was reading the instructions on the character sheet and it had the brackets but I wasn't certain if it had to be included or it was just a placeholder for the variable there. Anyways thanks so much for this you were a major help! Cheers!
While I got you here where can I find more information on formatting templates and changing the color of stuff? For instance how can I change the color of this variable:&nbsp;{{name=Initiative}} is it possible to do change the color of the "name" field inline without having to do a CSS template that's unique for that?
1522834229

Edited 1522834550
MyRoll20Stuffs
API Scripter
I have another question that I don't want to start a new thread for if I can just get it answered here. I have this macro: &{template:pf_generic} {{header_image=[Perception]( <a href="http://i.imgur.com/UxYSva8.png" rel="nofollow">http://i.imgur.com/UxYSva8.png</a>)} } {{name=Perception}} {{@{selected|character_name}}} {{Perception Roll:[[1d20+@{selected|Perception-Check}]]}} But it's not adding the characters perception kill to the d20 roll. Is&nbsp;@{selected|Perception-Check} the wrong variable? What am I doing wrong? EDIT: I've tried&nbsp;@{selected|Perception} and that's not working either not sure what i'm doing wrong it's only showing the d20 roll results not with the addition of perception.
I got the Perception macro working now: &{template:pf_generic} {{header_image=[Perception](<a href="http://i.imgur.com/UxYSva8.png" rel="nofollow">http://i.imgur.com/UxYSva8.png</a>)}} {{name=Perception}} {{@{selected|character_name}}} {{Perception Roll:[[1d20 + @{selected|Perception}]]}} So now my only question is how you change colors of text inline without having to write a CSS template specifically for that macro.&nbsp;
1522919637

Edited 1522919646
GiGs
Pro
Sheet Author
API Scripter
I'm pretty sure you cant change the colours of text inline, without a rolltemplate or the API. You are an Pro user, so you could look into using the Power Cards script, which enables a vast range of formatting.
1522928621
Natha
KS Backer
Sheet Author
API Scripter
Kastion said: So now my only question is how you change colors of text inline without having to write a CSS template specifically for that macro.&nbsp; This is not possible on Roll20, as GG said (though perhaps a local javascript but that would apply only to your session) or PowerCards/the API, for all the players.
Didn't even know I could add images to templates....&nbsp; &nbsp;MUAHAHAH