
Hello! I am creating some ability command buttons, and trying to make an inline damage button, but I am running into an issue.
My first ability is this:
Ability name: Make-Melee-Attack
/desc @{character_name} strikes!
[[@{MeleeAttack}d10>[[6-?{Modifier?|0}]]]] result points
[Damage](~Damage)
This works as desired, in terms of output, and generates a clickable button*.
This is the other relevant ability:
Ability name: Damage
[[@{Strength}d10>[[6-?{Modifier?|0}]]]] damage dealt
However, when using the clickable in-line button generated by Make-Melee-Attack, the following error occurs:
TypeError: Cannot read properties of undefined (reading 'substring')