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

a 3 in 1 macro?

Is it possible to have a single button that can roll 1 of 3 macros that you enter. Like...you push one button and brings up a prompt that asks what the roll is for and you enter it and it spits out the appropriate roll. Im mainly asking this as my screenspace is limited and dont want to clutter up my screen with buttons for 3 different rolls.
1409915665

Edited 1409915704
Gauss
Forum Champion
It would take 3 query prompts but you could do it like this: [[?{macro1|0}*(insert macro1 formula here) + ?{macro2|0}*(insert macro2 formula here) + ?{macro3|0}*(insert macro3 formula here)]] A zero results in a zero for that formula while a 1 results in whatever the result of the formula is.
That seems like it would throw 2 zeros in the chat for the non-applicable rolls and a number for the 3rd. I also tried it out and I must be doing it wrong or something. Could you possibly replace the "insert macro formula" with an actual formula so Im a little more clear one what I need to replace please?
[[ ?{PowerAttack?|0}*(6) + ?{Sneak Attack?|0}*(2d6) + ?{SomethingSpecial?|0}*(1d6 + 12)]] Will prompt you: Power Attack? If 0, add nothing. If 1, add 6 to the inline roll Sneak Attack? If 0, add nothing. If 1, add 2d6 to the inline roll SomethingSpecial? If 0, add nothing. If 1, add 1d6+12 to the inline roll
If you are trying conserve screen space by keeping the number of Macro buttons down, why not just not put them on the screen at all and just use #macro_name from the chat log
1409949925
Gauss
Forum Champion
Sllverhand , as Mark indicated it would not throw anything extra into the chat since it is in an inline roll. If you could be more specific regarding the three macros you want we could show you how to do that.
Just a simple all in 1 roll for saves. +13,+13,+28 for my three saves
1409952504
Gauss
Forum Champion
Could you be more specific please? The entire macro for each would be helpful.
just /roll d20+13. /roll d20+13. /roll d20+28 simple ones I would like consolidated maybe a query for any temporary mobs would be nice
1409954799
Gauss
Forum Champion
I assume you are playing some variation of D&D, if that is the case try this (no /roll): Fort [[1d20+13]] Reflex [[1d20+13]] Will [[1d20+28]]
What I was after so there is less confuson for my DM is a macro that asks which of the 3 rolls I wish to roll and then rolls only that one. Is that possible?
1409956450

Edited 1409956811
Gauss
Forum Champion
I think perhaps there is some confusion as to what I have suggested, the following should have no confusion for the GM. Macro name: Saves Macro body: Fort [[1d20+13]] Reflex [[1d20+13]] Will [[1d20+28]] The output will look like this: Fort 18 Reflex 22 Will 38 Alternately, if you really just want one ouput you can use the three query macro: Macro name: Saves Macro body: [[?{Fort|0}*(1d20+13) + ?{Reflex|0}*(1d20+13) + ?{Will|0}*(1d20+28)]] Output is just a number.
If it's not clear what we're doing with these queries, we're asking the user (you) to enter a zero or a one when you hit the macro. That number is then multiplied by the actual roll. So if you entered a 1, you get the normal roll (because 1 * AnyNumber = TheSameNumber If you enter a 0, you get a 0 (because anything * 0 is 0 ) In this way you're using 1 or 0 as a boolean flag to determine which rolls you end up adding to the final result. So in Gauss' Saving Throw example , if you want to roll Reflex but not Fort or Will you would hit your macro and it will prompt you " Fort" . You enter 0 or just hit enter, thus adding "0" to your total roll. It will then ask " Reflex" , you hit 1 so it gives you 1 * (1d20+13), which is just 1d20+13 added to your total roll. And then it finally asks you " Will" which you again enter 0 or just hit enter and you get another "0" added for that. All together your total roll would be 0 + 1d20+13 + 0 In all honesty, It's generally much simpler for player and GM alike to just roll all three together on the same line. /me defends himself from attack! Fort:[[1d20+13]] ♦ Ref:[[1d20+13]] ♦ Will:[[1d20+28]]