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 to roll with advantage?

Running 5E on Roll20 and looking to figure out how I would modify an attack macro pulled from the character sheet to make the roll with advantage, i.e. using reckless attack, feint, or steady aim. Let's use the following for a new character's rapier attack.

@{name|wtype}&{template:atkdmg} {{mod=+5}} {{rname=Rapier}} {{r1=[[@{name|d20}cs>20 + 3[DEX] + 2[PROF]]]}} @{name|rtype}cs>20 + 3[DEX] + 2[PROF]]]}} {{attack=1}} {{range=}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8 + 3[DEX]]]}} {{dmg1type=Piercing}} 0 {{dmg2=[[0]]}} {{dmg2type=}} {{crit1=[[1d8[CRIT]]]}} {{crit2=[[0[CRIT]]]}} 0 {{desc=}}   {{spelllevel=}} {{innate=}} {{globalattack=@{name|global_attack_mod}}} {{globaldamage=[[0]]}} {{globaldamagecrit=[[0]]}} {{globaldamagetype=@{name|global_damage_mod_type}}} ammo= @{name|charname_output}

How would I modify this to have it roll this attack with advantage when I do not have advantage turned on globally?

In similar vein, how would I turn a skill roll such as the following into one with advantage if I have a class feature/item that gives me automatic advantage?

@{name|skill_roll}

Having it ask for advantage every time slows the game down and it's pretty common to forget to turn advantage on and off when you only need it for a single roll so I would love to be able to macro it. I don't want to create an entirely new template that does not match with the rest of the character's and the rest of the party's rolls, I just want to save myself going to my sheet, toggling advantage, rolling, and then toggling back every time. I'd make a separate attack in the character sheet just for advantage if I could designate it there.

January 13 (1 month ago)

Edited January 13 (1 month ago)

Replace @{name|rtype} with {{advantage=1}} {{r2=[[@{name|d20}

That's the output of the advantage setting of rtype. 

Edit: replacing all instances of name with the character name, of course, or if it's saved on that character's sheet, just dropping it and the pipe from all the attribute calls.

Thanks. That's a big help.




Just tried it, works like a charm. Thanks again. Out of curiosity, do you happen to know of a way to macro an "@{name|skill_roll}" to roll with advantage?




January 14 (1 month ago)

Edited January 14 (1 month ago)
Gauss
Forum Champion


Mindflenzing said:

Just tried it, works like a charm. Thanks again. Out of curiosity, do you happen to know of a way to macro an "@{name|skill_roll}" to roll with advantage?


Please supply the contents of that attribute. 

January 14 (1 month ago)

Edited January 14 (1 month ago)

Skill rolls are a bit trickier, as their full macro is not exposed in tye chat - bit it works similarly, you'll have to build it from &{template:simple}, have r1 and r2 rolls, and {{advantage=1}} in it. Depending on the features at play, things like expertise, reliable talent, or jack of all trades just need to be accounted for in the rolls.

EDIT: I was working off memory, you absolutely can check the full macro text, you'll just have to dig through the attributes & abilities tab for the attribute. Here's an Athletics macro, for example:

@{wtype}&{template:simple} {{rname=^{athletics-u}}} {{mod=@{athletics_bonus}}} {{r1=[[@{d20}+@{athletics_bonus}[Mods]@{pbd_safe}]]}} {{advantage=1}} {{r2=[[@{d20}+@{athletics_bonus}[Mods]@{pbd_safe}]]}} {{global=@{global_skill_mod}}} @{charname_output}
I must be doing something wrong. I am getting "TypeError: Ho is undefined." I tried putting "character name|" in front of "wtype" "global_skill_mod" and "charname_output" (i.e. @{Character Name|charname_output}) like in the attack macro but get the same error. I then tried copy/pasting the macro you provided unedited with a character highlighted and got the same error. Because of what you said, I also tried copy/pasting an existing "skill_roll" attribute from my character sheet into a macro and got the same error. I don't know enough to know where I am messing up. Maybe the attribute needs some modification to execute as a macro?
January 15 (1 month ago)

Where did you use it? You can skip the character reference if you save the macro as an ability, as it will load the called attributes and abilities from the same sheet by default.


Tuo said:

Where did you use it? You can skip the character reference if you save the macro as an ability, as it will load the called attributes and abilities from the same sheet by default.

I had tried to paste it into a macro or to paste it into the chat to run. Just now, I copy/pasted it into the current box of a new attribute in the character sheet but it won't show up in the character sheet.


January 15 (1 month ago)

Save it as an ability, on the right side of the attributes & abilities panel, and you can set it as a token ability or on your macro bar. You can find all your skill rolls as attributes already - set the advantage setting to what you want it to be for your macro, then just copy the attribute for the skill roll you want from your sheet, and save it as an ability, then turn back your advantage setting to your usual mode.


Tuo said:

Save it as an ability, on the right side of the attributes & abilities panel, and you can set it as a token ability or on your macro bar. You can find all your skill rolls as attributes already - set the advantage setting to what you want it to be for your macro, then just copy the attribute for the skill roll you want from your sheet, and save it as an ability, then turn back your advantage setting to your usual mode.

OK, that works as an ability. I apologize for having to ask such basic questions but I really appreciate you taking the time to help me.


January 19 (3 weeks ago)


Mindflenzing said:


Tuo said:

Save it as an ability, on the right side of the attributes & abilities panel, and you can set it as a token ability or on your macro bar. You can find all your skill rolls as attributes already - set the advantage setting to what you want it to be for your macro, then just copy the attribute for the skill roll you want from your sheet, and save it as an ability, then turn back your advantage setting to your usual mode.

OK, that works as an ability. I apologize for having to ask such basic questions but I really appreciate you taking the time to help me.

That's perfectly fine, I'm happy to have helped!