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

'Turn on Global Modifier'.... Magic Button!

Hi I'm a D&D 5e DM with a question! I'm a pro user (with access to API's like chatsettattr) and use the 5e OLG sheet. It has a great 'Global Damage Modifier' field, which is great for when players use something like 'Rage' or a spell like 'Crusader's Mantle'. However, I'm trying to find a way to quickly enable, or disable the 'tickbox' for multiple players in one go. I currently have a 'ticked' global damage modifier that says... ?{Is this a weapon attack and are you within 30ft of Bob the wizard?|No, 0|Yes,+1d4} However, this question should only be asked while Bob is actually concentrating on the specific spell. - The rest of the time, the extra damage won't apply and the box does not need to be ticked, and I don't want the prompt to appear when people make an attack roll. Is there a way that I can perhaps 'select' all tokens and then globally enable, or disable certain 'global modifiers' with the click of a button? - Or better still! Allow the spellcaster themselves to use a magic button to enable/disable peoples Global Damage modifiers? Thanks!
1538481387

Edited 1538483221
I think I'm getting a bit closer - after finding this post here: <a href="https://app.roll20.net/forum/post/6589839/one-click-bless-activation-button" rel="nofollow">https://app.roll20.net/forum/post/6589839/one-click-bless-activation-button</a> Turn it off would presumably... !setattr --sel --repeating_tohitmod_$0_global_attack_active_flag|0 Turning it ON would presumably be... !setattr --sel --repeating_tohitmod_$0_global_attack_active_flag|1 However, i have no idea what the correct code/wording would be for the 'global damage modifier' field would be... - The ones above look to be the 'global attack modifier'. - Thanks!
You're on the right track. The damage mods are in repeating_damagemod and the attribute is global_damage_active_flag . !setattr --sel --repeating_damagemod_$0_global_damage_active_flag|0 !setattr --sel --repeating_damagemod_$0_global_damage_active_flag|1
Perfect. Thanks. What I've done is take this and turned it into a little macro type thing that gives me a drop down multiple choice options. Now when the macro is run, I can either choose to 'enable' or 'disable'. All I need to do is ensure that the chosen tokens are selected before clicking on the button. !setattr --sel --repeating_damagemod_$0_global_damage_active_flag|[[?{Activate Crusaders Mantle or Deactivate it?|Activate, 1 |Deativate, 0}]]
Hey - Following on from this - I'm having an issue with that text.... ( <a href="https://image.ibb.co/bZ5CgV/20181027-023440.gif" rel="nofollow">https://image.ibb.co/bZ5CgV/20181027-023440.gif</a> ) It seems that the more than the tickbox is being being modified by the text I'm inputting... Anyone got any good ideas?