
Hi, I've been working on a macro for one of my players who just picked up Bigby's Hand (D&D 5e), but I've run into a bit of a nuisance with queries that I hope someone can help me with. I initially wanted to make a one-button macro to handle all of the four attack types that Bigby's Hand can make, so the player doesn't need to have multiple buttons for the one spell. After writing it out, I realized that when I run it, all "?{}" queries from every branch spams the player. I looked into using "--i", but don't want the players chat to get filled with buttons that they need to click to finish the ability. I tried messing around with "--i" to skip the button step, but couldn't find a way to do it. After giving up on that idea, I tried using "--^" to skip the irrelevant code. My attempt looked like this: --/| Queries
--/|Query Type
--=Type|?{Attack effect?|Clenched Fist,1|Forceful Hand,2|Grasping Hand,3|Interposing Hand,4}
--/|Lookup Attack Name
--C[$Type.Raw]|1:&AttackName;Clenched Fist|2:&AttackName;Forceful Hand|3:&AttackName;Grasping Hand|4:&AttackName;Interposing Hand
--/| Outcome
--?[$Type.Total] -eq 1|SkipToClenched
--?[$Type.Total] -eq 2|SkipToForceful
--?[$Type.Total] -eq 3|SkipToGrasping
--?[$Type.Total] -eq 4|SkipToInterposing
--X|
--:SkipToClenched|
--^Clenched|
--:SkipToForceful|
--^Forceful|
--:SkipToGrasping|
--^Grasping|
--:SkipToInterposing|
--^Interposing|
I figured that it'd check which attack was chosen, then it'd entirely skip the code with the irrelevant queries, but alas, it seems the queries are generated on the "stack" (so to speak) as soon as the macro is run. I must admit that at this point I've entirely run out of solutions, and I hope someone here can point me in the right direction or, if not that, at least confirm that it isn't possible. Current code below: !scriptcards {{
+++dnd5elib+++
--/| Queries
--/|Query Type
--=Type|?{Attack effect?|Clenched Fist,1|Forceful Hand,2|Grasping Hand,3|Interposing Hand,4}
--/|Lookup Attack Name
--C[$Type.Raw]|1:&AttackName;Clenched Fist|2:&AttackName;Forceful Hand|3:&AttackName;Grasping Hand|4:&AttackName;Interposing Hand
--/| Design and necessary variables
--#title|[&AttackName]
--#titlecardbackground|#6aa84f
--#rightsub|@{target|token_name} was targeted by Bigby's Hand
--#oddrowbackground|#1c211b
--#oddrowfontcolor|#ffffff
--#evenrowbackground|#353535
--#evenrowfontcolor|#ffffff
--#tableshadow|0px 0px 0px 0px #aaa;
--#tableborder|1px solid #000000;
--#tableborderradius|0px
--#sourceToken|-Mw-2yNlJIP__ulp8uwd
--#targetToken|@{target|token_id}
--#emoteState|hide
--=TargetAC|@{target|npc_ac}
--?[$TargetAC.Total] -gt 0|DoneWithAC
--=TargetAC|@{target|ac}
--:DoneWithAC|
--/| Outcome
--?[$Type.Total] -eq 1|SkipToClenched
--?[$Type.Total] -eq 2|SkipToForceful
--?[$Type.Total] -eq 3|SkipToGrasping
--?[$Type.Total] -eq 4|SkipToInterposing
--X|
--:SkipToClenched|
--^Clenched|
--:SkipToForceful|
--^Forceful|
--:SkipToGrasping|
--^Grasping|
--:SkipToInterposing|
--^Interposing|
--:Clenched|
--=Atk|?{Advantage/Disadvantage|Normal,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1} + [*S:spell_attack_bonus]
-->Lib5E_CheckDamageModifiers|ResistType;force
--+|You rolled a [$Atk.Total] to hit.
--?[$Atk.Base] -ge 20|Crit
--?[$Atk.Total] -ge [$TargetAC.Total]|Hit
--?[$Atk.Total] -lt [$TargetAC]|Miss
--X|
--:Crit|
--=Dmg|4d8 [&ResistType]
--=Crit|1d4 + 1
--+|You dealt [$Dmg] force damage!
--+|You rolled [$Crit] on the Critical Die, click [Critical Hit Table](<a href="http://journal.roll20.net/handout/-MvR3Qq1blWaYvV6m_iL" rel="nofollow">http://journal.roll20.net/handout/-MvR3Qq1blWaYvV6m_iL</a>) to see your options.
--@token-mod| _ids @{target|token_id} _set bar3_value|-[$Dmg]
--X|
--:Hit|
--=Dmg|4d8 [&ResistType]
--+|You dealt [$Dmg] force damage.
--@token-mod| _ids @{target|token_id} _set bar3_value|-[$Dmg]
--X|
--:Miss|
--+|Your attack missed.
--X|
--:Forceful|
--=ForcefulHandCheck|?{Is the target Medium or smaller?|Yes,2d20kh1|No,1d20} + 8
--=Mod|[*S:spell_attack_bonus] - [*S:pb]
--=Distance|[$Mod] * 5 + 5
--+|You rolled [$ForcefulHandCheck] on the hand's Athletics check.
--+|If you succeed on the contest, you can push @{target|token_name} up to [$Distance] ft.
--=TargetCheck|1d20 + [*T:athletics_bonus]
--*|The target rolled [$TargetCheck] for Athletics.
--X|
--:Grasping|
--=GraspingEffect|?{Is the target already grappled by the hand?|Yes,1|No,2}
-->Lib5E_CheckDamageModifiers|ResistType;mbludgeoning
--?[$GraspingEffect.Total] -eq 1|GraspingCrush
--?[$GraspingEffect.Total] -eq 2|GraspingGrapple
--X|
--:GraspingCrush|
--=Mod|[*S:spell_attack_bonus] - [*S:pb]
--=Dmg|2d6 + [$Mod] [&ResistType]
--+|You dealt [$Dmg] bludgeoning damage.
--@token-mod| _ids @{target|token_id} _set bar3_value|-[$Dmg]
--X|
--:GraspingGrapple|
--=GraspingHandCheck|?{Is the target Medium or smaller?|Yes,2d20kh1|No,1d20} + 8
--+|You rolled [$GraspingHandCheck] on the hand's Athletics check.
--+|If you succeed on the contest, you grapple @{target|token_name}.
--=TargetStrengthAttribute|[*T:strength_mod]
--=TargetDexterityAttribute|[*T:dexterity_mod]
--?[$TargetStrengthAttribute.Total] -ge [$TargetDexterityAttribute]|TargetAthletics
--?[$TargetDexterityAttribute.Total] -gt [$TargetStrengthAttribute]|TargetAcrobatics
--X|
--:TargetAthletics|
--=TargetCheck|1d20 + [*T:athletics_bonus]
--*|The target rolled [$TargetCheck] for Athletics.
--X|
--:TargetAcrobatics|
--=TargetCheck|1d20 + [*T:acrobatics_bonus]
--*|The target rolled [$TargetCheck] for Acrobatics.
--X|
--:Interposing|
--+|The hand interposes itself between you and the target until you the hand a different command. The hand moves to stay between you and the target, providing you with half cover against the target. The target can't move through the hand's space unless it's strength score is 27 or higher. If it is, the hand's space is difficult terrain for the target.
--X|
}} Thanks in advance, - Jakob "Wheatley" From