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

Character Sheet Attacks Macro +?{Attack Mod.?|0}} ?

I'm wondering if it's possible to combine the two. I've tried  %{Coffee|attacks_buttons_macro+?{Attack Mod.?|0}} It gives the +1 but doesn't add it to the actual attack you choose via the %{Coffee|attacks_buttons_macro} Anyone know how to combine em?
AFAIK, you'd have to re-roll the entire attack roll within the macro itself. You wouldn't be able to add a variable into an existing macro without use of the API.
1487104886
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
What sheet are you using?
1487122290
Lithl
Pro
Sheet Author
API Scripter
If your ability were something like /r d20 , you could use %{Coffee|attacks_buttons_macro}+?{Attack Mod?|0} . That's not a solution if it's an inline roll, or a more complicated roll where simply adding the modifier on the end is sufficient. If the ability is coming from a sheet, many (but not all) sheets have some means of customizing the roll, so you could add the query there.
1487139676

Edited 1487139795
Elena S.
Sheet Author
From my experience if the sheet is using a roll template you would actually need to put the query in the relevant attribute field of for instance the weapon being used. Basically this means that you would add the query code into the value field of your attack modifer. You might put "1+?{Attack Mod?|0}" as the actual value of your attack modifier for the weapon. This will only work however if the attribute type on the character sheet is set to "text" if it's set as "number" it won't allow you to do this. One of the difficulties of this is that you'd have to input the query into every attack modifier attribute on the character sheet(s).