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 .
×
BLACK FRIDAY SALE IS LIVE! 30% OFF D&D Core Rulebook Bundles + Much More!

Allowing players to input a specific number of dice to roll

Right off the bat I want to apologize. I am very new to making macros and if this is an easy answer I'm sorry. In the campaign that I am running my players have a choice of how many dice they wish to roll. All the examples of macros that I have found have a preset number of dice. Is there anyway I can create a macro that would allow my player's to choose a specific number of dice?
I'm not quite sure what you're trying to do - could you give an example of the macros you're working with? Speaking generally the /roll XdY command can alter the amount of dice you'd roll, X being the number of dice rolled and Y being the number of faces on the die. You could make a macro, copy it and edit the number of dice rolled in each macro? That way you could have macros named Roll1 (/roll 1d20 for one dice) Roll2 (/roll 2d20 for two dice) and so on.
1362701855
Gauss
Forum Champion
This is a pretty common request for games where a variable number of dice are used. Here are a couple of the ways to do this: A) As Eivind stated, you can use a number of macros each with the proper number of dice. Example: macro called 1d6 would roll 1d6. A macro called 2d6 would roll 2d6. etc. B) Using a variable attribute in a macro. How to set up: 1) Set up a character sheet. 2) Make an attribute and call it 'variable' 3) Make a token and link it to the character sheet.  4) Link one of the bubbles to the attribute called 'variable'. 5) Make a macro that looks like this: /roll @variable d6   Note: delete the space between variable and d6. 6) Change the value in the token and then hit the macro.  - Gauss
A variation on Gauss' suggestion:  Each token has 3 bubbles.  So you can use 3 variables.  If you make it a dummy token, and give control to all players, then assign each bubble to a player 'verbally' they can then type what they need in as it comes up.