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

Custom Sheet isn't calculating attributes or rolling; "No attribute was found for"

1438533951

Edited 1438534061
So I'm setting up a custom character sheet for my homebew system. It appears I'm doing something wrong when it comes to attributes. Assume the below snippet of my html file, no CSS file yet: Melee Defense Score: <button type="roll" name="roll_def_melee" value="/roll 1d20 + @{attr_def_ranged_base}"></button> <input type="number" name="attr_def_melee_total" value="0 + @{attr_def_melee_base} + @{attr_def_melee_skill} + @{attr_def_melee_talent} + @{attr_def_melee_other}" disabled="true" /> <input type="number" name="attr_def_melee_base" /> <input type="number" name="attr_def_melee_skill" /> <input type="number" name="attr_def_melee_talent" /> <input type="number" name="attr_def_melee_other" /> The button should roll 1d20 and add the base melee amount. When I check the Attributes and Abilities tab I see a value (3 in this example). However, it outputs "No attribute was found for @{Girl|attr_def_melee_base}" on one line and "rolling 1d20 + Girl|attr_def_melee_base". Also the auto calculated value "attr_def_melee_total" does not auto calculate, it's a blank grey square. I'm assuming I'm missing something very fundamental about character sheet making. Any help would be appreciated.
1438535044

Edited 1438535086
Lithl
Pro
Sheet Author
API Scripter
You don't include the attr_ prefix when referencing an attribute. Use @{def_ranged_base}, not @{attr_def_ranged_base}. The same is true in roll buttons, autocalc values, and macros.
Well that makes sense, thanks.