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 .
×

Show how many dice were rolled without rolling

Perhaps this was already answered somewhere, but I'm drowning in the forums.  Is there a macro syntax that will add together how many dice a player rolls, but simply display that instead of actually rolling?  In my character sheets, I list "xd6" as a value in the attributes section rather than just "x" and put d6 in the macros. EXAMPLE: Here is my macro syntax for a token rolling an acrobatics test (using no particular system, just adding d6s) [[{1d6+@{selected|Dexterity}+@{selected|Acrobatics}+?{Extra Dice}d6}kh1]] In this example, the character has "2d6" in their Dexterity attribute and "1d6" in their Acrobatics attribute, and input a value of 1 for "Extra Dice. This rolls 5d6 and keep the highest die as an inline roll.  However, I additionally want syntax that would say "so and so rolled a total of 5d6"  Is that possible within the same macro?  I know hovering over it would show it but I want this text displayed in chat.  This game is for kids so I want them to see how many dice they rolled at a glance.
1613596201

Edited 1613596224
Jordan C.
Pro
API Scripter
I hope I am understanding your goal correctly and believe this would accomplish what you're after [[{1d6+@{selected|Dexterity}+@{selected|Acrobatics}+?{Extra Dice}d6}kh1]] /em rolled ?{Extra Dice}d6 Formatting can be adjusted to your liking depending on how you want it to look.
I believe that Brian is looking for the total  number of dice rolled, not just the 'extra' dice, which I don't think would be easily possible if the attributes are listed as '3d6' or '1d6'. However, if the attributes are listed as simply the number of dice (such as '3' or '1') then this will work: [[{1d6+@{selected|Dexterity}d6+@{selected|Acrobatics}d6+?{Extra Dice}d6}kh1]] /em rolled a total of [[1+@{selected|Dexterity}+@{selected|Acrobatics}+?{Extra Dice}]] dice. Or perhaps a more visually appealing way: /em rolled [[1+@{selected|Dexterity}+@{selected|Acrobatics}+?{Extra Dice}]] dice, for a high roll of [[{1d6+@{selected|Dexterity}d6+@{selected|Acrobatics}d6+?{Extra Dice}d6}kh1]]
1613598249
Jordan C.
Pro
API Scripter
Ah, duh! Gotta put my reading glasses back on. Good catch/solve
1613598332

Edited 1613598518
Brian
Plus
Nope, didn't work.  Still returned as    rolled 1d6+1d6+0d6+1d6 , and I want it to say "rolled 3d6" at the end.  I want to show one grand total of how many d6s Hang on, need to test
1613598660

Edited 1613598730
Brian
Plus
Still not working.  It's now doing a ROLL for the "total dice," so I'm not getting a flat value of dice rolled.  It's actually rolling the max number :D, pretty sure I didn't roll 8 dice Never mind, Jerren, didn't read your whole post.  I need to go change them
Jarren K. said: I believe that Brian is looking for the total  number of dice rolled, not just the 'extra' dice, which I don't think would be easily possible if the attributes are listed as '3d6' or '1d6'. However, if the attributes are listed as simply the number of dice (such as '3' or '1') then this will work: [[{1d6+@{selected|Dexterity}d6+@{selected|Acrobatics}d6+?{Extra Dice}d6}kh1]] /em rolled a total of [[1+@{selected|Dexterity}+@{selected|Acrobatics}+?{Extra Dice}]] dice. Or perhaps a more visually appealing way: /em rolled [[1+@{selected|Dexterity}+@{selected|Acrobatics}+?{Extra Dice}]] dice, for a high roll of [[{1d6+@{selected|Dexterity}d6+@{selected|Acrobatics}d6+?{Extra Dice}d6}kh1]] Yes these worked.  It would have been cool if the total dice rolled didn't appear in a yellow box, but this is exactly what I need.  Thank you.
Brian said: Yes these worked.  It would have been cool if the total dice rolled didn't appear in a yellow box, but this is exactly what I need.  Thank you. You can add some html styling to get rid of the yellow box using style injection but you lose the red/green text coloring for crits/fails: /em rolled [[[1+@{selected|Dexterity}+@{selected|Acrobatics}+?{Extra Dice}]]](#" style="font-style: italic; font-weight: bold; text-decoration: none; color: #653E10;) dice, for a high roll of [[[{1d6+@{selected|Dexterity}d6+@{selected|Acrobatics}d6+?{Extra Dice}d6}kh1]]](#" style="font-style: italic; font-weight: bold; text-decoration: none; color: #653E10;).
1613651083

Edited 1613651156
Oosh
Sheet Author
API Scripter
Some of the templates also remove the inline styling. It looks like 5e from the attribute names, so: &{template:traits} {{description=@{selected|character_name} rolled [[1+@{selected|Dexterity}+@{selected|Acrobatics}+?{Extra Dice}]] dice.}} That still gives you the tooltip, but comes with the white box.
Oosh said: Some of the templates also remove the inline styling. It looks like 5e from the attribute names, so: &{template:traits} {{description=@{selected|character_name} rolled [[1+@{selected|Dexterity}+@{selected|Acrobatics}+?{Extra Dice}]] dice.}} That still gives you the tooltip, but comes with the white box. I'm not using any templates, nor do I intend to.  And I don't have API and won't be paying for it.  So hopefully this works.