To handle temporary mods, you need a roll query. Here's an excerpt from my macro-making series I posted for a group I was in. I hope this helps. ---- But these macros aren't flexible at all. They do
not take into account temporary modifiers to hit and damage, which
fluctuate fairly chaotically in d20 systems. For that, we need the Roll Query . ?{Query Text|Default Option}
?{Modifier to Hit?|0}
?{TemporaryMods} Roll Queries will cause a dialog box to pop up and
ask you for a response. You can choose to not use a default option,
but that requires that you type a value because leaving
that box empty will make your macro fail in any number of delightful,
obscure, ways. My suggestion is to always use a default of 0 so you can
just hit enter and move on with life. /em attacks with his longsword! He his AC [[1d20+11+ ?{Modifier to Hit|0}]] for a potential [[1d10 + 7 + ?{Modifier to Damage|0}]] damage. /em casts Healing Word, the target spends a healing surge and adds [[2d6 + ?{Any bonus healing?|0}]] additional healing. /em attempts an Acrobatics check: [[1d20 + 5 + ?{TempMods|0}]] /em attacks with Clever Strike. She hits AC [[1d20 + 10]] for [[1d6 + 4 + ?{Modifier to Damage|0} + ?{Sneak?|[NH]2d6} ]] potential damage. That
last macro may look weird. It takes advantage of the 'Order of
Operations' used in evaluating macros/commands and the fact that queries
are resolved before dice rolls. This means I can choose whether to add
my sneak attack dice when Adara attacks. If I don't want to add,
because I can't, I just type a 0 when that box appears and the rest of
the macro will execute cleanly.