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

Individually selectable bonuses to both attack and PRECISION damage - Pathfinder 1st Edition

1605354274

Edited 1605357012
Hello everyone I need some help making and correctly inserting a macro to precision damage (Not multiplied by a critical). I already have the attack bonus in the right spot but it seems to only add +1 instead of currently +3 + [[ ?{1st Studied Combat |No,0|Yes,1}*( ({floor(@{class-0-level}/2),1)}kh1 ) ]] You can see in the picture that I have 1st Studied Combat macro for my first attack, and 2nd Studied Combat macro for my second. Now I need to fix the attack macro and I want to add a macro corresponding to 1st & 2nd that adds the same bonus as precision damage Where do I add it in the macro text?
1605370497
vÍnce
Pro
Sheet Author
Heading out the door. I'll have a look later and post back if you haven't gotten a solution by then... cheers
1605476074

Edited 1605476177
vÍnce
Pro
Sheet Author
+ [[ ?{1st Studied Combat |No,0|Yes,1}*( ({floor(@{class-0-level}/2),1)}kh1 ) ]] Change your macro a little (removed a parenthesis in the grouped roll comparison); + [[ ?{1st Studied Combat |No,0|Yes,1}*( {(floor(@{class-0-level}/2)),1}kh1 ) ]] + [[ ?{2nd Studied Combat |No,0|Yes,1}*( {(floor(@{class-0-level}/2)),1}kh1 ) ]] Given the Studied Combat bonus appears to be the same, is there a reason you need to use two unique macros for studied target?  If not, you could just use the same macro query in both places. You should be able to insert the same macro for damage in the attack's "Extra Non-Crit Dmg" field.. [[ ?{1st Studied Combat |No,0|Yes,1}*( {(floor(@{class-0-level}/2)),1}kh1 ) ]] It would apply to the primary attack as well as the iteratives.
Given the Studied Combat bonus appears to be the same, is there a reason you need to use two unique macros for studied target?  If not, you could just use the same macro query in both places. Unfortunately I do need them to be separate because sometimes the bonus ends before the following attack
1605588096

