Hey folks! I was looking to start messing with macros for a few custom abilities and the more I look around trying to find a solution for this, the more information I'm getting and the more confused I'm becoming. I've got a more manual version working, but if someone can help automate it just a touch more I would appreciate it. So the ability is an augmented Divine Smite. Basically I have an item that grants me an extra 1d8 for every 40HP I'm missing, not to exceed double the dice of the base smite for that level. So if I used a 2nd level divine smite with 10/260HP, it would be 3d8 (normal smite) + 3d8 (250 missing HP would grant 6 extra dice, but caps out at double the base) + 1 optional 1d8 for undead. Currently, I'm doing most of this manually, which as far as I know, all I can automate would be the health bonus to save a tiny bit of brain power or math hiccups. Please note I have very little experience with this. I know I need to incorporate a ceiling value in there, but not entirely sure if I can have the spell slot level feed this info with the single manual input? This is what I'm working with for the manual version. /roll 2d8+?{Injury Bonus?|1|2|3|4|5}d8 +?{Spell Level Above 1st?|1|2|3|}d8 +?{Undead Bonus?|0|1|}d8 Any help would be appreciated! Thanks!