
Hi there fellow nerds! I'm trying to work out a code for players to input a variable bonus on attack rolls (level of spell being burned) and a damage bonus based on this variable (d4 times the level of the spell being burned). Right now I'm using +?{Arcane Strike?|0}[Arcane Strike] as the attack modifier and that is working fine, but I can't figure out the coding to take that variable and input it as Xd4 in the damage side of things. My crummy solution right now is to allow another input for damage where they just manually put in Xd4, but it feels so unpolished and sloppy to me. The attack modifier can carry over to damage without further input with static numbers; I've tested and made those work on things such as point blank shot and defending weapon enchantments, but pulling a static number to a dice roll eludes me. Anyone have any suggestions on how I might proceed?