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 .
×
May your rolls be chill this holiday season!
Create a free account

please help creating a macro that uses previous roll

I'm just beginning to learn macros. I'm trying to write a macro for a dart trap.  The trap fires 1D4+1 darts and each dart deals 1D3 damage. I understand the Fires [[1D4+1]] darts part but can't figure out the damage.  Is there a way to get it to roll (number of darts)D3 using the previous roll? TIA
$[[0.computed]] Darts hit for [[ [[1d4+1]]d3 ]] Damage You can put that into the default template like this: &{template:default} {{name=Dart Trap}} {{Number of Darts=$[[0.computed]] }} {{Damage=[[ [[1d4+1]]d3 ]] }} Or if you say what game you are playing (D&D 5E, Pathfinder 2E, Call of Cthulu, etc.) and which character sheet you are using (D&D 5E 2014 by Roll20,  D&D 5E 2024 by Roll20, Pathfinder by Roll20, etc.) then there might be a prettier roll template  to display the rolls.