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

Choose which die and then how many macro

I apologize if this is been asked before, but I have spent the last 2 days searching the boards and reading the wiki and something just isn't clicking in my head. I just want to make a whisper GM macro where it drop down queries to select which die to use and then open field queries how many of that die to roll. I have this much already  /gmroll ?{Sides|d4|d6|d8|d10|d12|d20|d100}  I just don't know how to query how many to roll
1583459941
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Try this: /gmroll ?{Number of dice|1}d?{Number of sides|4|6|8|10|12|20} ?{Number of dice|1}  queries for the number of dice. d  is needed for the roll command (i.e. "1 d 6") ?{Number of sides|4,4|6,6|8,8|10,10|12,12|20,20|}  prompts for the number of sides as a drop down. You may find it just as easy to write that last line as ?{Number of sides|20} And type in the value at run time, rather than restrict yourself to the drop down. It will just default to 20.
1583461285

Edited 1583461531
You can also try this if you like. I've been using it in my games for a while now and it seems to be working pretty solid. It uses a dropdown selection for rolling public or to GM then an open field for amount of dice and then a dropdown selection for die type and then an open field for a modifier if needed. It's doing pretty much the same thing as keithcurtis's only with some extra options I've found to be useful. ?{Roll|Public, |To DM,/w gm} Rolling ?{Number|1}?{Type|D20|D2|D4|D6|D8|D10|D12|D100} + ?{Modifier|0}: [[ ?{Number}?{Type}+?{Modifier} ]] It defaults to rolling a single d20 with no modifier publicly. I have it default to public as a few of my players use it as well.
Thank you so much guys. You saved my sanity.
1583464618
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I find the flyout menu on the toolbar's dice roller to be the bee's knees.
I made this one a while back: &{template:pf_generic}{{color=darkred}}{{name=Rolling ?{How Many Dice?|1}d?{Type to roll? (d2/d3/d4/d6/d8/d10/d12/d20/d100) |2|3|4|6|8|10|12|20|100}+?{Bonus?|0} for ?{Reason?|Test}}} {{Result=[[?{How Many Dice?}d?{Type to roll? (d2/d3/d4/d6/d8/d10/d12/d20/d100) |2|3|4|6|8|10|12|20|100}+?{Bonus?}]]}} All with dropdown selection, dice number defaults to 1, and a modifier entry (defaulted to zero) as well, with a note entry for reason for roll too. See if that does what you want.
1583827757

Edited 1583827860
vÍnce
Pro
Sheet Author
Nekronn99 said: I made this one a while back: &{template:pf_generic}{{color=darkred}}{{name=Rolling ?{How Many Dice?|1}d?{Type to roll? (d2/d3/d4/d6/d8/d10/d12/d20/d100) |2|3|4|6|8|10|12|20|100}+?{Bonus?|0} for ?{Reason?|Test}}} {{Result=[[?{How Many Dice?}d?{Type to roll? (d2/d3/d4/d6/d8/d10/d12/d20/d100) |2|3|4|6|8|10|12|20|100}+?{Bonus?}]]}} All with dropdown selection, dice number defaults to 1, and a modifier entry (defaulted to zero) as well, with a note entry for reason for roll too. See if that does what you want. Nice macro Nekronn99. Just a heads up for other's; the macro example above uses the Pathfinder Community sheet(or PF simple..?) roll template and will work w/out issues if you are using that sheet, however if you are using any other sheet, you'll need to either change the macro to use roll20's default roll template &{template:default}{{name=Rolling ?{How Many Dice?|1}d?{Type to roll? (d2/d3/d4/d6/d8/d10/d12/d20/d100) |2|3|4|6|8|10|12|20|100}+?{Bonus?|0} for ?{Reason?|Test}}} {{Result=[[?{How Many Dice?}d?{Type to roll? (d2/d3/d4/d6/d8/d10/d12/d20/d100) |2|3|4|6|8|10|12|20|100}+?{Bonus?}]]}} , your particular sheet's template, or maybe just use the macro without a template. /em Rolling ?{How Many Dice?|1}d?{Type to roll? (d2/d3/d4/d6/d8/d10/d12/d20/d100) |2|3|4|6|8|10|12|20|100}+?{Bonus?|0} for ?{Reason?|Test} = [[ ?{How Many Dice?}d?{Type to roll? (d2/d3/d4/d6/d8/d10/d12/d20/d100) |2|3|4|6|8|10|12|20|100}+?{Bonus?} ]]
How did i never use the flyout menu roller before lol!