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 .
×

Enable/disable feat in a attack

1422372027

Edited 1422372111
Hi, I'm new here and learning fast. But i'm Stuck at a problem: I wan't to make a macro that rolls my Attack, and Damage roll at the same time. So far I've done that. But now I'm making a possibilty to enable/disable Point Blank Feat to both my rolls (+1 attack and damage roll) I've made a Boolean that asks for point blank at my attack roll and again at my damage roll, then my macro rolls both. But can The 2nd roll "remember" the boolean from the first roll? So my macro only ask wether or not i use Point Blank and then wether or not it should put +1 in both rolls? Hope it makes sense :-) thanks in advance
1422381099
Stephen Koontz
Forum Champion
Marketplace Creator
Sheet Author
API Scripter
Compendium Curator
Attack: [[1d20 + ?{Point Blank Feat|0}]] Damage: [[1d6 + ?{Point Blank Feat|0}]] When the prompt comes up you enter 0 for no feat or 1 and it will add 1 to both attack and damage.
Thanks very much. I may think now that my macro were trying to more complex than needed:-)
1422400799
Gen Kitty
Forum Champion
Minor quirky sidenote: The second time you put ?{Point Blank Feat} you don't need to add the |0 to the expression. 'Point Blank Feat' is the name of the query, and it will only ask the value of it once. Having the default tagged on doesn't hurt anything, its just ignored. ^_^
1422403301

Edited 1422403332
Can I do the same trick just with A melee attack using power attack feat: -1 attack and then +1 damage in one on/off Boolean?
1422404520

Edited 1422404658
vÍnce
Pro
Sheet Author
I throw a query in every attack and damage roll that defaults to 0 as a "catch-all" to cover situational modifiers. add/sub any number you want. ?{Modifier?|0}
Henrik B. said: Can I do the same trick just with A melee attack using power attack feat: -1 attack and then +1 damage in one on/off Boolean? Yes; and it doesn't have to be Boolean either. Here's my "melee attack #1" macro in the game I play on weekends: /r 1d20+16-?{powerattack|0} to hit with greatsword (19-20/x2) /r 2d6+10+2*?{powerattack|0} damage When I click the button, it prompts me (once) to enter the power attack amount, then it subtracts that much from the attack roll and adds twice that much to the damage roll.
manveti said: Henrik B. said: Can I do the same trick just with A melee attack using power attack feat: -1 attack and then +1 damage in one on/off Boolean? Yes; and it doesn't have to be Boolean either. Here's my "melee attack #1" macro in the game I play on weekends: /r 1d20+16-?{powerattack|0} to hit with greatsword (19-20/x2) /r 2d6+10+2*?{powerattack|0} damage When I click the button, it prompts me (once) to enter the power attack amount, then it subtracts that much from the attack roll and adds twice that much to the damage roll. Thanks, thats very helpful!