It was suggested that I make this a standalone post for ease of reference. I don't know if anyone else will find this useful, but it was very helpful to me, so I offer it here. I had a player with a Staff of Striking in 5e and wanted to automate the attack roll such that it asked the number of charges expended and automatically added them to the damage. It took a little trial and error, and some help from the folks on the forums, but I finally have it working. I still haven't quite gotten it to automatically subtract the proper amount of charges from the counter, but it does handle the damage calculations correctly for both 1H and 2H use. Nightbreeze is, of course, the character's name and you will want to substitute that with your character. This uses the Roll20 5e OGL sheet. @{Nightbreeze|wtype}&{template:atkdmg} {{mod=+5}} {{rname=Staff of Striking}} {{r1=[[@{Nightbreeze|d20}cs>20 + 2[PROF] + 3[MAGIC]]]}} @{Nightbreeze|rtype}cs>20 + 2[PROF] + 3[MAGIC]]]}} {{attack=1}} {{range=}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d6+ ?{Charges|0,0|1,1|2,2|3,3}d6 + 3[MOD] + 3[MAGIC]]]}} {{dmg1type=Bludgeoning }} {{damage=1}} {{dmg2flag=1}} {{dmg2=[[1d8+ ?{Charges}d6 + 3[MOD] +3[MAGIC]]]}} {{dmg2type=Bludgeoning }} {{crit1=[[1d6[CRIT]]]}} {{crit2=[[1d8[CRIT]]]}} 0 {{desc=}} {{spelllevel=}} {{innate=}} {{globalattack=@{Nightbreeze|global_attack_mod}}} {{globaldamage=[[0]]}} {{globaldamagecrit=[[0]]}} {{globaldamagetype=Bonus Damage}} ammo= @{Nightbreeze|charname_output}