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

Attack Macro Issues

These macros I have been copying/pasting are not updating the fact that their Prof bonus is currently +3, not +2 ,  and for some reason it is applying the ranger +2 archery bonus to the katana melee attack.   Is there something obvious that I am missing?  I can see that the prof bonus is listed as 2 below but why didn't it update when their character's leveled up to +3 prof bonus? @{Titus Octavius "Octo" Albus Dominus|wtype}&{template:atkdmg} {{mod=+4}} {{rname=Katana (1-Hand)}} {{r1=[[@{Titus Octavius "Octo" Albus Dominus|d20}cs>20 + 2[STR] + 2[PROF]]]}} @{Titus Octavius "Octo" Albus Dominus|rtype}cs>20 + 2[STR] + 2[PROF]]]}} {{attack=1}} {{range=}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8 + 2[STR]]]}} {{dmg1type=Slashing}} 0 {{dmg2=[[0]]}} {{dmg2type=}} {{crit1=[[1d8[CRIT]]]}} {{crit2=[[0[CRIT]]]}} 0 {{desc=}}   {{spelllevel=}} {{innate=}} {{globalattack=@{Titus Octavius "Octo" Albus Dominus|global_attack_mod}}} {{globaldamage=[[0]]}} {{globaldamagecrit=[[0]]}} {{globaldamagetype=@{Titus Octavius "Octo" Albus Dominus|global_damage_mod_type}}} ammo= @{Titus Octavius "Octo" Albus Dominus|charname_output}
1686787934

Edited 1686834956
The macro currently has a static proficiency bonus of 2 hardcoded. Macros do not automatically update on character level up.  Assuming you’re using the ‘D&D 5E by Roll20’ character sheet, then you need to change each instance of 2[PROF] to be: @{Titus Octavius "Octo" Albus Dominus|pb}[PROF] You can also change each instance of 2[STR] with: @{Titus Octavius "Octo" Albus Dominus|strength_mod}[STR]
1686799293

Edited 1686799323
Gauss
Forum Champion
Hi Lutter,  The suggestion Jarren gave you is a good one, however I had a question. I don't see anything in this macro that is a change from the 5e by Roll20 basic attack sequence. Did I miss the change?  If not, if this is just putting your attack into a macro, you don't need to put the template in. Instead put the command code into the macro, it will roll the attack and keep it up to date without having to adjust the template.  To create that version here are the steps:  1) Drag the attack on  your character sheet to the bottom of the character sheet.  2) Push the macro button it gave you.  3) click on the chat tab 4) Click on the text box on the chat tab (as if you are about to type in the chat box) 5) Hit the "up arrow" on your keyboard.  6) Copy the command 7) Go to the Attributes & Abilities tab on your character sheet 8) Create an Ability, name it, and paste the command.  9) Set the Ability for either Token Action or Macro bar as desired.  10) Remove the macro button that has gibberish in it by hovering over the button then on the right side of the button grab the grey tab and pull it upwards off the macro bar.  Let me know if you have any issues and I will help. Good luck.
1686832164

Edited 1686834945
And if you’re just looking for an easy way to roll attacks from your character sheet, then you might be interested in using a  Macro Mule  approach.  Or you could just have a macro (like Gauss explains) but use the repeating_roll reference. E.g. just use: %{ Titus Octavius "Octo" Albus Dominus |repeating_attack_$0_attack}  Just increase the '0' to 1, 2, 3, etc. until you get the attack that you want as the macro.
Thanks guys I'll try these out and see which one works best!