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] Macro issue with attacks

Using the Pathfinder sheet. Currently, I'm trying to create a macro for Rapid Shot, but when I use this line:   %{Jex|repeating_weapon_3_Attack} it doesn't include the iterative attack, or the ranged notes if there are any. Is there anyway to include the iterative attack using the macro? Or do I need to keep the character sheet open to roll that?
1439076626
Gen Kitty
Forum Champion
As this seems to be more of a character sheet issue, I'll shift it over there.  No worries, we don't mind doing it!
I know that I can use this: &{template:pf_attack} {{character_name=@{Jex|character_name}}} {{character_id=@{Jex|character_id}}} {{name=+1 Composite Longbow(Deadly Aim and Rapid Shot)}} {{attack=[[ 1d20cs>[[ 20 ]] + [[ 6 ]] ]]}} {{damage=[[ 1d8 + [[ 10 ]] ]]}} {{crit_confirm=[[ 1d20 + [[ 6 ]] ]]}} {{crit_damage=[[ [[ (1 * (3 - 1)) ]]d8 + [[ (10 * (3 - 1)) ]] ]]}} {{type=Piercing}} {{description=}} {{attack2=[[ 1d20cs>[[ 20 ]] + [[ 6 + 0 ]] ]]}} {{damage2=[[ 1d8 + [[ 10 ]] ]]}} {{crit_confirm2=[[ 1d20 + [[ 6 + 0 ]] ]]}} {{crit_damage2=[[ [[ (1 * (3 - 1)) ]]d8 + [[ (10 * (3 - 1)) ]] ]]}} 0 0 0 0 0 0 {{ranged_notes=@{Jex|ranged-attack-notes}}} 0 But if I do, I have to change it everytime I level, and ideally, I'd like to avoid that.
1439078750
vÍnce
Pro
Sheet Author
Tyler O. said: Using the Pathfinder sheet. Currently, I'm trying to create a macro for Rapid Shot, but when I use this line:   %{Jex|repeating_weapon_3_Attack} it doesn't include the iterative attack, or the ranged notes if there are any. Is there anyway to include the iterative attack using the macro? Or do I need to keep the character sheet open to roll that? Hi Tyler.  Unfortunately this is a limitation of repeating items. You can't drag/drop or call the sheet roll in another macro like you can with regular attributes. The iterative attacks only work from the repeating attack sheet roll.  The additional notes can be toggled per repeating attack, but similarly only work from within the repeating attack sheet roll. There is a "global" option to include various notes the affect all attack button bar rolls(0-26). Good suggestion to support:  Official support for repeating sections in character sheets You can manually create a macro that includes additional iterative attacks(these will be huge because you need to include the long repeating attack attribute names as well as any formulas used for auto-calc attributes like total-attack and total-damage).  If you have a look at the  PF beta sheet , one of the tokens on the map includes up to 4 iterative attacks.  You can copy/paste into your own macro. Hope this helps.  Cheers
Vince said: Tyler O. said: Using the Pathfinder sheet. Currently, I'm trying to create a macro for Rapid Shot, but when I use this line:   %{Jex|repeating_weapon_3_Attack} it doesn't include the iterative attack, or the ranged notes if there are any. Is there anyway to include the iterative attack using the macro? Or do I need to keep the character sheet open to roll that? Hi Tyler.  Unfortunately this is a limitation of repeating items. You can't drag/drop or call the sheet roll in another macro like you can with regular attributes. The iterative attacks only work from the repeating attack sheet roll.  The additional notes can be toggled per repeating attack, but similarly only work from within the repeating attack sheet roll. There is a "global" option to include various notes the affect all attack button bar rolls(0-26). Good suggestion to support:  Official support for repeating sections in character sheets You can manually create a macro that includes additional iterative attacks(these will be huge because you need to include the long repeating attack attribute names as well as any formulas used for auto-calc attributes like total-attack and total-damage).  If you have a look at the  PF beta sheet , one of the tokens on the map includes up to 4 iterative attacks.  You can copy/paste into your own macro. Hope this helps.  Cheers Yeah, that's basically what I've done. I was hoping there would be an easier way, one that didn't require remembering to update the macro every level. 
1439092127