Edited 1605588108
vÍnce
Pro
Sheet Author
Tristan C. said: Given the Studied Combat bonus appears to be the same, is there a reason you need to use two unique macros for studied target?  If not, you could just use the same macro query in both places. Unfortunately I do need them to be separate because sometimes the bonus ends before the following attack Gotcha.  Try this. Primary Attack &{template:pf_attack} @{toggle_attack_accessible} @{toggle_rounded_flag} {{font=@{apply_specfont_chat}@{use_specfont}}} {{scroll_desc=@{scroll-desc}}} {{color=@{rolltemplate_color}}} {{character_name=@{character_name}}} {{character_id=@{character_id}}} {{subtitle}} {{name=@{name}}} {{attack=[[ 1d20cs>[[ @{crit-target} ]] + @{attack_macro} + [[ ?{1st Studied Combat |No,0|Yes,1}*( {(floor(@{class-0-level}/2)),1}kh1 ) ]] ]]}} {{damage=[[@{damage-dice-num}d@{damage-die} + @{damage_macro} + [[ ?{1st Studied Combat |No,0|Yes,1}*( {(floor(@{class-0-level}/2)),1}kh1 ) ]] ]]}} {{crit_confirm=[[ 1d20 + @{attack_macro} + [[ ?{1st Studied Combat |No,0|Yes,1}*( {(floor(@{class-0-level}/2)),1}kh1 ) ]] + [[ @{crit_conf_mod} ]] ]]}} {{crit_damage=[[ [[ @{damage-dice-num} * (@{crit-multiplier} - 1) ]]d@{damage-die} + ((@{damage_macro}) * [[ @{crit-multiplier} - 1 ]]) ]]}} {{type=@{type}}} {{weapon_notes=@{notes}}} @{iterative_attacks} @{macro_options} {{vs=@{vs}}} {{vs@{vs}=@{vs}}} {{precision_dmg1=@{precision_dmg_macro}}} {{precision_dmg1_type=@{precision_dmg_type}}} {{precision_dmg2=@{global_precision_dmg_macro}}} {{precision_dmg2_type=@{global_precision_dmg_type}}} {{critical_dmg1=@{critical_dmg_macro}}} {{critical_dmg1_type=@{critical_dmg_type}}} {{critical_dmg2=@{global_critical_dmg_macro}}} {{critical_dmg2_type=@{global_critical_dmg_type}}} {{attack1name=@{iterative_attack1_name}}} 2nd Attack {{attack2=[[ 1d20cs>[[ @{crit-target} ]] + [[ @{attack_macro} + [[ ?{2nd Studied Combat |No,0|Yes,1}*( {(floor(@{class-0-level}/2)),1}kh1 ) ]] + @{iterative_attack2_value} ]] [iterative] ]]}} {{damage2=[[ @{damage-dice-num}d@{damage-die} + @{damage_macro} + [[ ?{2nd Studied Combat |No,0|Yes,1}*( {(floor(@{class-0-level}/2)),1}kh1 ) ]] ]]}} {{crit_confirm2=[[ 1d20 + [[ @{attack_macro} + [[ ?{2nd Studied Combat |No,0|Yes,1}*( {(floor(@{class-0-level}/2)),1}kh1 ) ]] + @{iterative_attack2_value} ]] [iterative] + [[ @{crit_conf_mod} ]] ]]}} {{crit_damage2=[[ [[ @{damage-dice-num} * [[ @{crit-multiplier} - 1 ]] ]]d@{damage-die} + ((@{damage_macro}) * [[ @{crit-multiplier} - 1 ]]) ]]}} {{precision_dmg21=@{precision_dmg_macro}}} {{precision_dmg22=@{global_precision_dmg_macro}}} {{critical_dmg21=@{critical_dmg_macro}}} {{critical_dmg22=@{global_critical_dmg_macro}}} {{attack2name=@{iterative_attack2_name}}}
That works really well. Thank you so much. If I could bother you with one more question, if you don't mind me asking. I want to add a separate macro to my my Macro bar at the bottom. It is to roll 1D6 at level four, 2D6 at six, 3D6 at eight, 4D6 at Level ten.
1605619666

Edited 1605619746
David M.
Pro
API Scripter
I think this will do it. Rolls 0d6 for levels 1-3, then adds d6s at levels 4/6/8/10 as you described, maxing out at level 10 (e.g. so 12th level is still 4d6). My first time nesting grouped rolls, yeesh.  [[ [[ {[[{[[floor((@{selected|level}-4)/2)]],[[0d0+3]]}kl1 +1]],[[0d0]]}kh1 ]]d6 ]]
David M. said: I think this will do it. Rolls 0d6 for levels 1-3, then adds d6s at levels 4/6/8/10 as you described, maxing out at level 10 (e.g. so 12th level is still 4d6). My first time nesting grouped rolls, yeesh.  [[ [[ {[[{[[floor((@{selected|level}-4)/2)]],[[0d0+3]]}kl1 +1]],[[0d0]]}kh1 ]]d6 ]] That works really well [[ [[ {[[{[[floor((@{selected|class-0-level}-4)/2)]],[[0d0+3]]}kl1 +1]],[[0d0]]}kh1 ]]d6 ]] How would you get it to scale indefinitely?  (AKA all the way to level 20)
1605702128
David M.
Pro
API Scripter
Scaling indefinitely only needs a single grouped roll, so it would be: [[ [[ { [[ [[floor((@{selected|level}-4)/2)]]+1]],[[0d0]] }kh1  ]]d6 ]]
Thank you so much! David M. said: Scaling indefinitely only needs a single grouped roll, so it would be: [[ [[ { [[ [[floor((@{selected|level}-4)/2)]]+1]],[[0d0]] }kh1  ]]d6 ]]