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 Woes

Really loving the things you can pull off with those things, even though I have a hard time wrapping my head around it. What want the most is the ability to use the sheet's very efficient auto attack calculator, but also add a prompt to allow users to add circumstantial bonuses to attack and damage (such as charging, buffs, etc). Is such a thing even possible? I know prompts are possible as I've used them before, but I've never seen them combined with the sheet's macros. On a side note, dragging the sheet's button onto the macro bar is amazingly convenient, but it tends to give them huge names that take up the entire macro bar, and as far as I know you cannot change them
1439960155

Edited 1439969785
vÍnce
Pro
Sheet Author
Jeremie, if you use the repeating attacks on the on the sheet, you can modify the macro text to include a query that asks for any additional attack modifiers.   Example(repeating attack with an attack and damage mod query) &{template:pf_attack} {{character_name=@{character_name}}} {{character_id=@{character_id}}} {{name=@{name}}} {{attack=[[ 1d20cs>[[ @{crit-target} ]] + [[ @{total-attack} ]] + [[ ?{Attack modifier?|0} ]][mod] ]] }} {{damage=[[ @{damage-dice-num}d@{damage-die} + [[ @{total-damage} ]] + [[ ?{Damage modifier?|0} ]][mod] ]]}} {{crit_confirm=[[ 1d20 + [[ @{total-attack} ]] + [[ ?{Attack modifier?|0} ]][mod] ]]}} {{crit_damage=[[ [[ (@{damage-dice-num} * (@{crit-multiplier} - 1)) ]]d@{damage-die} + [[ ((@{total-damage} + [[ ?{Damage modifier?|0} ]][mod] ) * (@{crit-multiplier} - 1)) ]]  ]]}} {{type=@{type}}} {{description=@{notes}}} @{macro_options} @{iterative_attacks} As you probably know, you cannot drag the repeating attack buttons to the macro bar like you can with the attack button bar(0-26). You can either use the repeating attacks and have access to modify the macro text, drag and drop from the attack button bar without custom macro text, or create a custom ability macro that includes all of the repeating attributes for an attack.  Due to the current limitations of repeating items, you cannot use auto-calculated attributes(total-attack and total-damage).  You have to enter the entire formula used to derive any auto-calculated fields.  This can make for a HUGE macro, but it is very doable.  Example(ability macro with an attack and damage mod query) &{template:pf_attack} {{character_name=@{selected|character_name}}} {{character_id=@{selected|character_id}}} {{name=@{selected|repeating_weapon_0_name}}} {{attack=[[ 1d20cs>@{selected|repeating_weapon_0_crit-target} + [[ (@{selected|repeating_weapon_0_proficiency} + (((@{selected|repeating_weapon_0_enhance} + @{selected|repeating_weapon_0_masterwork}) + abs(@{selected|repeating_weapon_0_enhance} - @{selected|repeating_weapon_0_masterwork})) / 2) + @{selected|repeating_weapon_0_attack} + @{selected|repeating_weapon_0_attack-type} + @{selected|armor-proficiency}) ]] + [[ ?{Attack modifier?|0} ]][mod] ]]}} {{damage=[[ @{selected|repeating_weapon_0_damage-dice-num}d@{selected|repeating_weapon_0_damage-die} + [[ (@{selected|repeating_weapon_0_enhance} + @{selected|repeating_weapon_0_damage} + @{selected|repeating_weapon_0_damage-ability} + [[ ?{Damage modifier?|0} ]][mod] ) ]] ]]}} {{crit_confirm=[[ 1d20 + [[ (@{selected|repeating_weapon_0_proficiency} + (((@{selected|repeating_weapon_0_enhance} + @{selected|repeating_weapon_0_masterwork}) + abs(@{selected|repeating_weapon_0_enhance} - @{selected|repeating_weapon_0_masterwork})) / 2) + @{selected|repeating_weapon_0_attack} + @{selected|repeating_weapon_0_attack-type} + @{selected|armor-proficiency}) ]] + [[ ?{Attack modifier?|0} ]][mod] ]]}} {{crit_damage=[[ [[ ([[ @{selected|repeating_weapon_0_damage-dice-num} ]] * ([[ @{selected|repeating_weapon_0_crit-multiplier} ]] - 1)) ]]d@{selected|repeating_weapon_0_damage-die} + [[ ([[ (@{selected|repeating_weapon_0_enhance} + @{selected|repeating_weapon_0_damage} + @{selected|repeating_weapon_0_damage-ability} + [[ ?{Damage modifier?|0} ]][mod] ) ]] * (@{selected|repeating_weapon_0_crit-multiplier} - 1)) ]] ]]}} {{type=@{selected|repeating_weapon_0_type}}} {{description=@{selected|repeating_weapon_0_notes}}} @{selected|macro_options} You cannot change the names of the sheet rolls you drag and drop to the macro bar, but you can just use the name of the roll from within another macro named whatever you like.  If you hover over a sheet roll button, you will see the name of the macro. In the image below, I'm hovering over attack 0 on the button bar.  You can see the name of the macro is "%{selected|repeating_weapon_0_Attack}" If you make yourself a new macro called "Sword" or whatever and include "%{selected|repeating_weapon_0_Attack}" as the command in the macro, it will launch attack 0 the same as if you pushed the button on the sheet or used a drag/drop of that button on the macro bar.  So, there's your workaround for the long inconvenient names. As mentioned, repeating attacks cannot be drag/dropped or used in another macro in this manner.  Please add a comment and/or vote for  Official support for repeating sections in character sheets .  Cheers EDIT: forgot to add the damage mod query.
This is a bit late, but I got busy. Thank you, its perfect.
I've noticed that the macro does not take the iterative attacks into account. Is there a way to make it so?
1442450906
vÍnce
Pro
Sheet Author
Iterative attacks either work from within the repeating attack(from the sheet) or thru creating a custom macro that includes a fixed number of attacks.  You would need to add additional iterative attacks to the macro as needed. example of 2 attacks with attack and damage query &{template:pf_attack} {{character_name=@{selected|character_name}}} {{character_id=@{selected|character_id}}} {{name=@{selected|repeating_weapon_0_name}}} {{attack=[[ 1d20cs>@{selected|repeating_weapon_0_crit-target} + [[ (@{selected|repeating_weapon_0_proficiency} + (((@{selected|repeating_weapon_0_enhance} + @{selected|repeating_weapon_0_masterwork}) + abs(@{selected|repeating_weapon_0_enhance} - @{selected|repeating_weapon_0_masterwork})) / 2) + @{selected|repeating_weapon_0_attack} + @{selected|repeating_weapon_0_attack-type} + @{selected|armor-proficiency}) ]] + [[ ?{Attack modifier?|0} ]][mod] ]]}} {{damage=[[ @{selected|repeating_weapon_0_damage-dice-num}d@{selected|repeating_weapon_0_damage-die} + [[ (@{selected|repeating_weapon_0_enhance} + @{selected|repeating_weapon_0_damage} + @{selected|repeating_weapon_0_damage-ability} + [[ ?{Damage modifier?|0} ]][mod]) ]] ]]}} {{crit_confirm=[[ 1d20 + [[ (@{selected|repeating_weapon_0_proficiency} + (((@{selected|repeating_weapon_0_enhance} + @{selected|repeating_weapon_0_masterwork}) + abs(@{selected|repeating_weapon_0_enhance} - @{selected|repeating_weapon_0_masterwork})) / 2) + @{selected|repeating_weapon_0_attack} + @{selected|repeating_weapon_0_attack-type} + @{selected|armor-proficiency}) ]] + [[ ?{Attack modifier?|0} ]][mod] ]]}} {{crit_damage=[[ [[ ([[ @{selected|repeating_weapon_0_damage-dice-num} ]] * ([[ @{selected|repeating_weapon_0_crit-multiplier} ]] - 1)) ]]d@{selected|repeating_weapon_0_damage-die} + [[ ([[ (@{selected|repeating_weapon_0_enhance} + @{selected|repeating_weapon_0_damage} + @{selected|repeating_weapon_0_damage-ability} + [[ ?{Damage modifier?|0} ]][mod]) ]] * (@{selected|repeating_weapon_0_crit-multiplier} - 1)) ]] ]]}} {{type=@{selected|repeating_weapon_0_type}}} {{description=@{selected|repeating_weapon_0_notes}}} {{attack2=[[ 1d20cs>[[ @{selected|repeating_weapon_0_crit-target} ]] + [[ ( (@{selected|repeating_weapon_0_proficiency} + (((@{selected|repeating_weapon_0_enhance} + @{selected|repeating_weapon_0_masterwork}) + abs(@{selected|repeating_weapon_0_enhance} - @{selected|repeating_weapon_0_masterwork})) / 2) + @{selected|repeating_weapon_0_attack} + @{selected|repeating_weapon_0_attack-type} + @{selected|armor-proficiency}) ) + [[ ?{Attack modifier?|0} ]][mod] ]] + @{selected|repeating_weapon_0_iterative_attack2_value} ]] ]]}} {{damage2=[[ @{selected|repeating_weapon_0_damage-dice-num}d@{selected|repeating_weapon_0_damage-die} + [[ (@{selected|repeating_weapon_0_enhance} + @{selected|repeating_weapon_0_damage} + @{selected|repeating_weapon_0_damage-ability}) ]] + [[ ?{Damage modifier?|0} ]][mod]) ]] ]]}} {{crit_confirm2=[[ 1d20cs>[[ @{selected|repeating_weapon_0_crit-target} ]] + [[ ( (@{selected|repeating_weapon_0_proficiency} + (((@{selected|repeating_weapon_0_enhance} + @{selected|repeating_weapon_0_masterwork}) + abs(@{selected|repeating_weapon_0_enhance} - @{selected|repeating_weapon_0_masterwork})) / 2) + @{selected|repeating_weapon_0_attack} + @{selected|repeating_weapon_0_attack-type} + @{selected|armor-proficiency}) ) + [[ ?{Attack modifier?|0} ]][mod] ]] + @{selected|repeating_weapon_0_iterative_attack2_value} ]] ]]}} {{crit_damage2=[[ @{selected|repeating_weapon_0_damage-dice-num}d@{selected|repeating_weapon_0_damage-die} + [[ (@{selected|repeating_weapon_0_enhance} + @{selected|repeating_weapon_0_damage} + @{selected|repeating_weapon_0_damage-ability}) ]] + [[ ?{Damage modifier?|0} ]][mod]) ]] ]]}} @{selected|macro_options}