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

Sheetwork ‘startRoll’ - Can the roll be silent?

1693076586

Edited 1693076598
Coryphon
Pro
Sheet Author
Compendium Curator
Hi there, I’ve just finished a marathon piece of work on the Traveller character sheet and it has required me to do a lot of intermediate dice rolls that provide results that I use to index into arrays do subsequent dice rolls, e.g. you roll a 5 on a 2D6 and that 5 is an index that requires rolling 4D6. So I created an empty roll template called ‘index’ that has empty HTML just because I need the results to make another startRoll… So can a startRoll/rolltemplate be constructed that doesn’t propagate the result to chat? Thinking about it as I’m writing I guess I could ALSO roll the max number of dice in the table I need to index into and pluck off the results I need… Maybe I’ve answered my own question… ;-) Any thoughts? Regards, Coryphon
1693079004
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Yes, just make it an API message by starting the roll with an exclamation point. Also, you don't need an extra roll template. Start roll doesn't require a roll template, it just needs roll template fields, so you could just do !{{roll=[[1d6]]}}
1693079679
Coryphon
Pro
Sheet Author
Compendium Curator
Fantastic, thank you for the prompt reply !