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

HTML Help?

Forgive me if this isnt the proper place for this post. I searched the forum for a previous version of the question and did not see what I was looking for but most of the coding questions were in this tab. I am working on building the WOTC CoC charachter sheet for a game I am going to run. I figured why not try to build the sheet, im no expert at coding but im not clueless. Its going well except I can not seem to make my roll function include the modifier. I have adjusted the codes several ways but none of it seems to make any difference. It just ends up rolling the 1d20. what I currently have is pasted below. If anyone has some guidance that would be greatly appreciated. <div class="ability">             <label for="strength">STR</label>                 <input type="number" id="strength" name="strength" placeholder="Score">                 <input type="number" id="strength-modifier" name="strength-modifier" placeholder="modifier">                 <button type='roll' value='[[1d20+@(strength-modifier)]]' name'roll_strengthcheck'>Roll</button>
1735085807
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Attributes must be named with the attr_ prefix. Buttons need to be named with the roll_ or act_ prefix. See the wiki for more info .
Much appreciated