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

D&D 5e Animated Objects Spell Automation

1659674354
My wizard uses the Animated Objects spell for combat frequently. I made a spell attack block on the main sheet for the Tiny, Medium, and Huge objects to roll attacks on my turn. For Tiny Objects, I need to click this 10 times every round. Is there a way to roll 10 separate attack rolls with hit modifiers and damage rolls with 1 click?
1659685396

Edited 1659685569
[[attack roll]]  [[attack roll]]  [[attack roll]]  [[attack roll]]  [[attack roll]]  [[attack roll]]  [[attack roll]]  [[attack roll]]  [[attack roll]]  [[attack roll]]  [[ damage roll]]  [[ damage roll]]  [[ damage roll]]  [[ damage roll]] etc - whatever amount you need the code would be [[1d20+@{pb}+@{strength_mod} or @{dexterity_mod}+any other bonus number here]] x10 copy paste into 1 code, should roll all 10 attack rolls. for spell attack - I forgot the @{name} but you should be able to find it in te attributes and abilities section.  Damage Roll = [[1d20+@{name_mod}+number if any]] all of them will be rolled and displayed in their nice little boxes. 
1659711142

Edited 1659711326
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I had a bard who used this a lot. Here is the system I came up with. These are all custom Abilities (macros) on a character sheet dedicated to animated objects. I made it a rollable token to account for size differences. We'll start with tiny: Tiny Attack &{template:npcaction} {{rname=Swarm of Tiny Objects}} {{description= [HP](#" style="background-color:gold;margin-left:10px;margin-right:5px)  AC 18 | Str 4 | Dex 18 : Spd 30 1. [8](@{css1}) Hit [[1d20+8]] 2. [8](@{css1}) Hit [[1d20+8]] 3. [8](@{css1}) Hit [[1d20+8]] 4. [8](@{css1}) Hit [[1d20+8]] 5. [8](@{css1}) Hit [[1d20+8]] 6. [8](@{css1}) Hit [[1d20+8]] 7. [8](@{css1}) Hit [[1d20+8]] 8. [8](@{css1}) Hit [[1d20+8]]  9. [8](@{css1}) Hit [[1d20+8]] 10.[8](@{css1}) Hit [[1d20+8]] Upcast: 11. [8](@{css1}) Hit [[1d20+8]] 12.[8](@{css1}) Hit [[1d20+8]] [Roll Damage](~Tiny-Damage.)}} This yields: The GM then tells the player how many hit and how many critted. The player then runs: Tiny-Damage &{template:npcaction} {{rname=Tiny Animated Objects Damage}} {{description=Total Damage [[?{Hits|1}d4+[[?{Hits}*4 ]] ]] plus ?{Crits|0} Crits [[?{Crits}d4]]}} Assuming the monster from the above attack had AC 18, and the spell was not upcast, the GM would say that was 6 hits and one critical hit (7 actual hits). Running the damage macro yields: or 46 points of damage. In the attack case, if there are multiple targets, just run the damage macro on each target, only counting the hits on that target. The attack macro gives a handy button at the bottom to roll the damage macro. Here are the other macros: Small Attack &{template:npcaction} {{rname=Small Animated Objects}} {{description= [HP](#" style="background-color:gold;margin-left:10px;margin-right:5px)  AC 16 | Str 6 | Dex 14 1. [25](@{css1}) Hit [[1d20+6]] 2. [25](@{css1}) Hit [[1d20+6]]  3. [25](@{css1}) Hit [[1d20+6]]  4. [25](@{css1}) Hit [[1d20+6]] 5. [25](@{css1}) Hit [[1d20+6]]  6. [25](@{css1}) Hit [[1d20+6]]  7. [25](@{css1}) Hit [[1d20+6]] 8. [25](@{css1}) Hit [[1d20+6]] 9. [25](@{css1}) Hit [[1d20+6]] 10.[25](@{css1}) Hit [[1d20+6]] Level 6 11. [25](@{css1}) Hit [[1d20+6]] 12.[25](@{css1}) Hit [[1d20+6]] Level 7 13. [25](@{css1}) Hit [[1d20+6]] 14.[25](@{css1}) Hit [[1d20+6]] _______________________________ [Roll Damage](~Small-Damage.)}} Small-Damage &{template:npcaction} {{rname=Small Animated Objects Damage}} {{description=Total Damage [[?{Hits|1}d8+[[?{Hits}*2 ]] ]] plus ?{Crits|0} Crits [[?{Crits}d8]]}} Medium Attack &{template:npcaction} {{rname=Medium Animated Objects}} {{description= [HP](#" style="background-color:gold;margin-left:10px;margin-right:5px)  AC 13 | Str 10 | Dex 12 1. [40](@{css1}) Hit [[1d20+5]] 2. [40](@{css1}) Hit [[1d20+5]]  3. [40](@{css1}) Hit [[1d20+5]]  4. [40](@{css1}) Hit [[1d20+5]] 5. [40](@{css1}) Hit [[1d20+5]]  upcaste 5. [40](@{css1}) Hit [[1d20+5]]  _______________________________ [Roll Damage](~Medium-Damage)}} Medium-Damage &{template:npcaction} {{rname=Medium Animated Objects Damage}} {{description=Total Damage [[(?{Hits|1}*2)d6+[[?{Hits}*1 ]] ]] plus ?{Crits|0} Crits [[(?{Crits}*2)d6]]}} Large Attack &{template:npcaction} {{rname=Large Animated Objects}} {{description= [HP](#" style="background-color:gold;margin-left:10px;margin-right:5px)  AC 10 | Str 14 | Dex 10 1. [50](@{css1}) Hit [[1d20+6]] 2. [50](@{css1}) Hit [[1d20+6]]  _______________________________ [Roll Damage](~Large-Damage)}} Large-Damage &{template:npcaction} {{rname=Large Animated Objects Damage}} {{description=Total Damage [[(?{Hits|1}*2)d10+[[?{Hits}*2 ]] ]] plus ?{Crits|0} Crits [[(?{Crits}*2)d10]]}} Huge Attack &{template:npcaction} {{rname=Huge Animated Objects}} {{description= [HP](#" style="background-color:gold;margin-left:10px;margin-right:5px)  AC 10 | Str 18 | Dex 6 1. [80](@{css1}) Hit [[1d20+8]] 2. [80](@{css1}) Hit [[1d20+8]]  _______________________________ [Roll Damage](~Huge-Damage)}} Huge Damage &{template:npcaction} {{rname=Huge Animated Objects Damage}} {{description=Total Damage [[(?{Hits|1}*2)d102+[[?{Hits}*4 ]] ]] plus ?{Crits|0} Crits [[(?{Crits}*2)d12]]}}
1659711300
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Note that the HP for each object is listed. This is probably best handled with a sheet of paper. I had a system I used, but it was way too clunky to share.
1660059740
Thank you keithcurtis! This code worked perfectly!