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

Roll template w/multi-attack w/multi-queries possible?

1428280799
vÍnce
Pro
Sheet Author
I'm working on a multi-attack roll template. attack#1 and damage#1 has 2 queries(attack mod? and damage mod?). Works like a charm. However, what about attack#2 and damage#2, and any subsequent attacks/damage? Currently the modifier's input is used for all attacks and damage. Is it possible to get a query for each attack within the same roll template? Thanks
Ok, maybe I'm not understanding the question completely, but I would use a new query for each attack ?{Attack mod1?|5} ?{Damage mod1?|2} and then ?{Attack mod2?|0} ?{Damage mod2?|2}. Then they would each be unique. It's a lot to keep straight when you get more than two though.
1428294403

Edited 1428294525
vÍnce
Pro
Sheet Author
Thanks Ed. I'm using a separate query for each attack and it's damage. Here's an example macro with 2 attacks; /me attacks! &{template:attacks} {{name=@{selected|token_name} }} {{weapon=@{selected|repeating_weapon_0_WeaponName} }} {{attack1=[[1d20 + @{selected|repeating_weapon_0_ToHitBonus|0}[BON] + @{selected|repeating_weapon_0_MagicBonus|0}[MAG] + ?{To Hit Modifier?|0}[MOD]) ]] }} {{damage1vsSM=[[@{selected|repeating_weapon_0_DamageSmallMedium} + @{selected|repeating_weapon_0_DmgBonus}[BON] + @{selected|repeating_weapon_0_MagicBonus|0}[MAG] + ?{Damage Modifier?|0}[MOD] ]] }} {{damage1vsL=[[@{selected|repeating_weapon_0_DamageLarge} + @{selected|repeating_weapon_0_DmgBonus}[BON] + @{selected|repeating_weapon_0_MagicBonus|0}[MAG] + ?{Damage Modifier?|0}[MOD] ]] }} {{attack2=[[1d20 + @{selected|repeating_weapon_0_ToHitBonus|0}[BON] + @{selected|repeating_weapon_0_MagicBonus|0}[MAG] + ?{To Hit Modifier?|0}[MOD]) ]] }} {{damage2vsSM=[[@{selected|repeating_weapon_0_DamageSmallMedium} + @{selected|repeating_weapon_0_DmgBonus}[BON] + @{selected|repeating_weapon_0_MagicBonus|0}[MAG] + ?{Damage Modifier?|0}[MOD] ]] }} {{damage2vsL=[[@{selected|repeating_weapon_0_DamageLarge} + @{selected|repeating_weapon_0_DmgBonus}[BON] + @{selected|repeating_weapon_0_MagicBonus|0}[MAG] + ?{Damage Modifier?|0}[MOD] ]] }} The problem is that once I input something for the first attack and damage queries, I'm not prompted for the 2nd attack and damage.
That's because the query is the same for both attacks - ?{To Hit Modifier?} and ?{Damage Modifier?}. Once you input a value for the first query, the macro will assume the value to be the same every time that query comes up and input that value. If you want different modifiers for each attack, you need to change the query (as Ed S. did above).
1428294863
vÍnce
Pro
Sheet Author
I see the light. :-)