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 getting overwritten when toggling advantage (dnd)

1677530001

Edited 1677530492
Hello,  The title may be quite misleading, but here is the thing. I scrambled a macro by browsing here and on Reddit for what I was looking, specifically always rolling Perception with disadvantage. I do not know anything about properly code it in the first place, hence my topic. The Macro I use, which actually works, is the following  @{wtype}&{template:simple} {{rname=^{perception-u}}} {{mod=@{perception_bonus}}} {{r1=[[@{d20}+1[wisdom]@{pbd_safe}]]}} {{disadvantage=1}} {{r2=[[@{d20}+1[wisdom]@{pbd_safe}]]}} {{global=@{global_skill_mod}}} @{charname_output}{{imposed=(Aveugle d'un oeil)}} I tried to replace the base one, in the "Attributes and Abilities" section of my sheet, replacing the base one for "perception_roll" However, I noticed that if I toy with the advantage/disadvantage toggle on my sheet, this macro get overwritten by the base one.  Does someone have an idea why this is a thing, and if there's a way to make this stick despite me toggling adv/dis for other stuff ?
1677530974

Edited 1677531091
Gauss
Forum Champion
Ok, I think you might have some confusion on what a macro is.  The "perception_roll" is an Attribute, not a macro. Unless you are willing to mess up your character sheet's stats, don't modify Attributes. If you are willing to do that, make sure you duplicate your character before modifying attributes. Just to have a backup.  The macros on your character sheet are called Abilities. If you put the above macro code in an Ability it should work correctly. 
It seems like I was indeed. I'm glad the sheetworkers did overwrite the mess I put in my attribute.  I put the macro in the Ability, and was able to do what I wanted to in the first place. Thanks lad ! :)
1677535406
Gauss
Forum Champion
Drakoniid said: It seems like I was indeed. I'm glad the sheetworkers did overwrite the mess I put in my attribute.  I put the macro in the Ability, and was able to do what I wanted to in the first place. Thanks lad ! :) Lad? LOL, I am probably a bit old to be called "lad". (For reference, I started playing D&D back in Basic D&D...over 4 decades ago now.)