Danny said: My apologies. This is the code being referenced: <button name="roll_str" type="roll" value="/r @{strength_base}d6+@{strength_modifier}d6>3" class="txt-btn large">STR</button> Adding [[ ]] resulted in the code appearing as such: <button name="roll_str" type="roll" value="/r @{[[strength_base]]}d6+@{[[strength_modifier]]}d6>3" class="txt-btn large">STR</button> However, I get a syntax error. It's the same with: <button name="roll_str" type="roll" value="/r @[[strength_base]]d6+@[[strength_modifier]]d6>3" class="txt-btn large">STR</button> This is the error in question: SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|\-] or [0-9] but "s" found. The syntax error is happening because [[ ]] indicates an inline roll, but you are trying to pass that to a /roll command, which will end up trying to /roll [[$0]] or something similar. You need to change the way you are grouping your dice in either one of two ways: @{strength_base}d6>3 + @{strength_modifier}d6>3 or (@{strength_base}+${strength_modifier})d6>3 Either one should roll the appropriate number of d6 and count successes. Note that while a base or modifier of 0 will be ok, if you have the possibility of negative numbers, weird things might happen :) Edit: GiGs beat me to it :)