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

[Help] On / Off Toggle for abilities macro

Does anyone know why this Macro won't work? It's toggling the options on the sheet but not applying them when it does. /w @{character_name} @{wtype} &{template:default}{{name=@{character_name} }}{{Attributes=[Dueling Off](!setattr --sel --repeating_damagemod_$0_global_damage_active_flag|0)[Dueling On](!setattr --sel --repeating_damagemod_$0_global_damage_active_flag|1)[Rite of the Storm Off](!setattr --sel --repeating_damagemod_$1_global_damage_active_flag|0)[Rite of the Storm On](!setattr --sel --repeating_damagemod_$1_global_damage_active_flag|1)[Feral Might Off](!setattr --sel --repeating_damagemod_$2_global_damage_active_flag|0)[Feral Might On](!setattr --sel --repeating_damagemod_$2_global_damage_active_flag|1)[Resilient Hide Off](!setattr --sel --repeating_ACmod_$0_global_AC_active_flag|0)[Resilient Hide On](!setattr --sel --repeating_ACmod_$0_global_AC_active_flag|1)}}
Which character sheet are you using and which game are you playing? I’m  assuming that the ‘flag’ is just the sheets way of displaying information while the sheet is open, not the actual attribute itself. So basically you’re toggling whether it’s being shown or not, but not actually affecting the value. 
5e, the D&D 5e by Roll20 sheet. Normally the box on the sheet updates the appropriate attribute
Hmm, I just tested it out and it's working for me.   Can you post a screenshot of the Global Damage modifier section, and what the damage output looks like?
Sorry missed your response. It’s selecting the toggle box but not applying the mod.
have you tried restarting the sandbox?
Tried that. I have got the main guy working but I can't get Mage Armour to play. /w @{character_name} @{wtype} &{template:default}{{name=@{character_name} }}{{Attributes=[Dispel Mage Armour](!setattr --sel --repeating_ACmod_$0_global_AC_active_flag|0)[Cast Mage Armour](!setattr --sel --repeating_ACmod_$0_global_AC_active_flag|1)}}