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

Trying to setup a Dice rolling Macro that includes a query and a good output

The template I am trying to use is the default template for a dice rolling but the dice roll I need is custom and presents a query. So the  &{template:default} But the query is /r ?{Dice Pool|0}d6>6f1 How do I make that query go into a tidy looking template? I'd also like the output to show both the 6s and the 1s but for now I'd just like that query to go into the Default Template so any help would be appreciated?
1606852493
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Roll templates use {{fieldName=fieldContent}} for their fields. The fieldName must be unique (including spaces and case sensitivity). The field content does not have to be unique. To roll dice in roll templates, you use the inline roll syntax . To put your roll into the template, you'd just do: &{template:default} {{roll=[[?{Dice Pool|0}d6>6f1]]}} Unfortunately, doing the display of the 6's and 1's is going to require an API script as separating the rolls out like that is beyond the scope of the dice roller.
Its an odd one for sure. I've found an Alien template for the dice which is as follows: /w GM &{template:alien} {{character-name=Base Roll }} {{base-dice=[[?{Base Dice|0}]] }} {{base-roll-one=[[1d6]] }} {{base-roll-two=[[1d6]] }} {{base-roll-three=[[1d6]] }} {{base-roll-four=[[1d6]] }} {{base-roll-five=[[1d6]] }} {{base-roll-six=[[1d6]] }} {{base-roll-seven=[[1d6]] }} {{base-roll-eight=[[1d6]] }} {{base-roll-nine=[[1d6]] }} {{base-roll-ten=[[1d6]] }} {{base-roll-eleven=[[1d6]] }} {{base-roll-twelve=[[1d6]] }} {{base-roll-thirteen=[[1d6]] }} {{base-roll-fourteen=[[1d6]] }} {{base-roll-fifteen=[[1d6]] }} {{base-roll-sixteen=[[1d6]] }} {{base-roll-seventeen=[[1d6]] }} {{base-roll-eighteen=[[1d6]] }} This of course doesn't include any 1s being presented which is the only problem at the moment.
1606939638

Edited 1606939740
vÍnce
Pro
Sheet Author
Are you using a custom sheet Steve?  I'm sure the Alien roll template has been designed to only show a specific range of results (ie "6") for the base dice.  Stress will show ones as a xenophobes.  Not sure if it will work for your purposes, but you might use /w GM &{template:alien} {{character-name=Basic Roll }} {{stress-dice=[[?{stress Dice|0}]] }} {{stress-roll-one=[[1d6]] }} {{stress-roll-two=[[1d6]] }} {{stress-roll-three=[[1d6]] }} {{stress-roll-four=[[1d6]] }} {{stress-roll-five=[[1d6]] }} {{stress-roll-six=[[1d6]] }} {{stress-roll-seven=[[1d6]] }} {{stress-roll-eight=[[1d6]] }} {{stress-roll-nine=[[1d6]] }} {{stress-roll-ten=[[1d6]] }} }} Looks like Stress tops out at 10 dice for the Alien sheet.... If you can use a custom sheet, you should be able to edit the sheet's roll template to accommodate your needs.