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

Is it possible to concatenate a roll with an attribute name?

1589129988
zun z.
Sheet Author
Hi again! I've these inputs: <input class="short" type="text" name="attr_weaponDamage1"/> <input class="short" type="text" name="attr_weaponDamage2"/> <input class="short" type="text" name="attr_weaponDamage3"/> <input class="short" type="text" name="attr_weaponDamage4"/> And this button: <button      title="Damage"      type="roll"      name="roll_Damage"      value="&{template:default} {{name=Damage for @{weapon}}} {{ Check Weapon Damage cell [[1d4]] }}"     style="position:relative; bottom: -17px;"> </button> Is it posible to get automatically the value from the corresponding input? Something like:  &{template:default} {{name=Damage for @{weapon}}} {{ Damage= @{weaponDamage[[1d4]]} }} I hope I am explaining it well. Thank you in advance.
1589133964
Wes
Pro
Sheet Author
Negative, Attributes are expanded before anything else happens in a roll formula. See: Order of Operations
1589136620

Edited 1589136647
zun z.
Sheet Author
Thank you so much for the clarification.