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

Charactermancer: Using required with non zero values

1691732661
Iron Crown
Pro
Marketplace Creator
Compendium Curator
So I'm building a charactermancer tab/page and before allowing people to move on, I want them to have selected set of attributes that sum to '10'.   Is there a way I can set required to be that field == 10, rather then just has a value? Otherwise does someone have a nice trick to set an attribute when the value is 10 which impacts the 'next' button but doesn't display anything?
1691743456
Stephen C.
Pro
Sheet Author
You can put an input on the sheet right before the Next button with display:none; Then in your CSS, you can use (hopefully with a class or two to prevent mistakes input:not([value="10"]) + btn { &nbsp;&nbsp;&nbsp;&nbsp; pointer-events:none; } I believe you'd need a sheetworker to set the value of the input, since I doubt that setting the value on the sheet to the sum of the attributes would work. (Though I might be wrong, and it's worth trying.) But one thing that might stop you dead in your tracks is Roll20's IP policy. <a href="https://help.roll20.net/hc/en-us/articles/360037773453-Minimum-Requirements-Best-Practices" rel="nofollow">https://help.roll20.net/hc/en-us/articles/360037773453-Minimum-Requirements-Best-Practices</a> Do not infringe on intellectual property . Community sheets should not include character creation or advancement due to potential copyright restrictions. 'By Roll20' sheets may include this content thanks to our partnerships with game creators. Sheets that are developed from the code of a 'By Roll20' sheet will need to ensure any character creation or advancement options code is removed. It's okay to have attributes that auto-calculate based on other attributes (including the current level). We'll let you know if your submitted sheet violates this rule.