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 merry + bright! 🎄
Create a free account

How to incorporate "kh1" into the default roll template

1682871546

Edited 1682871780
So I'm trying to use the default template in a macro and I've got it working for my "Sniper" attack.  But if I get advantage on the damage dice I want to roll 2 exploding D20 and keep the higher result.  I believe the typical notation for that would be {1d20!1,1D20!1}kh1.  The problem is I believe the curly brackets screw with the macro in other ways because even when I try to sub out the closing brace for } it still gives no result when chosing option 1. &{template:default} {{name=Damage Roll}} ?{Type of Attack?| L&E Sniper,{{Snipershot=[[{1d20!1,1d20!1}kh1+43]]}} {{Roll Type=Adaptive Damage}}| Sniper,{{Snipershot=[[1d20!1+43]]}} {{Roll Type=Adaptive Damage}} }
1682873616

Edited 1682873830
vÍnce
Pro
Sheet Author
This seems to work (substituted the comma as well ie ",") &{template:default} {{name=Damage Roll}} ?{Type of Attack?|L&E Sniper, {{Snipershot=[[ {1d20!1, 1d20!1}kh1+43 ]]}} {{Roll Type=Adaptive Damage}}|Sniper, {{Snipershot=[[ 1d20!1+43 ]]}} {{Roll Type=Adaptive Damage} }}
1682895654
GiGs
Pro
Sheet Author
API Scripter
Your example raises several questions. Explosion This roll {1d20!1,1D20!1}kh1will keep the single highest die but say you roll 1, 1, and the dice explode to 13, 10, you will have a reported result of 13. Normal exploding results dont increase the number of dice kept, you still only keep one die. You might want to use !! instead of !, that means any explodidice die is added to the original roll - they are treated as a single die. Exploding Target Number This 1d20!1 explodes if the die roll is a 1. Is that what you want? A conventional explosion would be 1d20! or 1d20!20, that will explode on a 20. Number of dice You are using {1d20!1,1D20!1}kh1 - is there a reason you arent simply using 2d20!1 ? That avoids the curly brackets.