
Hey folks. I hope everyone is doing well in these crazy times. I'm doing great actually. I've been focusing on a custom character sheet for over a month now. It's really satisfying my creative drive. Anyway, I've now handled everything but making the roll buttons work. I've read the pages describing macros and roll templates, but there are a few things I don't understand.
{{#rollLess() <rollname>}}
Checks the total of an inline roll for the value. If the roll result is less, the section is shown. For example, {{#rollLess() deathsave 10}} would check the "deathsave" property for an inline roll that resulted in 9 or less.
I have an attribute, let's call it attr_my_attribute. I want to press a button and have a d20 be rolled, and if the result is less than the value I have stored for attr_my_attribute, I want to display some text indicating success. So far I haven't been able to write code that would do that. What I have currently is:
value='&{template:default}{{name=my_attribute}}{{attribute_check=[[1d20cf0cs0]]}}{{#rollLess()my_attribute}}{{Success!}}'
Also, what does cf0cs0 mean?
Second, how do I get my initiative roll to show up on the turn tracker, and is it possible to do this without having to first select my mini on the map? Right now I have this:
value='&{template:default}{{name=initiative_roll}}{{initiative_roll=[[1d20cf0cs0+@{initiative_modifier}]]}}'
Finally, I have dice fields on my character sheet. Currently they're stored as:
<div class="dcenum section"> <div class="whiteText blueBackground section">Dice #</div> <input class="field" name="attr_number_of_damage_dice" type="number"> </div> <div class="dcefct section"> <div class="whiteText blueBackground section">Facet #</div> <input class="field" name="attr_damage_dice_facet_number" type="number"> </div>