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 .
×

How to run two macros with same roll results?

1605950159

Edited 1605951293
Hi, i'm kind of new, sorry if this isn't very well explained. Lets say I have a multi-target spell and I'm able to do 50% extra spell damage to evil enemies, but I don't always know which targets are evil, and I don't want to have to manually do the math. I can roll twice in my macro, once for each possibility and the GM picks the right one per target, the chosen values will still be statistically random and accurate but it would be possible for evil targets to take less damage in that instance. Is there any way to reuse the exact same roll result, so that evil targets truly take 50% more damage than others? So instead of this: Spell Damage (Regular): (2d8) = ( 8 + 4 ) = 12 Spell Damage (vs Evil): (2d8)*1.5 = ( 4 + 2 )*1.5 = 9 The dice always matches like this: Spell Damage (Regular): (2d8) = ( 8 + 4 ) = 12 Spell Damage (vs Evil): (2d8)*1.5 = ( 8 + 4 )*1.5 = 18
1605952007
Oosh
Sheet Author
API Scripter
You can do this: &{template:default} {{name=Damage Roll}} [[floor([[2d8]]*1.5)]] {{Damage=$[[0]]}} {{Damage if evil=$[[1]]}} Or if it's 5e, you could use this: &{template:dmg} {{rname=Damage Roll}} {{dmg1flag=1}} {{dmg2flag=2}} {{dmg2=[[floor([[2d8]]*1.5)]]}} {{dmg2type=vs. Evil}} {{dmg1=$[[0]]}} {{dmg1type=Ouchy}}
Thanks for the response Oosh, that first example worked perfectly when I paste it in chat. Do you know how I could trigger this using a button on the sheet? We're using the  Pathfinder Community Sheet  and I was hoping to put it in the "Extra Non-Crit Dmg" field of an attack.
1605969925
Oosh
Sheet Author
API Scripter
My PF sheet experience is pretty limited. The easiest way is to just have the vs Evil damage first: [[[[2d8]]*1.5)]] damage vs Evil $[[0]] damage vs Good/Neutral Putting the normal damage first needs a bit of template trickery, but I can't remember the details of the PF roll templates.
1605978076

Edited 1605978424
I'm sure that you are used to playing at a table with physical dice, where you would multiply the damage on the dice results if the target was evil. I went down that rabbit hole when I started using Roll20 when the pandemic started, wanting to use the same dice results with every modifier that may apply. In the end, I decided I was overthinking it. Now I let Roll20 make its multiple rolls for the situation as needed (such as when I crit) and ignore the rolls that don't apply. I currently use the Pathfinder Community Sheet. I may be able to help with adding this modifier. What is the ability that is granting the +50% vs evil?