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

Multiple of the Same Query Name, Same Label, Different Values!

September 18 (8 years ago)
I want this attack to use one popup box (instead of three) for the entire attack, using the chosen label for the query to determine the output value on subsequent appearances of the same query. Problem is, it doesn't work.

When I use it as I have it here, nothing appears on the Roll20 chat area. I believe it's because I'm using values which have words and numbers on them. If I remove the macro call of "WhichWeaponLabel", it will appear in the chat! However, it's still broken, as Roll20 uses the values of Macro Call "WhichWeaponR2B" instead of "WhichWeaponDmg" in the damage area of the core ability. I could fix it by ensuring each query has separate names... but that kind of defeats the point of what I'm trying to do here. I'm hoping someone has some insight on this or if it is simply a feature which doesn't exist within roll20 at this time. If it doesn't exist, I'd REALLY love to see it implemented into Roll20.

GrapplingSpirits
/me charges his %{Bob|WhichWeaponLabel} with primal power, trying to slow the target [At-Will, Standard, Grappling Spirits]
[[%{Bob|WhichWeaponR2B}]] Base Atk = [[1d20+%{Bob|WhichWeaponR2B}]] Vs. AC!
Hit - [[%{Bob|WhichWeaponDmg}]] Damage! Slows and disables Shifting. (Both until the end of the target's next turn)
WhichWeaponLabel
?{Which Weapon|Bow,Bow|Dagger,Dagger}
WhichWeaponR2B
?{Which Weapon|Bow,17|Dagger,19}
WhichWeaponDmg
?{Which Weapon|Bow,1d10+8|Dagger,1d4+9}

Ability which does show up
GrapplingSpirits2
/me charges his weapon with primal power, trying to slow the target [At-Will, Standard, Grappling Spirits]
[[%{Bob|WhichWeaponR2B}]] Base Atk = [[1d20+%{Bob|WhichWeaponR2B}]] Vs. AC!
Hit - [[%{Bob|WhichWeaponDmg}]] Damage! Slows and disables Shifting. (Both until the end of the target's next turn)
September 26 (8 years ago)

Edited September 26 (8 years ago)
Can't be done. Roll queries are evaluated only once per query, the first time it's encountered. The best you can do is create separate abilities for charging the bow and charging the dagger, then presenting a query to choose which ability to run:

Macro: BobGrapplingSpirits
?{Which weapon?|Bow,%{Bob|GrapplingSpiritsBow}|Dagger,%{Bob|GrapplingSpiritsDagger}}

Bob's Ability: GrapplingSpiritsBow
/me charges his bow with primal power, trying to slow the target [At-Will, Standard, Grappling Spirits]
17 Base Atk = [[1d20+17]] Vs. AC!
Hit - [[1d10+8]] Damage! Slows and disables Shifting. (Both until the end of the target's next turn)

Bob's Ability: GrapplingSpiritsDagger
/me charges his dagger with primal power, trying to slow the target [At-Will, Standard, Grappling Spirits]
19 Base Atk = [[1d20+19]] Vs. AC!
Hit - [[1d4+9]] Damage! Slows and disables Shifting. (Both until the end of the target's next turn)
September 26 (8 years ago)

Edited September 26 (8 years ago)
David's macro should work great after a few adjustments, namely removing/replacing the commas within the Ability macros (i.e. after each instance of 'primal power', 'at-will', and 'standard'). This is necessitated by reasons outlined in Advanced Usage for Roll Queries.
September 26 (8 years ago)
Yep, I didn't notice that; I was testing with simpler macros.
September 26 (8 years ago)

Silvyre said:

David's macro should work great after a few adjustments, namely removing/replacing the commas within the Ability macros (i.e. after each instance of 'primal power', 'at-will', and 'standard'). This is necessitated by reasons outlined in Advanced Usage for Roll Queries.

Yeah, I'm aware of that bit because I've used queries like that before. His macro I'm sure definitely works, it's just more intensive on the number of macros to maintain when changes happen (as this would triple existing attack macros). Whereas if my suggestion for a feature became real on roll20 would really only create three additional macros to maintain all the various attacks of the character.

Is there a reason my suggestion couldn't become a real feature? Or should I simply reword my posting on the "Suggestions & Ideas" forums to appropriately explain the idea rather than have it as a question? 
September 26 (8 years ago)

David T. said:

Can't be done. Roll queries are evaluated only once per query, the first time it's encountered. The best you can do is create separate abilities for charging the bow and charging the dagger, then presenting a query to choose which ability to run:

Macro: BobGrapplingSpirits
?{Which weapon?|Bow,%{Bob|GrapplingSpiritsBow}|Dagger,%{Bob|GrapplingSpiritsDagger}}

Bob's Ability: GrapplingSpiritsBow
/me charges his bow with primal power, trying to slow the target [At-Will, Standard, Grappling Spirits]
17 Base Atk = [[1d20+17]] Vs. AC!
Hit - [[1d10+8]] Damage! Slows and disables Shifting. (Both until the end of the target's next turn)

Bob's Ability: GrapplingSpiritsDagger
/me charges his dagger with primal power, trying to slow the target [At-Will, Standard, Grappling Spirits]
19 Base Atk = [[1d20+19]] Vs. AC!
Hit - [[1d4+9]] Damage! Slows and disables Shifting. (Both until the end of the target's next turn)

Ah, thanks. I appreciate that! I hadn't thought of doing it this way. Bit more work to maintain all the macros as changes occur, but not like I have much of a choice.
September 26 (8 years ago)

Wade S. said:

Or should I simply reword my posting on the "Suggestions & Ideas" forums to appropriately explain the idea rather than have it as a question? 

That would be my general recommendation for all Suggestions. However, in this case, you might have more success supporting this existing suggestion.