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

#Allprops() Function

So... from what I have read on the wiki you can use this function to include/exclude certain information from a roll template. It doesn't go into very much detail on how to actually use it, so I'm asking it here.  I want to know how to use this properly.
1513279833
Lithl
Pro
Sheet Author
API Scripter
allprops will include every property from the template call, except for the properties you specify (eg, in the default template they use {{name}} in the header, and then {{#allprops() name}}...{{/allprops() name}} in the body so the name doesn't show up twice.)
Brian said: allprops will include every property from the template call, except for the properties you specify (eg, in the default template they use {{name}} in the header, and then {{#allprops() name}}...{{/allprops() name}} in the body so the name doesn't show up twice.) Okay... so that's how it works. How would I set up check boxes on the character sheet to dictate excluded/included information in the default template?
1513281130
Jakob
Sheet Author
API Scripter
Black.k.9 said: Brian said: allprops will include every property from the template call, except for the properties you specify (eg, in the default template they use {{name}} in the header, and then {{#allprops() name}}...{{/allprops() name}} in the body so the name doesn't show up twice.) Okay... so that's how it works. How would I set up check boxes on the character sheet to dictate excluded/included information in the default template? That's not really feasible with the default template without a lot of hacking - it's a better idea to make your own roll template for this.
Jakob said: Black.k.9 said: Brian said: allprops will include every property from the template call, except for the properties you specify (eg, in the default template they use {{name}} in the header, and then {{#allprops() name}}...{{/allprops() name}} in the body so the name doesn't show up twice.) Okay... so that's how it works. How would I set up check boxes on the character sheet to dictate excluded/included information in the default template? That's not really feasible with the default template without a lot of hacking - it's a better idea to make your own roll template for this. Ah.  Same with the #rollwascrit() function. Thanks for the help.