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

Multiplying default attack macros with ability modifier

August 03 (8 years ago)

Edited August 03 (8 years ago)
Anyone know how to do that?
It can easily be done within my own macros but doing so for the default damage macro in the attacks tab is difficult or impossible it seems. 
I tried directly editing the macro as {{damage=[[(@{damage-dice-num}d@{damage-die} + @{damage_macro})*1.5]]}}
just adding these:  ( ) * 1.5
didn't work...

August 04 (8 years ago)
vÍnce
Pro
Sheet Author
Looks like it should work...  What system and sheet Kevin?  Can you pull values for each attribute on their own?  FYI: If this is the regular PF sheet, @{damage_macro} is actually made up of other attributes including the damage multiplier (damage_ability_mult).
For example: [[(4d6+4+?{Point Blank? Other?|0})*1.5]] works perfectly.
But I can't manually add the ( ) *1.5 to the default attacks in the attacks tab. 

I am using the 1.65 Pathfinder sheets. 
This is the entire macro. I've moved the ( )*1.5 to various spots to see if it would work but still, it does not. 
Bolded example change. 

@{PC-whisper} &{template:pf_attack} @{toggle_attack_accessible} @{toggle_rounded_flag} {{color=@{rolltemplate_color}}} {{character_name=@{character_name}}} {{character_id=@{character_id}}} {{subtitle}} {{name=@{name}}} {{attack=[[ 1d20cs>[[ @{crit-target} ]] + @{attack_macro} ]]}} {{damage=[[@{damage-dice-num}d@{damage-die} + @({damage_macro})*1.5]]}} {{crit_confirm=[[ 1d20 + @{attack_macro} + [[ @{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}}}
August 04 (8 years ago)

Edited August 04 (8 years ago)
[Deleted]
Sheet Author

Kevin C. said:

This is the entire macro. I've moved the ( )*1.5 to various spots to see if it would work but still, it does not. 
Bolded example change. 

@{PC-whisper} &{template:pf_attack} @{toggle_attack_accessible} @{toggle_rounded_flag} {{color=@{rolltemplate_color}}} {{character_name=@{character_name}}} {{character_id=@{character_id}}} {{subtitle}} {{name=@{name}}} {{attack=[[ 1d20cs>[[ @{crit-target} ]] + @{attack_macro} ]]}} {{damage=[[@{damage-dice-num}d@{damage-die} + (@{damage_macro})*1.5]]}} {{crit_confirm=[[ 1d20 + @{attack_macro} + [[ @{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}}}

Add the extra parenthesis set to define the multiplier's range of effect :)

EDIT: Just noticed in your example the parenthesis around your macro is written @({damage-macro})

Needs to be written (@{damage-macro}) That should fix it.