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

Showing individual dice result and total in a template

I'd like to create a simple X number of d6 macro that formats into a template but I'd like it to show the number of dice rolled based on the dice query along with the result.    I can't seem to figure out how to do this. Something like below only displays the result but doesn't tell me how many dice were rolled.  If I ask a player for a roll I'd like to be able to see if they entered the wrong number by mistake.  (That was 4d6 not 1d6). &{template:default} {{name=Rolls 1d6}} {{Result=[[?{number?|1}d6]]}} Any way to do this?
&{template:default} {{name=Rolls ?{number?|1}d6}} {{Result=[[?{number?|1}d6]] }}
Ugh... I thought I tested this earlier and it didn't work.  So just by providing the same sig it defautls to the same result?  Thanks.
Provided that the following query is in the same format as the initial instance, yes.  If there's any difference, such as an extra space, it will treat them as two different queries and prompt the user twice.
Thank's that's very helpful.  If anyone has under the hood knowlege, just for my edification, I'm assuming this is because there's a pattern match within any value statement parsed, the first instance of that pattern gets evaluated and a replace happens on any instance in the same value statement?