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 .
×

Question: So i made some Changes on the Character Sheet

Hi, im new at this and i was trying to put some colors on the templates of 5th edition(Community contributed) i was able to do this but i also get something like this: Macro: &{template:5eDefault}{{azul=1}}{{title=@{Selected|Token_Name}}} {{subheader=|Stats|}}{{Str=[[@{Str}]]}} {{Dex=[[@{Dex}]] }}{{Con=[[@{Con}]]}} {{Con=[[@{Con}]]}}{{Int=[[@{Int}]]}}{{Wis=[[@{Wis}]]}}{{Cha=[[@{Cha}]]}}{{Pm=[[@{Pm}]]}} @{classactioncustom1skill}}} So... i dont want it to show "Azul 1" on top of all the numbers. more like this: : Macro: &{template:5eDefault}{{weapon=1}}{{title=@{Selected|Token_Name}}} {{subheader=|Stats|}}{{Str=[[@{Str}]]}} {{Dex=[[@{Dex}]] }}{{Con=[[@{Con}]]}} {{Con=[[@{Con}]]}}{{Int=[[@{Int}]]}}{{Wis=[[@{Wis}]]}}{{Cha=[[@{Cha}]]}}{{Pm=[[@{Pm}]]}} @{classactioncustom1skill}}} As you can see "{{weapon=1}} does not appear on the template and i dont know how it is that "{{Azul=1}}" I know i have to change something on the character sheet of my game, but i cant seem to find what it is. any idea on what am i missing? Maybe it is something silly but is really annoying for me.
1498742460
The Aaron
Pro
API Scripter
It will be in the RollTemplate.  weapon likely has a rule that prevents it from being shown when some other property isn't passed.  There is likely no rule for azul, so it is shown with other things for which there is no property in the default listing.  You'd need to add logic that specifically deals with azul.
I cant seem to find the logic that deals with {{weapon}}{{spell}}{{save}}{{deathsave}}{{ability}} anywhere on my character sheet.
1498751734
The Aaron
Pro
API Scripter
If you look at line 18195 of DnD_5e.html (to original community copy), it's the start of the roll template.  As you look down through that, you'll see places where weapon is referenced: <div class="sheet-rt-header {{#weapon}} sheet-weapon{{/weapon}} {{#spell}}  sheet-spell{{/spell}}{{#ability}} sheet-ability{{/ability}}{{#save}} sheet-save{{/save}}{{#deathsave}} sheet-deathsave{{/deathsave}}"> The {{#IDENTIFIER}} checks if that identifier is positive, and does whatever is in between it and the {{/IDENTIFIER}}, in this case, it sets the style of sheet-weapon if weapon is true.  Since it's used here (and also on line 18417), it doesn't show up in the generic default listing at the bottom.
My line (modified) looks like this: <div class="sheet-rt-header{{#weapon}} sheet-weapon{{/weapon}}{{#spell}} sheet-spell{{/spell}}{{#ability}} sheet-ability{{/ability}}{{#save}} sheet-save{{/save}}{{#deathsave}} sheet-deathsave{{/deathsave}}{{#azul}} sheet-azul{{/azul}}{{#blanco}} sheet-blanco{{/blanco}}{{#rosa}} sheet-rosa{{/rosa}}{{#lima}} sheet-lima{{/lima}}{{#azulin}} sheet-azulin{{/azulin}}{{#naranja}} sheet-naranja{{/naranja}}{{#cafe}} sheet-cafe{{/cafe}}{{#agua}} sheet-agua{{/agua}} "> i also made it so the Css modify the color of the header: /* Azul header*/ .sheet-rolltemplate-5eDefault .sheet-rt-header.sheet-azul{ background-color: #03259F; } .sheet-rolltemplate-5eDefault .sheet-rt-header.sheet-azul:before { border-right-color: #375035; } .sheet-rolltemplate-5eDefault .sheet-rt-header.sheet-azul:after { border-left-color: #375035; } Sorry if im not getting it right, but i cant find the generic deafult listing to changet it. By the way thanks for helping me out.
1498753530
The Aaron
Roll20 Production Team
API Scripter
Hmm. That looks right to me. I'll move this to the character sheets forum and hopefully someone there who knows more about it will be able to help. 
The @{classactioncustom1skill}}} is in there to allow custom fields and I am guessing it sees {{azul=1}} as a custom field.  I don't know CSS, but you need to somehow make the color switch an invisible field. Also I see now that you have two extra }} at the end there, that are not needed. I am not sure if that would make a difference though.
1498770588
Diana P
Pro
Sheet Author
In the html section of that roll template, look for something that starts with {{#allprops() ......... }} In the ........ part, it will have probably name, weapon, spell, save, deathsave, ability as well as potentially some other keywords.  Those keywords listed are the one which will not show up in the macro output for that section, generally because you use them elsewhere.  Those words also have to go in the closing of the allprops so the {{/allprops() ...... }} part. Hopefully you should be able to just add azul and what ever other keywords you would like there, in both sections, and get it to work. Hope this helps.
It worked just Fine, thanks to all of you for your help.