Vince said: Alex B. said: Hi, I'm having a little issue with the attack button macros on the Pathfinder character sheet template. I need to modify them slightly to add in weapon enhancement damage (1d6) or rogue sneak attack damage. The first thing I tried was to add this line to the macro in the "macro text" section of the attacks tab : {{lightning damage=[[1d6]]}} This works fine as long as I click the button in the character sheet window, but it fails when I link the button to my macro bar or when I try to call it with %{selected|repeating_weapon_1_Attack} from the attributes and abilities page. It simply calls the pre-made macro without the fix ! I don't want to have to open up my character sheet every time I attack, so the next thing I tried was to copy/paste the macro text into the attributes and abilities section, adding in "repeating_weapon_1_" before all of the attributes specific to the attack. This ALSO failed because I don't seem to have access to the total-attack and total-damage fields... I get the error message No attribute was found for @{Arik|repeating_weapon_0_total-attack} No attribute was found for @{Arik|repeating_weapon_0_total-damage} Is there some way I can make this work ? It would be great if you could make %{selected|repeating_weapon_1_Attack} function call the macro as it is written in the the text box rather than calling the pre-made macro... Hi Alex. This is an OFTEN asked question. :-) The Pathfinder sheet uses repeatable items in many areas, class abilities, attacks, feats, traits, racial traits, spells, equipment, etc. Repeatable item attribute do not exist until they are added [+Add] at the bottom of repeatable items on the sheet. Roll20 does not create attributes for repeatable items the same as other other non-repeatable attributes. Sam, the original creator of the pathfinder sheets, added button bars that have "hard coded" macros written into the sheet that correspond directly with the repeatable items.(0-26) You can drag and drop the attack bar buttons and you can use their button roll name directly in other macros. ie %{selected|repeating_weapon_0_Attack} Since the code is written into the sheet, the only way to modify the button bar macros, is to edit the sheet's html (Mentor level feature) and create your own custom version of the sheet. The macro-text on repeatable items, allow the user to modify the repeatable item's button macro. Downside, you have to open the sheet and use the repeatable item's button in order for it to use the macro-text entered. You can copy the macro-text and with a little substitution/editing, you can make your own custom ability macros. For repeatable items, you need to include the the "long path" to call each attribute, meaning you will need to use @{selected|repeatable_item...} in order to use the correct attributes in your macro. Also, any auto-calculated attributes will require that you enter the entire formula in order for it to work. You can learn the auto-calculated formula for specific attributes by using the right-click, Inspect element(chrome) and copy the html of the attribute for value="something..." ie the formula for @{repeating_weapon_X_total-attack} is (@{proficiency} + (((@{enhance} + @{masterwork}) + abs(@{enhance} - @{masterwork})) / 2) + @{attack} + @{attack-type} + @{armor-proficiency}) Roll20 could really help out character sheets with added support for repeatable items. Please add a comment/vote for the suggestion Official support for repeating sections in character sheets Cheers. Thanks for your long reply. I understand everything now :). I actually did what you advised, I copy-pasted the attack macro text into the attributes and abilities macro section and replaced @{repeating_weapon_X_total-attack} and @{repeating_weapon_X_total-damage} by their formulas from the "inspect" feature on chrome. I thought I'd post the final macro here so nobody else has to go through the pain of doing it !! It's long but it works ^^. Here is for weapon 0. You can copy paste into work and find and replace "repeating_weapon_0" "with repeating_weapon_1" for your other buttons. This macro adds a d6 of lightning damage to the attack, good luck finding that ;). &{template:pf_attack}
{{character_name=@{character_name}}} {{character_id=@{character_id}}}
{{name=@{repeating_weapon_0_name}}}
{{attack=[[1d20cs>@{repeating_weapon_0_crit-target}
+(@{repeating_weapon_0_proficiency} + (((@{repeating_weapon_0_enhance} + @{repeating_weapon_0_masterwork})
+ abs(@{repeating_weapon_0_enhance} - @{repeating_weapon_0_masterwork})) / 2) +
@{repeating_weapon_0_attack} + @{repeating_weapon_0_attack-type} + @{armor-proficiency})
]]}} {{damage=[[@{repeating_weapon_0_damage-dice-num}d@{repeating_weapon_0_damage-die}
+(@{repeating_weapon_0_enhance} + @{repeating_weapon_0_damage} +
@{repeating_weapon_0_damage-ability})]]}} {{lightning damage=[[1d6]]}}
{{crit_confirm=[[1d20 +(@{repeating_weapon_0_proficiency} +
(((@{repeating_weapon_0_enhance} + @{repeating_weapon_0_masterwork}) +
abs(@{repeating_weapon_0_enhance} - @{repeating_weapon_0_masterwork})) / 2) +
@{repeating_weapon_0_attack} + @{repeating_weapon_0_attack-type} + @{armor-proficiency})
]]}} {{crit_damage=[[(@{repeating_weapon_0_damage-dice-num} *
(@{repeating_weapon_0_crit-multiplier} - 1))d@{repeating_weapon_0_damage-die}
+(@{repeating_weapon_0_enhance} + @{repeating_weapon_0_damage} +
@{repeating_weapon_0_damage-ability})* (@{repeating_weapon_0_crit-multiplier} -
1))]]}} {{type=@{repeating_weapon_0_type}}}
{{description=@{repeating_weapon_0_notes}}}