I'm working on a Hackmaster character sheet - when rolling dice, your honor bonus (or penalty) applies to every die. Within the sheet I've got an entry box for entering the weapon damage (for example entering 2d4+1). I've added a roll button to the sheet that will roll that (and add strength bonus), but adding the honor bonus needs to "parse" and get the number of dice (2) and multiply by the honor bonus per die (either -1, 0, or +1) that is available in another field: /roll @{msdamt}+@{msplusdam} @{honor_bonus}[Honor] So how can I multiply that {honor_bonus} by the number of dice that were rolled from {msdamt}?