Unfortunately, the nature of the spell is such that we can only programmatically calculate it's total damage when used against a single target. Much of the utility of the spell is being able to direct each missile to a different target (like if you have Toppling MetaMagic and want to knock a bunch of people down) The way I handle this is to write an intentionally "broken" macro, and fix a bit of it every 2 levels. Yeah it's a little manual, but the base Macro system doesn't have any provisions for loops. Since it's only every 2 levels, it's infrequent enough to really not be an issue. Note the single { on the last three bolts. &{template:pf_attack} {{name=Toppling Magic Missile: ***[Link]( <a href="http://www.d20pfsrd.com/magic/all-spells/m/magic-missile)***" rel="nofollow">http://www.d20pfsrd.com/magic/all-spells/m/magic-missile)***</a>} } {{Concen:[[1d20+@{MyConcentration}]]=**Wild:**[[1d1000]]}} {{Rng:[[100 + floor(10 * @{MyLevel})]]=**Dur**: *n/a*}}{{DC: *n/a*=**SR:** [[1d20 + @{MyLevel}[Level] ]] }}{{Bolt1=[[1d4+1]]**dmg, CMB**[[1d20+@{MyLevel} + @{MyInt} ]] }}{{Bolt2=[[1d4+1]]**dmg, CMB**[[1d20+@{MyLevel} + @{MyInt} ]] }}{Bolt3=[[1d4+1]]**dmg, CMB**[[1d20+@{MyLevel} + @{MyInt} ]] }}{Bolt4=[[1d4+1]]**dmg, CMB**[[1d20+@{MyLevel} + @{MyInt} ]] }}{Bolt5=[[1d4+1]]**dmg, CMB**[[1d20+@{MyLevel} + @{MyInt} ]] }}