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 .
×

Quick Macro help for a code newbie

Hello, roll20 community, first time posting here. Straight to the point now: is it possible to do a macro command of something like an attack roll but it has variable bonuses depending on the situation? For example: normal attack roll, but if I'm bigger than my target I receive a +2, also another +2 if I did a specific action before attacking etc.  Are there any commands that allow me to do that?
Welcome Arkiel! The answer to your question might vary depending on which sheet you're asking help for. In my answer I'll assume you're asking about the 5E OGL sheet from Roll20 for D&D 5E. If you go in the sheet's options (cog looking thingny at the top right of the sheet), you want to toggle the "SHOW GLOBAL ATTACK MODIFIER FIELD" in the list of options in the top right-ish. It adds a field on the core sheet that allows you to add modifiers you can toggle on/off depending on the situation. Personally that's how I'd do it. Yes someone could go through all the trouble to write a massive bunch of code. If you're curious you can still have a quick read into " Roll Query ". Then you'd have to design your very own attack roll using a " Roll Template ". Hopefully that'll answer at least part of your question ^.^