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

Macro Request - Activating/Deactivating Mage Armor / Shield

1751470125

Edited 1751470383
Hello, I have a player who is using a weapon + shield but sometimes he opts to use 2h and drop his shield and would like for him to keep track of AC change when he opts to change it during combat. I also have another player who uses Mage Armor or spell: Shield and since spell shield last until the start of it's next turn, they keep forgetting to change it or we both forget they had a +5. I'd like a macro, ideally a drop down menu with options that looks like this: (but a single use macro is fine.) Default - (Removes anything that was toggled on) Physical Shield Spell Shield Mage Armor Bonus if we can add these if we are creating a drop down menu Armored - when they are wearing their equipment's Unarmored - when they are in street clothes Warding Bond Shield of Faith Haste Barkskin Ceremony: Wedding
1751482807
Gauss
Forum Champion
Hi Novercalis,  Which character sheet are you using? 
2014 sheet
1751488533

Edited 1751488657
You need to be more specific, or post a screen shot of the character sheet. There are lot of different games being played on Roll20, and "2014" could apply to any of a dozen or more different character sheets. Edit: reading your original post, it looks like you're playing D&D. Are you referring to the D&D 5E by Roll20 (2014) sheet? Novercalis said: 2014 sheet
lol sry busy - but yes they D&D 5E OGL sheet
1751494166

Edited 1751494182
Gauss
Forum Champion
Your best bet here is probably to use ChatSetAttr in combination with a Chat Menu.  In the character's Abilities macros, create a Chat Menu macro.  Then create more Abilities macros, each with a ChatSetAttr command to turn on/off the checkboxes in equipment, global abilities, etc. Please let me know if you need further help constructing that. 
never used ChatSetAttr, mostly Token Mod. I was hoping to make something like my Dark Vision Macro !token-mod {{?{What Type of Vision - DIM/BRIGHT |None/Blind, --set has_bright_light_vision#no emits_bright_light#no bright_light_distance#0 has low_light_vision#no emits_low_light#no low_light_distance#0 aura1_radius# has_night_vision#no has night_vision_distance#0 night_vision_tint#transparent |Darkvision 60/60ft, --set has_bright_light_vision#yes emits_bright_light#no bright_light_distance#60 has low_light_vision#yes emits_low_light#no low_light_distance#60 has_night_vision#yes night_vision_distance#60 night_vision_tint##ff0000 night_vision_effect#off aura1_radius# |Darkvision 30/30ft, --set has_bright_light_vision#yes emits_bright_light#no bright_light_distance#60 has low_light_vision#yes emits_low_light#no low_light_distance#60 has_night_vision#yes night_vision_distance#30 night_vision_tint##ff0000 night_vision_effect#off aura1_radius# |Darkvision 15/15ft, --set has_bright_light_vision#yes emits_bright_light#no bright_light_distance#60 has low_light_vision#yes emits_low_light#no low_light_distance#60 has_night_vision#yes night_vision_distance#15 night_vision_tint##ff0000 night_vision_effect#off aura1_radius#|}}}
1751498804
Gauss
Forum Champion
It would probably be possible to use a query in ChatSetAttr for this, but because you would be turning on and off so many disparate elements, I'd really recommend a Chat Menu instead. In your example query you are basically setting the same thing, vision.  In your original post, you have many different elements which will each need their own controls.  Setting up a query to do multiple elements at once would be more difficult than a Chat Menu. 
Not sure if helpful or useful or possible But because in the OGL sheet, when you add a shield to inventory and open its menu, there is a line called MOD that contains the +2 AC, so when you check on/off the box, it reflects on the AC I was planning on having Mage Armor, Shield of Faith, etc in the inventory section and find a way to toggle items from inventory; which in turn, will reflects the AC. 
1751501157
Gauss
Forum Champion
That is exactly what I was figuring on, using Global AC or equipment switches in the ChatSetAttr commands. 
1751507705
Gauss
Forum Champion
I don't know if I will have time to work on this today, I'll try to tackle it tomorrow but with the holiday it may be after this weekend. 
no worries, much appreciated and enjoy the weekend.
any luck Gauss? Also, is it possible to set a delay between a command? basically, making a Magic Missile command using VFX /fx missile-water @{target|Caster|token_id} @{target| one |token_id} /fx missile-water @{target|Caster|token_id} @{target| two |token_id} /fx missile-water @{target|Caster|token_id} @{target| three |token_id} and it will shoot 3, but is there a way to add a delay between each shot? like /wait 100ms or something of that sort?
1751940128

Edited 1751940186
Gauss
Forum Champion
Novercalis,  I am now able to work on it. Was busy over the weekend.  Please provide a screenshot of the character sheet with the screenshot focused on the Global AC and Equipment sections.  Regarding your Magic Missile FX question, I'd ask that in a separate thread so that it gets the attention it needs. I am not able to answer that question.