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

Double the Result

We have a certain roll that I'd love to have a certain macro for, but I don't know if it's possible. [0] Pyroblast (Headshot [Modified]) - Standard Attack Range: Ranged 10 Deal 1d8 damage to target creature. If you roll a 7 or a 8 – treat the die roll as though it were twice the result. Then, flip a coin. If you land heads, gain 1 energy. That's the entire part. When the roll is a 7 or an 8, I want it to automatically double the result. Is this possible?
You could create a Rollable Table (with Items 1, 2, 3, 4, 5, 6, 14, 16).
Oh, that helped! Is there a way to force it to count the 16 as a critical success? In addition, when I do the coin flip, can I have it say "Gain 1 energy" and say nothing when I fail it?
1443772342

Edited 1443773003
Penumbra said: Oh, that helped! Is there a way to force it to count the 16 as a critical success? Rollable Tables don't support roll highlighting, but you could, for example, rename the last item to something like "16 (Critical Success!)" for emphasis. Otherwise, you could take advantage of the fact that HTML tags work in the Rollable Table fields. Penumbra said: In addition, when I do the coin flip, can I have it say "Gain 1 energy" and say nothing when I fail it? You could accomplish this with a second Rollable Table that contains two Items, one of them empty.
Oh, thank you so much! This solved all my problems I've been having recently.  One last thing. I made this macro recently, and it seems to be running fine, but is there a better way to run it and/or to organize it? ?{Number of dice|2 dice,?{Which one?|2d8,[[1d8]][[1d8]]|2d10,[[1d10]][[1d10]]|2d12,[[1d12]][[1d12]]|1d8/1d10,[[1d8]][[1d10]]|1d8/1d12,[[1d8]][[1d12]]|1d10/1d12,[[1d10]][[1d12]]}|5 dice,?{Which one?|5d8,[[1d8]][[1d8]][[1d8]][[1d8]][[1d8]]|4d8/1d10,[[1d8]][[1d8]][[1d8]][[1d8]][[1d10]]|4d8/1d12,[[1d8]][[1d8]][[1d8]][[1d8]][[1d12]]|3d8/2d10,[[1d8]][[1d8]][[1d8]][[1d10]][[1d10]]|3d8/1d10/1d12,[[1d8]][[1d8]][[1d8]][[1d10]][[1d12]]|3d8/2d12,[[1d8]][[1d8]][[1d8]][[1d12]][[1d12]]|2d8/3d10,[[1d8]][[1d8]][[1d10]][[1d10]][[1d10]]|2d8/2d10/1d12,[[1d8]][[1d8]][[1d10]][[1d10]][[1d12]]|2d8/1d10/2d12,[[1d8]][[1d8]][[1d10]][[1d12]][[1d12]]|2d8/3d12,[[1d8]][[1d8]][[1d12]][[1d12]][[1d12]]|1d8/4d10,[[1d8]][[1d10]][[1d10]][[1d10]][[1d10]]|1d8/3d10/1d12,[[1d8]][[1d10]][[1d10]][[1d10]][[1d12]]|1d8/2d10/2d12,[[1d8]][[1d10]][[1d10]][[1d12]][[1d12]]|1d8/1d10/3d12,[[1d8]][[1d10]][[1d12]][[1d12]][[1d12]]|1d8/4d12,[[1d8]][[1d12]][[1d12]][[1d12]][[1d12]]|5d10,[[1d10]][[1d10]][[1d10]][[1d10]][[1d10]]|4d10/1d12,[[1d10]][[1d10]][[1d10]][[1d10]][[1d12]]|3d10/2d12,[[1d10]][[1d10]][[1d10]][[1d12]][[1d12]]|2d10/3d12,[[1d10]][[1d10]][[1d12]][[1d12]][[1d12]]|1d10/4d12,[[1d10]][[1d12]][[1d12]][[1d12]][[1d12]]|5d12,[[1d12]][[1d12]][[1d12]][[1d12]][[1d12]]}}
1443775533

Edited 1443776255
I'd probably format the query like this ?{Number of dice| 2 dice, ?{Which one?| 2d8, [[1d8]][[1d8]] | 2d10, [[1d10]][[1d10]] | 2d12, [[1d12]][[1d12]] | 1d8/1d10, [[1d8]][[1d10]] | 1d8/1d12, [[1d8]][[1d12]] | 1d10/1d12, [[1d10]][[1d12]] } | 5 dice, ?{Which one?| 5d8, [[1d8]][[1d8]][[1d8]][[1d8]][[1d8]] | 4d8/1d10, [[1d8]][[1d8]][[1d8]][[1d8]][[1d10]] | 4d8/1d12, [[1d8]][[1d8]][[1d8]][[1d8]][[1d12]] | 3d8/2d10, [[1d8]][[1d8]][[1d8]][[1d10]][[1d10]] | 3d8/1d10/1d12, [[1d8]][[1d8]][[1d8]][[1d10]][[1d12]] | 3d8/2d12, [[1d8]][[1d8]][[1d8]][[1d12]][[1d12]] | 2d8/3d10, [[1d8]][[1d8]][[1d10]][[1d10]][[1d10]] | 2d8/2d10/1d12, [[1d8]][[1d8]][[1d10]][[1d10]][[1d12]] | 2d8/1d10/2d12, [[1d8]][[1d8]][[1d10]][[1d12]][[1d12]] | 2d8/3d12, [[1d8]][[1d8]][[1d12]][[1d12]][[1d12]] | 1d8/4d10, [[1d8]][[1d10]][[1d10]][[1d10]][[1d10]] | 1d8/3d10/1d12, [[1d8]][[1d10]][[1d10]][[1d10]][[1d12]] | 1d8/2d10/2d12, [[1d8]][[1d10]][[1d10]][[1d12]][[1d12]] | 1d8/1d10/3d12, [[1d8]][[1d10]][[1d12]][[1d12]][[1d12]] | 1d8/4d12, [[1d8]][[1d12]][[1d12]][[1d12]][[1d12]] | 5d10, [[1d10]][[1d10]][[1d10]][[1d10]][[1d10]] | 4d10/1d12, [[1d10]][[1d10]][[1d10]][[1d10]][[1d12]] | 3d10/2d12, [[1d10]][[1d10]][[1d10]][[1d12]][[1d12]] | 2d10/3d12, [[1d10]][[1d10]][[1d12]][[1d12]][[1d12]] | 1d10/4d12, [[1d10]][[1d12]][[1d12]][[1d12]][[1d12]] | 5d12, [[1d12]][[1d12]][[1d12]][[1d12]][[1d12]] } } Alternatively, ?{Number of d8's|0, |1, [[d8]]|2, [[d8]] [[d8]]|3, [[d8]] [[d8]] [[d8]]|4, [[d8]] [[d8]] [[d8]] [[d8]]|5, [[d8]] [[d8]] [[d8]] [[d8]] [[d8]]} ?{Number of d10's|0, |1, [[d10]]|2, [[d10]] [[d10]]|3, [[d10]] [[d10]] [[d10]]|4, [[d10]] [[d10]] [[d10]] [[d10]]|5, [[d10]] [[d10]] [[d10]] [[d10]] [[d10]]} ?{Number of d12's|0, |1, [[d12]]|2, [[d12]] [[d12]]|3, [[d12]] [[d12]] [[d12]]|4, [[d12]] [[d12]] [[d12]] [[d12]]|5, [[d12]] [[d12]] [[d12]] [[d12]] [[d12]]}
Oh, the second one works much better than what I had figured and is much smaller. Thanks again for all the help!