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 .
×

SWD6 Armor Penalty Question

Hello.  I'm trying to add armor penalties to Dexterity and related skills, but am getting an odd error: No attribute was found for @{Stormtrooper|dexpen} No attribute was found for @{Stormtrooper|dexpenpip} SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|\-], [+|\-|*|\/|%] or [0-9] but "S" found. Here's the input code:  <input type="number" name="attr_dexpen" class="smallnumber" min="1" value="3"/>D+<input type="number" name="attr_dexpenpip" class="pipnumber" min="0" max="2" value="0"/> And how I'm trying to use it:  <button class="d6-dice rollmod" type="roll" value="&{template:blue} {{name=Dexterity}} {{Roll=[[(@{dexterity} -@{WoundMod} +@{MAPS} +@{Force_Up} + ?{Dice mods|0} -@{dexpen} -1)d6cf0cs7 + @{dexteritypip} -@{dexpenpip} + ?{Other Mods(pip)|0} + 1d6@{wilddie}]]}}" >Dexterity</button> What am I doing wrong?  Code works great without the dexpen addition.
Ok, figured it out.  Had to move the dexpen input above the attributes section.  Works great now!