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

Need help from a macro wiz....

so i'm trying to run this firebolt macro as a spellcard rather then an attack, but the issue i'm having is that if I crit the damage dice doesn't get multiplied. Is there any way to accomplish this? Here's what I have so far. Bolded text would need some tweaking. @{Greta Tealeaf|wtype}&amp;{template:spell} {{level=Evocation Cantrip}} {{name=Firebolt}} {{castingtime=1 action}} {{range=120 feet}} {{target=A creature or object within range}} {{v=1}} {{s=1}} 0 {{material=}} {{duration=Instantaneous}} {{description=**Attack = [[d20+@{Greta Tealeaf|intelligence_mod}+@{Greta Tealeaf|pb}]] | Damage = [[((@{level} + 1) / 6 + 0.5)d10]] Fire** [ ](<a href="https://i.imgur.com/dHa6eLL.gif" rel="nofollow">https://i.imgur.com/dHa6eLL.gif</a>) You hurl a mote of fire at a creature or object within range. Make a ranged spell attack against the target. On a hit, the target takes 1d10 fire damage. A flammable object hit by this spell ignites if it isn’t being worn or carried.}} {{athigherlevels=}} 0 {{innate=}} 0 @{Greta Tealeaf|charname_output}
1637983049
Oosh
Sheet Author
API Scripter
Well you can, but whether or not you want to is a different question: @{greta tealeaf|wtype}&amp;{template:spell} {{level=Evocation Cantrip}} {{name=Firebolt}} {{castingtime=1 action}} {{range=120 feet}} {{target=A creature or object within range}} {{v=1}} {{s=1}} 0 {{material=}} {{duration=Instantaneous}} [[ [[ceil((@{greta tealeaf|level} + 1) / 6)]]d10 + [[floor(([[1d20+@{greta tealeaf|intelligence_mod}+@{greta tealeaf|pb}]]-@{greta tealeaf|pb})/20)*ceil((@{greta tealeaf|level} + 1) / 6)]]d10[Crit] ]] {{description=**Attack = $[[1]] | Damage = $[[3]] Fire**}} Not only do you need to jump through some hoops to get crit damage, you'll lose your 3d d20 roll, and you'll need to set this up for every attack manually as the roll indices can be unpredictable You're also not handling advantage/disadvantage in any form, and there's no output for global attack or damage modifiers with this template - the attack template is specifically set up to handle all of those things.
I think the simplest way would be to just tack on what the extra critical damage would be at 5he end of the attack/damage line. If you don't score a critical just ignore the extra damage, the same that you ignore the regular damage if you don't hit. {{description=**Attack =&nbsp; [[d20+@{Greta Tealeaf|intelligence_mod}+@{Greta Tealeaf|pb}]] | Damage = [[((@{level} + 1) / 6 + 0.5)d10]] Fire | On Crit =&nbsp; &nbsp;+ [[((@{level} + 1) / 6 + 0.5)d10]] Fire