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

Creating macros based on Pathfinder character sheet fuctions

My group uses the Pathfinder character sheets and while the sheets themselves are extremely powerful (and getting better all the time), the macro naming is messy. They prefer not to drag the attack macro buttons directly from the sheet down to their macro back because the resulting macro name is long and does not indicate the attack outside of a numeric placement designated by the sheet. My PCs don't tend to keep their sheets open/expanded at all times because they're somewhat slow or obstructive, so we opt to use the macro bar to link to actions on the sheet itself. The macros we use look as such and they've worked up until recently when iterative attacks started coming into play. When the attack button is pressed from the sheet itself, the macro rolls w/ any toggled iterative attacks. However, when the macro bar button is used that points to the sheet, the first attack is rolled but no iterative attacks. Does anyone have a suggestion for resolvign this? Macro button: %{ playername |repeating_weapon_0_Attack} Sheet Macro: &{template:pf_attack} {{character_name=@{character_name}}} {{character_id=@{character_id}}} {{name=@{name}}} {{attack=[[ 1d20cs>[[ @{crit-target} ]] + [[ @{total-attack} ]] ]]}} {{damage=[[ @{damage-dice-num}d@{damage-die} + [[ @{total-damage} ]] ]]}} {{crit_confirm=[[ 1d20 + [[ @{total-attack} ]] ]]}} {{crit_damage=[[ [[ (@{damage-dice-num} * (@{crit-multiplier} - 1)) ]]d@{damage-die} + [[ (@{total-damage} * (@{crit-multiplier} - 1)) ]] ]]}} {{type=@{type}}} {{description=@{notes}}} @{iterative_attacks} @{macro_options}
1447446378

Edited 1447446494
DK Heinrich
Marketplace Creator
Sheet Author
wasn't there a change where you could rename (and color) the buttons you drag off of the sheet - or am I confused again? EDIT: I think  this might help - not a solve to the above but maybe a solve to the over all problem.
1447446919

Edited 1447475028
vÍnce
Pro
Sheet Author
Hi Michael.  Iterative attacks only work from within the repeating attack itself.  The pre-set attacks (button bar) macros are coded into the sheet and due to past(update is coming that fixes this and other issues) limitations of repeating items it was not possible to include some of the options found in the repeating attack. You will either have to roll from the sheet or create a token/ability macro that includes the additional iterative attacks. If you create token/ability macro, you have to include the long files names for the repeating attributes ie {{name=@{repeating_weapon_0_name}}} and since auto-calculated repeating item attributes cannot be accessed from outside the repeating section/row, you have to include the math in your macro.  I know this is a pain and it makes for some very lonnnnnnnnnnng macros. Also, the macro text section under the preset attacks can be used to modify the pre-set macros if you want to drag and drop.  You can also rename and colorize those crazy long macro quickbar buttons now by right-clicking the macro's button. Rest assured there is an update coming(currently being tested on the Dev server) that will make these workarounds unnecessary.  The entire button bar will probably get yanked since it will no longer be needed.
1447448788

Edited 1447449744
vÍnce
Pro
Sheet Author
example of a macro for 2 iterative attacks using the PF sheet: /em Example of adding iterative attacks manually. &{template:pf_attack} {{header_image=@{header_image-pf_attack-melee}}} {{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}) + @{attk-effect-total} ]] ]]}} {{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}) + @{dmg-effect-total} + @{buff_DMG-total} ]] ]]}} {{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}) + @{attk-effect-total} ]] ]]}} {{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} + @{dmg-effect-total} + @{buff_DMG-total}) ]] * (@{repeating_weapon_0_crit-multiplier} - 1)) ]] ]]}} {{type=@{repeating_weapon_0_type}}} {{description=@{repeating_weapon_0_notes}}} @{macro_options} {{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}) + @{attk-effect-total} + @{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}) + @{dmg-effect-total} + @{buff_DMG-total} ]] ]]}} {{crit_confirm2=[[ 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}) + @{attk-effect-total} + @{repeating_weapon_0_iterative_attack2_value} ]] ]]}} {{crit_damage2=[[ [[ ([[ @{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} + @{dmg-effect-total} + @{buff_DMG-total}) ]] * (@{repeating_weapon_0_crit-multiplier} - 1)) ]] ]]}}
Thanks for the in depth response, I'll put the work around to use tonight! What a great example of what makes the Roll20 community so great. Thanks again for this and all future support within the community.