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

Question about macros executing complex macros

So I have a couple different complex macros that ask for input. Example: [[ ?{Attack Type|Standard, 1d20|Advantage, 2d20d1|Disadvantage, 2d20dh1} + ?{d20 Modifier|0} ]] ?{Reason?|General, |AC, vs @{target|character_name} AC|Saving Throw, ?{Save ability|Strength|Dexterity|Constitution|Intelligence|Wisdom|Charisma} } When you use the macro it asks if this is roll is standard, advantage, or disadvantage. It then asks for the d20 modifier. Lastly it asks if this is a general role, vs a target's AC, or a Saving Throw (and what type if it is). The question - Am I able to make a macro that executes the macro then automatically answers the prompts? I imagine it something like "#Macro, option 1, 4, option 3, option 5"
1444428934

Edited 1444429072
Ziechael
Forum Champion
Sheet Author
API Scripter
Not that I know of, although wouldn't: [[ 1d20 + 4 ]] Saving Throw: @{Wisdom} Do just that with the same level of effort? The  Dice Reference gives good info on what is generally possible but the gold nugget on that page has to be the  order of operations , that should tell you just how far you can push the bar without snapping it completely :)
ItsZagur said: The question - Am I able to make a macro that executes the macro then automatically answers the prompts? I imagine it something like "#Macro, option 1, 4, option 3, option 5" If I'm understanding the question properly, you could (ab)use API Command Buttons to this effect. e.g. [Roll ?{Reason?|General, |AC, vs @{target|character_name} AC|Saving Throw, ?{Save ability|Strength|Dexterity|Constitution|Intelligence|Wisdom|Charisma} }](!
[[ ?{Attack Type|Standard, 1d20|Advantage, 2d20d1|Disadvantage, 2d20dh1} + ?{d20 Modifier|0} ]] ?{Reason?})
1444433316

Edited 1444433447
Okay, I definitely did misunderstand the question. I'll have to echo Ziechael in that I do have no idea if it's possible to "pre-execute" a Roll Query via chat input, API or not. However, it is possible to use keys to navigate dropdown menus quite rapidly. For example, if I wanted to make a +0 Charisma save with Disadvantage, I would execute the macro, select a target, and then immediately press the following keys: D, Enter, Enter, S, Enter, C, C, Enter .
[Roll ?{Reason?|General, |AC, vs @{target|character_name} AC|Saving Throw, ?{Save ability|Strength|Dexterity|Constitution|Intelligence|Wisdom|Charisma} }](!
[[ ?{Attack Type|Standard, 1d20|Advantage, 2d20d1|Disadvantage, 2d20dh1} + ?{d20 Modifier|0} ]] ?{Reason?}) This looks a lot like the macro I currently use before interpretation. I'm hoping I can call that macro inside a second macro with preset answers. So the second macro would be more akin to "#macro general, advantage, +4"