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] Damage Macro Help

I'm attempting to make a macro so that for spells such as scorching ray when it is at the level to obtain it's second or third ray that the attack accounts for those. Essentially I have everything leading up to that point, but not way of making "[[4d6]] [4d6]]" happen. What i have so far is: [[( {3 , ceil((@{level}-2)/4)}kl1)]]   to indicate the number or rays. So, is it at all possible to make it roll 2+ SEPARATE sets of [[4d6]]?
Yes, I know just using iterative attacks would be the simple way and probable solve this with separate attack rolls as well. But, now I'm curious if this can be done and find a use for it.
1489096821
Tetsuo
Forum Champion
[[ [[4d6]] * {(floor(@{level}/3)), 1}dh1]] damage [[ [[4d6]] * {(floor(@{level}/7)), 1}dh1]] damage [[ [[4d6]] * {(floor(@{level}/11)), 1}dh1]] damage Damage will be 4d6 * 1 at levels 3, 7, and 11. respectively, otherwise 4d6*0
You won't be able to logically show/hide the additional attacks based on your level, though.  The best you can do is Franky's example of zero'ing out the damage and/or attack rolls to make it visually clear they don't apply. If you're using the Pathfinder Sheet that was just updated, you can use the {{attack=}}{{damage=}}{{crit_confirm=}}{{crit_damage}} {{attack2=}}{{damage2=}}{{crit_confirm2=}}{{crit_damage2=}} templates as well.  This works for any multi-attack spell setup, like Magic Missiles, Scorching Ray, Ball Lightning, etc. to automate the attack/damage rolls, adjusting for your current class level.
Actually you can if you wrap them in roll queries ?{Char level|1-6, [[4d6]]|7-10, [[4d6]] [[4d6]]|11+,[[4d6]][[4d6]][[4d6]]} it isn't perfectly automated but you can navigate the dropdown via up/down arrows and hit enter to accept.
Thank you, all of you!