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

Macro Help

Hope I'm posting this in the correct location. So here goes...I'm trying to make a macro for a dice roller so my players don't have so many macros on there macro bar/token macro's. I've gotten it set up pretty good so that there are drop down menus, but I can't get it to give the option to roll more than one die at a time. Here's what I've got so far: &{template:default} {{name= Dice Roller}} {{Roll= ?{Which die would you like to roll?| D4, **D4** [[d4]] | D6, **D6** [[d6]]| D8, **D8** [[d8]]| D10, **D10** [[d10]]| D12, **D12** [[d12]]| D20, **d20** [[d20]]| D100, **D100** [[d100]]}}} {{Modifiers=**?{Any Modifiers?|0}**}}}&{template:default} {{name= D4 Roll}} {{Action=[[ ?{How Many Dice Rolled?}d4+?{Any Modifiers?}]]}}. Any help getting it to be able to roll more than one die thru the ?{How many dice would you like to roll?} option, or any other way to get it to wrokwould be very much appreciated.
&{template:default} {{name= Dice Roller}} {{Roll= **?{How Many Dice Rolled?|1}?{Which die would you like to roll?|D4|D6|D8|D10|D12|D20|D100}**}} {{Modifiers=**?{Any Modifiers?|0}**}}} {{Action=[[ ?{How Many Dice Rolled?}?{Which die would you like to roll?}+?{Any Modifiers?}]]}} Personally, I'd prefer to use something like this: &{template:default} {{name=Dice Roller}} {{Rolling:= **?{Roll|2d6}**}} {{Modifiers:=**?{Modifiers|0}**}}} {{Action:=[[?{Roll} +?{Modifiers}]]}}
But the second one is only for one dice type at a time, isn't it?
Any type or amount of dice (or, usefully, combinations thereof) can be input into the freeform field of the ?{Roll} query.
Nevermind, I just tested it and you can change the dice rolled in the first value box. However I do like the first one. I'm just now introducing the drop down menus in the game for my players to see if they like them as much as I do. So I will try that one first, and if they don't like that one I will introduce the second one. I do like both of them. Thank you so much for your help. I'm just learning more of the advanced in's and out's of the macros. Also if you know any other cool macros that I should try, please feel free to post those as well. I'm always looking for things to spice up the game and make it flow more smoothly. Thinking about trying API's, but I'm not sure I'm ready for those just yet.
You're welcome. The Post Your Macros Here, pt. 3! thread is a great place to discover macro-related content and inspiration. Good luck!
How would you do a combination of dice in the freeform field?
I would type something like 1d4 + 1d8 .
Thanks for the help!
No worries. Feel free to PM me with any further questions.