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

[PF] Can I make a custom attack macro use the Pathfinder character sheet Buffs?

Hi--a helpful person helped write a macro which I use for all of my Monk's attacks, and it's AWESOME. The only problem is that it doesn't read any Buffs I may have active (such as a Bard's Inspire Courage or a Bull's Strength, etc) and thus we have to just remember to add them all in after the rolls are made. Is there a way to have a custom-made macro access whatever Buffs you may currently have turned on? This is the macro as it stands now (for a Flurry of Blows with Power Attack and Trait bonuses worked in): &{template:pf_attack} {{name=Flurry of Blows}} {{attack=[[1d20+@{Komodo|STR-mod}+@{Komodo|bab}+@{Komodo|PAtt}]]}} {{crit_confirm=[[1d20+@{Komodo|STR-mod}+@{Komodo|bab}+@{Komodo|PAtt}]]}} {{damage=[[1d8+@{Komodo|STR-mod}*2+@{Komodo|PDmg}+@{Komodo|HvyHit}]] bludgeon + [[1d6]] fire}} {{crit_damage=[[1d8+@{Komodo|STR-mod}*2+@{Komodo|PDmg}+@{Komodo|HvyHit}]] bludgeon}} {{attack2=[[1d20+@{Komodo|STR-mod}+@{Komodo|bab}+@{Komodo|PAtt}]]}} {{crit_confirm2=[[1d20+@{Komodo|STR-mod}+@{Komodo|bab}+@{Komodo|PAtt}]]}} {{damage2=[[1d8+@{Komodo|STR-mod}*1.5+@{Komodo|PDmg}+@{Komodo|HvyHit}]] bludgeon + [[1d6]] fire}} {{crit_damage2=[[1d8+@{Komodo|STR-mod}*1.5+@{Komodo|PDmg}+@{Komodo|HvyHit}]] bludgeon}} {{attack3=[[1d20+@{Komodo|STR-mod}+@{Komodo|bab}-5+@{Komodo|PAtt}]]}} {{crit_confirm3=[[1d20+@{Komodo|STR-mod}+@{Komodo|bab}-5+@{Komodo|PAtt}]]}} {{damage3=[[1d8+@{Komodo|STR-mod}*1.5+@{Komodo|PDmg}+@{Komodo|HvyHit}]] bludgeon + [[1d6]] fire}} {{crit_damage3=[[1d8+@{Komodo|STR-mod}*1.5+@{Komodo|PDmg}+@{Komodo|HvyHit}]] bludgeon}}
1482430470

Edited 1482430623
vÍnce
Pro
Sheet Author
Other than using an API script(a Pro perk), macros cannot affect(write to) character attributes.  Conditions/Buffs need to be activated on the sheet.  Also, while an API can affect changes to attributes, currently(and this may soon change, fingers crossed) those changes do not trigger as events for sheet workers, so the changes don't take effect until you close/re-open the sheet which kind of defeats it's usefulness. You either have to manually add the appropriate math into your macro, (maybe using a boolean type query?) or activate your conditions/buffs from the sheet prior to running your macro.
1482432113
Tetsuo
Forum Champion
@{attk-melee} @{attk-ranged} and @{DMG-mod} will all have any active buffs calculated to your roll. The attk attributes also include str/dex and your bab. So instead of 1d20+@{str-mod}+@{bab} you could instead do 1d20+@{attk-melee} and have it add bab, str, and active buffs to your rolls. and just add @{DMG-mod} to your damage rolls
1482444537

Edited 1482444554
Well the only issue there is that because of my Monk's Dragon Style, his first attack (and only the first attack) in any given round does 2 * Str mod to damage, while all the rest do 1.5 * Str mod. That's basically the whole reason I resorted to an outside macro to begin with. Maybe I'm wrong (I'm not very good at this) but seems like that wouldn't jive with using the @{DMG-mod}.
1482445018

Edited 1482445571
Tetsuo
Forum Champion
@{DMg-mod}   Is explicitly extra damage from Buffs. You would still need to add in your strength modifier times whatever it supposed to be. 
1482445351

Edited 1482445434
Oh, so I could just plug @{attk-melee} and @{DMG-mod} into the above macro at the appropriate spots along with other bonuses to hit/damage, and it would then take Buffs into account? i.e. Replacing @{Komodo|STR-mod}+@{Komodo|bab} with @{attk-melee}
1482445469

Edited 1482445498
Tetsuo
Forum Champion
Correct. 
1482447141

Edited 1482447615
Ok, preliminary tests are looking good! Question--does DMg-mod also handle Buffs to the Strength attribute? Also, for a CMB attempt, how would that be written to take buffs into account?
1482447619

Edited 1482447647
Tetsuo
Forum Champion
Shard said: Ok, preliminary tests are looking good! Question--does DMg-mod also handle Buffs to the Strength attribute? No, but @{str-mod} and @{attk-melee} will
Franky H. said: Shard said: Ok, preliminary tests are looking good! Question--does DMg-mod also handle Buffs to the Strength attribute? No, but @{str-mod} and @{attk-melee} will Awesome, thank you so much for this help! One last question--how would I work in a CMB attempt to account for Buffs? I sometimes make a Trip attempt as the first attack in a Flurry, so it's just a CMB followed by strikes.
1482448716
Tetsuo
Forum Champion
For CMB, you would just do @{CMB}
Franky H. said: For CMB, you would just do @{CMB} I meant to make it include the buffs, like a Bard's song, etc, the same stuff we just added to the actual strikes.
Oh, never mind, it is working!! :)
1482452721
Tetsuo
Forum Champion
Yup. It does include the buffs! :D