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

[PF] Best ways to calculate spell damage with level limits

Working on adding damage calculations to a Wizard and here is what I have come up with. Wanted to see if there was a better way. For spells that give a die per level up to a level limit, such as Burning Hands which is 1d4 per level up to 5th level, for a max of 5d4, I have the following: **Damage: ** [[[[ 1 + {@{class-0-level} + d0}>2 + {@{class-0-level} + d0}>3 + {@{class-0-level} + d0}>4 + {@{class-0-level} + d0}>5 ]]d4]] This could be done for fireballs and such, but could end up quite long. Is there a better way to do this? For something like Magic Missile where an additional missile is added at specific level intervals I have done this: *** Damage: *** [[1d4+1]] / [[[[{@{class-0-level} + d0}>3]] * (1d4+1)]] / [[[[{@{class-0-level} + d0}>5]] * (1d4+1)]] / [[[[{@{class-0-level} + d0}>7]] * (1d4+1)]] / [[[[{@{class-0-level} + d0}>9]] * (1d4+1)]] At first level the output looks something like: 3 / 0 / 0 / 0 / 0 Where at 5th it would look something like: 1 / 4 / 2 / 0 / 0 This seems to work just fine as long as the player understands what the numbers mean, but any ideas for a better way? Thanks, Joe
For bounding values, I'd recommend using Keep/Drop functions , e.g. Damage: [[ [[ {@{class-0-level}, 5}kl1 ]]d4 ]]
1464395227

Edited 1464395262
I don't remember exactly but what about use the kl1 option? [[(@{class-0-level}d1, 5d1)kl1d4]] Edit: Got beat while writing.
@ Silvyre of course, that make sense. Thanks!
Regarding Magic Missile, I think what you've got going seems great. You could always add "Missile #1:", etc., to label your inline rolls, if the macro confuses players. There are tons of ways to handle spells like Magic Missile; it's really a matter of personal preference. Someone who prefers to not output unused missiles might opt to incorporate Roll Queries and API Command Buttons into their macros to accomplish this at the price of adding more "clicks", e.g. /em spends a ?{Spell Slot Level|1st|2nd|3rd|4th|5th|6th|7th|8th|9th} Level spell slot to evoke [[[ 2 + ?{Spell Slot Level} ]] Magic Missiles!](!
/em fires off ``?{Missiles|1|2|3|4|5|6|7|8|9|10|11}`` at ?{Target|a target}, dealing [[ ?{Missiles}d4 + ?{Missiles} ]] force damage!)