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

Is there any way to make an Ability Macro toggle an Attack Modifier on/off? (2014 5e sheets)

Hello~ Once again, i apologize if my terminology is unclear, but basically i want an Ability Macro for a character that can toggle a +4 to-hit bonus on and off. Is there any way to do this without being a Pro subscriber?
No. Macros are ‘read only’ without the use of Mod scripts. 
As a toggle, no - macros cannot change the state of character sheet without scripts. But you can include a query for the bonus in the attack macro, such as ?{bonus?|No,+0|Yes,+4} within the inline roll of the attack - or easier yet, add that as a global damage modifier, so whenever that modifier is checked, the query pops up when you roll to attack. You can also link the global_attack_mod_flag attribute to a token bar - changing the value of that attribute between 1 and 0 enables or disables all checked on attack modifiers. Unfortunately you can't link the flags of individual modifiers, believe me, I've tried, it breaks the sheet.
Thank you!
Calavid said: Hello~ Once again, i apologize if my terminology is unclear, but basically i want an Ability Macro for a character that can toggle a +4 to-hit bonus on and off. Is there any way to do this without being a Pro subscriber? In a way, yes.  You have to create a yes/no dropdown menu by using the ?{xxx|yes, *1|no, *0} and incorporate it into your macro such that answering yes will multiply your bonus by 1 and answering no will multiply your bonus by 0.  The only downside to this is that you will have to answer yes or no every time you use the macro so make the default answer the most common answer.