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

Need Macro Help

So I have looked all over and I cannot seem to find a specific macro. I am looking for a macro that will roll a d20 (or other die code) but then have a query prompt window pop up and ask me for a value to add to it. Like say I want to roll 1d20+7 but don't want to type it out and just want to push a macro that then asks for the value then makes the /r 1d20+7 come off automatically, or I want to roll 1d6+3 and can just put in '3' in the value query and have it come out like that. Is there a macro for that and if so what is it?
1427162606

Edited 1427162620
/r 1d20 + ?{Modifier?|0} would do what you are looking for.
1427162776

Edited 1427162821
Finderski
Plus
Sheet Author
Compendium Curator
/r 1d20+?{Modifier|0} You can replace the die type with whatever die roll you want. EDIT: "Missed it by that much..."
Thank you! :)
I think you can even make a macro. [[(?{Number|1}D?{Type|6}+?{modifier|0})]] BTW, that works.
1427192553
Ziechael
Forum Champion
Sheet Author
API Scripter
I know this has already been more than adequately answered but i never miss an opportunity to push this page (Dice Reference ). It helped me soooo much when i first started out building macros and feel like it can never be advertised enough! :) I'm also happy to help you with any macro's you need to build in future should you wish to contact me (unless they too complex in which case i'll pass!)