Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account
This post has been closed. You can still view previous posts, but you can't post any new replies.

Damage Code for Pathfinder Magic Missles

I have been looking for info on how to write a code that accurately produces magic missile based on level. I couldn't find anything so I figured it out myself through trail and error. Here is my code for any who might need it. /roll [[ {floor((@{class-0-level})/2+0.6), 5}KL1 ]]d4 + [[ {floor((@{class-0-level})/2+0.6), 5}KL1 ]] 
Unfortunately, the nature of the spell is such that we can only programmatically calculate it's total damage when used against a single target.&nbsp; 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.&nbsp; Yeah it's a little manual, but the base Macro system doesn't have any provisions for loops.&nbsp; 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} ]] }}
That's cool Though honestly in 20 plus years of playing dnd/Pathfinder I have never seen anyone target more than one target. But I have never heard of that toppling thing either ;). Thanks for the script though.... Cheers
To be fair, Toppling metamagic only came out in 2011 with Ultimate Magic.&nbsp; It's not a common combination, but picking up Magical Lineage - Magic Missile and Toppling MetaMagic lets you attempt a trip attempt against any target damaged by your magic missile spell, using your Level + Casting stat instead of CMB.
Here's a couple versions for 5th Edition, feel free to modify and try these. ^^ I've planned to hybrid the two and make it super pretty and stuff, but haven't gotten around to it yet. x.x <a href="https://app.roll20.net/forum/post/1747672/post-you" rel="nofollow">https://app.roll20.net/forum/post/1747672/post-you</a>... <a href="https://app.roll20.net/forum/permalink/2269275/" rel="nofollow">https://app.roll20.net/forum/permalink/2269275/</a>