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

Help with Pathfinder attack +modifier macro

Hi, I'm a total noob regarding macro/scripting or anything that looks like this: &{template:PFAttack} {{name=@{character_name}'s @{name}}} {{subtags=@{type}}} {{attack=[[1d20cs>@{crit-target}+@{total-attack}]]}} {{damage=[[@{damage-dice-num}d@{damage-die}+@{total-damage}]]}} {{confirm=[[1d20+@{total-attack}]]}} {{dmgcrit=[[(@{damage-dice-num} * (@{crit-multiplier} - 1))d@{damage-die} + (@{total-damage} * (@{crit-multiplier} - 1))]]}} {{notes=@{notes}}} My GM is using the Pathfinder legacy sheet, I entered my character info in the "Attack" sheet, if I click the above macro everything is working correctly but it doesn't give me an option to put any modifier when I roll for an attack. For example if I use a buff or there is an inspire courage, etc... I read on a guide that there is an option to add "+ ?{Modifier|0}" to have the option to add +hit and +damage when you click the macro. I tried it in a simple macro, for example "/me rolls a [[1d20+?{modifier|0}]]" and it is working. I tried to put "+ ?{Modifier|0}" in different position on the above macro but I really don't know what I'm doing and it is not working. TL;DR: How do I add "+ ?{Modifier|0}" to hit and damage to the following macro: &{template:PFAttack} {{name=@{character_name}'s @{name}}} {{subtags=@{type}}} {{attack=[[1d20cs>@{crit-target}+@{total-attack}]]}} {{damage=[[@{damage-dice-num}d@{damage-die}+@{total-damage}]]}} {{confirm=[[1d20+@{total-attack}]]}} {{dmgcrit=[[(@{damage-dice-num} * (@{crit-multiplier} - 1))d@{damage-die} + (@{total-damage} * (@{crit-multiplier} - 1))]]}} {{notes=@{notes}}} Thanks in advance.
1496665656
The Aaron
Pro
API Scripter
If you want them to both use the same modifier, you can do this: &{template:PFAttack} {{ name=@{character_name}'s @{name}}} {{ subtags=@{type}}} {{ attack=[[1d20cs>@{crit-target}+@{total-attack} + ?{Modifier|0} ]]}} {{ damage=[[@{damage-dice-num}d@{damage-die}+@{total-damage} + ?{Modifier} ]]}} {{ confirm=[[1d20+@{total-attack} + ?{Modifier} ]]}} {{ dmgcrit=[[(@{damage-dice-num} * (@{crit-multiplier} - 1))d@{damage-die} + ( (@{total-damage} + ?{Modifier} ) * (@{crit-multiplier} - 1))]]}} {{ notes=@{notes}}} If you want separate modifiers for attack and damage, you can do it like this: &{template:PFAttack} {{ name=@{character_name}'s @{name}}} {{ subtags=@{type}}} {{ attack=[[1d20cs>@{crit-target}+@{total-attack} + ?{Attack Modifier|0} ]]}} {{ damage=[[@{damage-dice-num}d@{damage-die}+@{total-damage} + ?{Damage Modifier|0} ]]}} {{ confirm=[[1d20+@{total-attack} + ?{Attack Modifier} ]]}} {{ dmgcrit=[[(@{damage-dice-num} * (@{crit-multiplier} - 1))d@{damage-die} + ( (@{total-damage} + ?{Damage Modifier} ) * (@{crit-multiplier} - 1))]]}} {{ notes=@{notes}}} (I put these on multiple lines, but they should still work the same.  If not, join them all to a single line.) Note that when you use ?{Label}, you will only be prompted for "Label" the first time, then the same value will be used in the rest of the places.  So in the first one, you'll get asked "Modifier?" with a default of 0 and then whatever you input will be used in all 4 places.  In the second one, you'll be asked "Attack Modifier?" and "Damage Modifier" and the values of each of those will be used twice.
Thank you!!
The Aaron said: If you want them to both use the same modifier, you can do this: &{template:PFAttack} {{ name=@{character_name}'s @{name}}} {{ subtags=@{type}}} {{ attack=[[1d20cs>@{crit-target}+@{total-attack} + ?{Modifier|0} ]]}} {{ damage=[[@{damage-dice-num}d@{damage-die}+@{total-damage} + ?{Modifier} ]]}} {{ confirm=[[1d20+@{total-attack} + ?{Modifier} ]]}} {{ dmgcrit=[[(@{damage-dice-num} * (@{crit-multiplier} - 1))d@{damage-die} + ( (@{total-damage} + ?{Modifier} ) * (@{crit-multiplier} - 1))]]}} {{ notes=@{notes}}} If you want separate modifiers for attack and damage, you can do it like this: &{template:PFAttack} {{ name=@{character_name}'s @{name}}} {{ subtags=@{type}}} {{ attack=[[1d20cs>@{crit-target}+@{total-attack} + ?{Attack Modifier|0} ]]}} {{ damage=[[@{damage-dice-num}d@{damage-die}+@{total-damage} + ?{Damage Modifier|0} ]]}} {{ confirm=[[1d20+@{total-attack} + ?{Attack Modifier} ]]}} {{ dmgcrit=[[(@{damage-dice-num} * (@{crit-multiplier} - 1))d@{damage-die} + ( (@{total-damage} + ?{Damage Modifier} ) * (@{crit-multiplier} - 1))]]}} {{ notes=@{notes}}} (I put these on multiple lines, but they should still work the same.  If not, join them all to a single line.) Note that when you use ?{Label}, you will only be prompted for "Label" the first time, then the same value will be used in the rest of the places.  So in the first one, you'll get asked "Modifier?" with a default of 0 and then whatever you input will be used in all 4 places.  In the second one, you'll be asked "Attack Modifier?" and "Damage Modifier" and the values of each of those will be used twice. Is there any way to use the second macro you posted (that is exactly what I was looking for!) with a two weapons attack? I can put the -2 for the malus with the "+ ?{Attack Modifier}", and of course I can use the macro two times, but it would be very nice if there is a way to do a second attack with the same macro using the same bonus to hit and using 1/2 of STR.  Is it remotely possible?
1496686549
The Aaron
Pro
API Scripter
Probably the only way to do that would be to setup a duplicate macro with *.5 on the strength, then call the first macro once at the top with the second.