Edited 1439092186
vÍnce
Pro
Sheet Author
I would take a closer look at the macro examples on the beta sheet.  As the sheet changes (leveling up, conditions, bonuses, etc.) the repeating attacks will change automatically, so as long as your macro includes the repeating attributes , your macros will also update without the need to redo your macro. example of 2 attacks that utilize the repeating attack's attributes /em Example of adding iterative attacks manually. &{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}) ]] ]]}} {{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}}} {{attack2=[[ 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}) ) + @{repeating_weapon_0_iterative_attack2_value} ]] ]]}} {{damage2=[[ @{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}) ]] ]]}} {{crit_confirm2=[[ 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}) ) + @{repeating_weapon_0_iterative_attack2_value} ]] ]]}} {{crit_damage2=[[ @{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}) ]] ]]}}  @{macro_options} 
Does this only work with the beta sheet? Or will it work with the currently released one as well?
1439145728
vÍnce
Pro
Sheet Author
This will work for the regular sheet as well.  At the moment, there's no functional difference between the beta and the community sheet, just some small formatting changes that will be included with the next update.
OK... I must be doing something wrong... I copied the text you gave me, replaced it with the correct attack number, replaced the name and ID, but I get this: TypeError: Cannot read property 'toLowerCase' of undefined Here is what I used: &{template:pf_attack} {{character_name=@{Jex}}} {{character_id=@{Jex}}} {{name=@{repeating_weapon_3_name}}} {{attack=[[ 1d20cs>@{repeating_weapon_3_crit-target} + [[ (@{repeating_weapon_3_proficiency} + (((@{repeating_weapon_3_enhance} + @{repeating_weapon_3_masterwork}) + abs(@{repeating_weapon_3_enhance} - @{repeating_weapon_3_masterwork})) / 2) + @{repeating_weapon_3_attack} + @{repeating_weapon_3_attack-type} + @{armor-proficiency}) ]] ]]}} {{damage=[[ @{repeating_weapon_3_damage-dice-num}d@{repeating_weapon_3_damage-die} + [[ (@{repeating_weapon_3_enhance} + @{repeating_weapon_3_damage} + @{repeating_weapon_3_damage-ability}) ]] ]]}} {{crit_confirm=[[ 1d20 + [[ (@{repeating_weapon_3_proficiency} + (((@{repeating_weapon_3_enhance} + @{repeating_weapon_3_masterwork}) + abs(@{repeating_weapon_3_enhance} - @{repeating_weapon_3_masterwork})) / 2) + @{repeating_weapon_3_attack} + @{repeating_weapon_3_attack-type} + @{armor-proficiency}) ]] ]]}} {{crit_damage=[[ [[ ([[ @{repeating_weapon_3_damage-dice-num} ]] * ([[ @{repeating_weapon_3_crit-multiplier} ]] - 1)) ]]d@{repeating_weapon_3_damage-die} + [[ ([[ (@{repeating_weapon_3_enhance} + @{repeating_weapon_3_damage} + @{repeating_weapon_3_damage-ability}) ]] * (@{repeating_weapon_3_crit-multiplier} - 1)) ]] ]]}} {{type=@{repeating_weapon_3_type}}} {{description=@{repeating_weapon_3_notes}}} {{attack2=[[ 1d20cs>[[ @{repeating_weapon_3_crit-target} ]] + [[ ( (@{repeating_weapon_3_proficiency} + (((@{repeating_weapon_3_enhance} + @{repeating_weapon_3_masterwork}) + abs(@{repeating_weapon_3_enhance} - @{repeating_weapon_3_masterwork})) / 2) + @{repeating_weapon_3_attack} + @{repeating_weapon_3_attack-type} + @{armor-proficiency}) ) + @{repeating_weapon_3_iterative_attack2_value} ]] ]]}} {{damage2=[[ @{repeating_weapon_3_damage-dice-num}d@{repeating_weapon_3_damage-die} + [[ (@{repeating_weapon_3_enhance} + @{repeating_weapon_3_damage} + @{repeating_weapon_3_damage-ability}) ]] ]]}} {{crit_confirm2=[[ 1d20cs>[[ @{repeating_weapon_3_crit-target} ]] + [[ ( (@{repeating_weapon_3_proficiency} + (((@{repeating_weapon_3_enhance} + @{repeating_weapon_3_masterwork}) + abs(@{repeating_weapon_3_enhance} - @{repeating_weapon_3_masterwork})) / 2) + @{repeating_weapon_3_attack} + @{repeating_weapon_3_attack-type} + @{armor-proficiency}) ) + @{repeating_weapon_3_iterative_attack2_value} ]] ]]}} {{crit_damage2=[[ @{repeating_weapon_3_damage-dice-num}d@{repeating_weapon_3_damage-die} + [[ (@{repeating_weapon_3_enhance} + @{repeating_weapon_3_damage} + @{repeating_weapon_3_damage-ability}) ]] ]]}}  @{macro_options}
1439152072

Edited 1439152495
vÍnce
Pro
Sheet Author
I've never seen that error... ( similar issue )  BTW: You cannot call repeating attack macros using %{Jex|repeating_weapon_3_Attack}, they do not function the same as other attributes.  The button bars(0-26) were included as an alternative but the downside is that you lose access to the repeating attack's macro text for customization.  So, this needs to be a token action.  You do not need to change {{character_name=@{character_name}}} {{character_id=@{character_id}}}.  You can leave it and it will know what to insert for the macro.   I just tested on different campaign and it works as posted.
It's alright. After some thought, it doesn't take too much just recopy the text at each level, or just keep the sheet open(I may just use my table in conjunction with it.