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 1st] Nested Token Ability Queries Returning Incorrect Results

1658064905

Edited 1658065408
So i have a character with a whole bunch of natural attacks of varying damage rolls, and a wizard who likes to use Enlarge Person on my to boost these natural attacks. I recently modified my attacks to have a query asking if my size has been altered in each attack with outcomes for smaller, regular or larger but I am having issues with the results. I call my varying attacks through a chat menu either as a group or individually with the below token abilities: Chat Menu: /w GM &{template:default} {{name=Attack Menu for @{selected|character_name} }}  {{Full Attacks= [Rage](~selected|Full-Atk-Rage) [Normal](~selected|Full-Atk-NRage) }}  {{All Attacks= [Right Claw](~selected|Claw-R) [Left Claw](~selected|Claw-L) [Left Claw Rage](~selected|Claw-L-Rage) [Bite](~selected|Bite) [Gore](~selected|Gore) }} Example group of attacks (Full-Atk-Rage: %{selected|Claw-R} %{selected|Claw-L-Rage} %{selected|Bite} %{selected|Gore} All of the attacks look like this, with varying damages for which type of attack if being called (claws, bite, etc): Claw-R: &{template:pc} {{type=attackdamage}}  {{name=Claw Attack}}  {{attack=1}}  {{damage=1}}  {{atkvs=(Melee vs AC)}}  {{dmg1flag=1}}  {{charname=@{selected|token_name}}}  {{roll=[[1d20cs>20 + ?{Flank?|No,0|Yes,2}[Flanking] + @{selected|attack_bonus}[AB Bonuses] + @{selected|melee_mod}[Melee Attack]]]}}  {{critconfirm=[[1d20 + ?{Flank?|No,0|Yes,2}[Flanking] + @{selected|attack_bonus}[AB Bonuses] + @{selected|melee_mod}[Melee Attack]]]}}  {{dmg1flag=1}}  {{dmg1=[[?{Size Modifier|Normal,1d6|Smaller,1d4|Larger,1d8} + @{selected|strength_mod}[STR] + @{selected|melee_damage_bonus}[Damage Bonuses]]]}}  {{dmg1type=Slashing}}  {{descflag=On}}  {{dmg1crit=[[?{Size Modifier|Normal,1d6|Smaller,1d4|Larger,1d8} + @{selected|strength_mod}[STR] + @{selected|melee_damage_bonus}[Damage Bonuses]]]}}  {{desc=Quet’Kai slashes with his right claws}} Bite: &{template:pc} {{type=attackdamage}}  {{name=Bite Attack}}  {{attack=1}}  {{damage=1}}  {{atkvs=(Melee vs AC)}}  {{dmg1flag=1}}  {{charname=@{selected|token_name}}}  {{roll=[[1d20cs>20 + ?{Flank?|No,0|Yes,2}[Flanking] + @{selected|attack_bonus}[AB Bonuses] + @{selected|melee_mod}[Melee Attack]]]}}  {{critconfirm=[[1d20 + ?{Flank?|No,0|Yes,2}[Flanking] + @{selected|attack_bonus}[AB Bonuses] + @{selected|melee_mod}[Melee Attack]]]}}  {{dmg1flag=1}}  {{dmg1=[[?{Size Modifier|Normal,2d6|Smaller,1d10|Larger,2d8} + @{selected|strength_mod}[STR] + @{selected|melee_damage_bonus}[Damage Bonuses]]]}}  {{dmg1type=Piercing}}  {{descflag=On}}  {{dmg1crit=[[?{Size Modifier|Normal,2d6|Smaller,1d10|Larger,2d8} + @{selected|strengthmod}[STR] + @{selected|melee_damage_bonus}[Damage Bonuses]]]}}  {{desc=Quet’Kai tries to bite his foe}} Individually all of these attacks work perfectly, with the query returning the correct damage values. When called as a group through the chat menu every attack inherits the damage value of the first time the query is asked. So using the above examples, Claw-R is called first, the query is asked and normal is selected, 1d6 damage is dealt and the the next attack is called. Every attack is now doing 1d6 damage, including the Bite attack further up which should be doing 2d6. Is there a way to stop the queries in each of these attacks from inherited the damage output value whilst keeping the inherited input answer of "Normal, Smaller, Larger"? (using Pathfinder by Roll20 Sheet) I would like to avoid having one instance of each natural attack i have per size modifier I need to plan for in encounters but I am not seeing a  way around it atm. 
Jaevwyn said: ... Is there a way to stop the queries in each of these attacks from inherited the damage output value whilst keeping the inherited input answer of "Normal, Smaller, Larger"? (using Pathfinder by Roll20 Sheet) I would like to avoid having one instance of each natural attack i have per size modifier I need to plan for in encounters but I am not seeing a  way around it atm. No. However if you change the query to return numbers universally that can then be used to calculate the different damage dice. Then you can avoid having multiple instances. So your query can become ?{Size Modifier|Normal,1|Smaller,0|Larger,2} Then your Claw-R damage dice of 1d6/1d4/1d8 can be written as 1d[[4+2*?{Size Modifier|Normal,1|Smaller,0|Larger,2}]] And your Bite damage dice of 2d6/1d10/2d8 can be written as [[1+ceil(?{Size Modifier|Normal,1|Smaller,0|Larger,2}/10)]]d[[6+2*{0,0,2}=?{Size Modifier}]]
1658226572

Edited 1658226648
thats a really neat solution to the issue, thanks for that - will work on adding it to my various attacks!  Just one question, what is the "  {0,0,2}  "  area of that damage die, not come across that before. 
That is a group roll with target number So with {0,0,2}=?{Size Modifier} When the size modifier is 0 for smaller it equals two of the 'sub-rolls' so returns  2 and when it's 2 for larger it equals one of the 'sub-rolls' so returns 1 and when it's 1 for normal it equals zero of the 'sub-rolls' so returns 0. It's very useful for mapping one set of numbers to another when the mathematical approach would be unwieldy.
it works perfectly thank you very much! I was hoping you could break down the logic for my smooth brain to handle: After reading through the linked post unfortunately I am struggling to see how the  6+2*{0,0,2}=?{Size Modifier}  determines the correct number, and this will be a very useful bit of logic to understand for when my character levels up and its attacks gain higher dice rolls. Not seeing how the 0,0,2 translates into the 2,1,0 behaviour you described above.  For instance I have a 2d8,1d10,3d8 coming up and knowing how to set these up myself will be invaluable. (I also learned that size adjustment is supposed to go up 2 stages of the Complete Damage Dice Progression Chart not one so i need to relook at some of the attacks again) 
Let's start with the group roll {0,0,2} This represents three 'rolls'. The first and second rolls are 0 and the third is 2. Then the target number part {0,0,2}=?{Size Modifier} This compares the three 'rolls' to the option selected as the Size Modifier (0, 1 or 2). Specifically it counts how many of the rolls are equal to the Size Modifier. So for Normal attacks there are zero rolls that are equal to 1. At which point the formula becomes 6+2*0 = 6 For Smaller attacks there are two rolls that are equal to 0. Thus 6+2*2 = 10 For Larger attacks there is one roll that is equal to 2. Thus 6+2*1 = 8 To look at a different example {0,0,0,1,1,2}=?{Size Modifier} Normal has two '1's so returns 2 Smaller has three '0's so returns 3 Larger has one '2' so returns 1
Amazing, thank you so much, that's going to be so helpful!