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

Specific Macro For Querying Multiple Sub-Macros

Apologies if this is redundant but I can't find a proper solution in the forum or online. I have three macros to represent passive scores that I am trying to consolidate into one specific macro.  Any assistance is appreciated. Passive Abilities (1), Passive Saves (2), and Passive Skills (3) can be rolled separately, but I would like to have them all combined into a single macro with a drop down asking which passive to roll.  Passive Abilities &{template:default} {{name=@{selected|token_name}}}{{Ability Score Checks=Strength[[10+@{selected|strength_mod}]] Dexterity[[10+@{selected|dexterity_mod}]] Constitution[[10+@{selected|constitution_mod}]] Intelligence[[10+@{selected|intelligence_mod}]] Wisdom[[10+@{selected|wisdom_mod}]] Charisma[[10+@{selected|charisma_mod}]] }} Passive Saves &{template:default} {{name=@{selected|token_name}}}{{Saves=Strength[[10+@{selected|strength_save_mod}]] Dexterity[[10+@{selected|dexterity_save_mod}]] Constitution[[10+@{selected|constitution_save_mod}]] Intelligence[[10+@{selected|intelligence_save_mod}]] Wisdom[[10+@{selected|wisdom_save_mod}]] Charisma[[10+@{selected|charisma_save_mod}]] }} Passive Skills &{template:default} {{name=@{selected|token_name}}} {{Skills=Acrobatics:[[10+@{selected|acrobatics_bonus}]] Animal Handling:[[10+@{selected|animal_handling_bonus}]] Arcana:[[10+@{selected|arcana_bonus}]] Athletics:[[10+@{selected|athletics_bonus}]] Deception:[[10+@{selected|deception_bonus}]] History:[[10+@{selected|history_bonus}]] Insight:[[10+@{selected|insight_bonus}]] Intimidation:[[10+@{selected|intimidation_bonus}]] Investigation:[[10+@{selected|investigation_bonus}]] Medicine:[[10+@{selected|medicine_bonus}]] Nature:[[10+@{selected|nature_bonus}]] Perception:[[10+@{selected|perception_bonus}]] Performance:[[10+@{selected|performance_bonus}]] Persuasion:[[10+@{selected|persuasion_bonus}]] Religion:[[10+@{selected|religion_bonus}]] Sleight of Hand:[[10+@{selected|sleight_of_hand_bonus}]] Stealth:[[10+@{selected|stealth_bonus}]] Survival:[[10+@{selected|survival_bonus}]] }}   
1753569761
Gauss
Forum Champion
Hi Mr. DM,  I would recommend using a Chat Menu to select which one to use.  But, if you really want to go the query route there is nothing requiring HTML substitution here. Just move the common elements outside of the query.  Here you go:  &{template:default} {{name=@{selected|token_name}}} {{?{Abilities Saves or Skills?|Ability,Ability Score Checks=Strength[[10+@{selected|strength_mod}]] Dexterity[[10+@{selected|dexterity_mod}]] Constitution[[10+@{selected|constitution_mod}]] Intelligence[[10+@{selected|intelligence_mod}]] Wisdom[[10+@{selected|wisdom_mod}]] Charisma[[10+@{selected|charisma_mod}]]|Saves,Saves=Strength[[10+@{selected|strength_save_mod}]] Dexterity[[10+@{selected|dexterity_save_mod}]] Constitution[[10+@{selected|constitution_save_mod}]] Intelligence[[10+@{selected|intelligence_save_mod}]] Wisdom[[10+@{selected|wisdom_save_mod}]] Charisma[[10+@{selected|charisma_save_mod}]]|Skills,Skills=Acrobatics:[[10+@{selected|acrobatics_bonus}]] Animal Handling:[[10+@{selected|animal_handling_bonus}]] Arcana:[[10+@{selected|arcana_bonus}]] Athletics:[[10+@{selected|athletics_bonus}]] Deception:[[10+@{selected|deception_bonus}]] History:[[10+@{selected|history_bonus}]] Insight:[[10+@{selected|insight_bonus}]] Intimidation:[[10+@{selected|intimidation_bonus}]] Investigation:[[10+@{selected|investigation_bonus}]] Medicine:[[10+@{selected|medicine_bonus}]] Nature:[[10+@{selected|nature_bonus}]] Perception:[[10+@{selected|perception_bonus}]] Performance:[[10+@{selected|performance_bonus}]] Persuasion:[[10+@{selected|persuasion_bonus}]] Religion:[[10+@{selected|religion_bonus}]] Sleight of Hand:[[10+@{selected|sleight_of_hand_bonus}]] Stealth:[[10+@{selected|stealth_bonus}]] Survival:[[10+@{selected|survival_bonus}]]} }}
Gauss is Boss!  Thank you, sir.  Much appreciated. Gauss said: Hi Mr. DM,  I would recommend using a Chat Menu to select which one to use.  But, if you really want to go the query route there is nothing requiring HTML substitution here. Just move the common elements outside of the query.  Here you go:  &{template:default} {{name=@{selected|token_name}}} {{?{Abilities Saves or Skills?|Ability,Ability Score Checks=Strength[[10+@{selected|strength_mod}]] Dexterity[[10+@{selected|dexterity_mod}]] Constitution[[10+@{selected|constitution_mod}]] Intelligence[[10+@{selected|intelligence_mod}]] Wisdom[[10+@{selected|wisdom_mod}]] Charisma[[10+@{selected|charisma_mod}]]|Saves,Saves=Strength[[10+@{selected|strength_save_mod}]] Dexterity[[10+@{selected|dexterity_save_mod}]] Constitution[[10+@{selected|constitution_save_mod}]] Intelligence[[10+@{selected|intelligence_save_mod}]] Wisdom[[10+@{selected|wisdom_save_mod}]] Charisma[[10+@{selected|charisma_save_mod}]]|Skills,Skills=Acrobatics:[[10+@{selected|acrobatics_bonus}]] Animal Handling:[[10+@{selected|animal_handling_bonus}]] Arcana:[[10+@{selected|arcana_bonus}]] Athletics:[[10+@{selected|athletics_bonus}]] Deception:[[10+@{selected|deception_bonus}]] History:[[10+@{selected|history_bonus}]] Insight:[[10+@{selected|insight_bonus}]] Intimidation:[[10+@{selected|intimidation_bonus}]] Investigation:[[10+@{selected|investigation_bonus}]] Medicine:[[10+@{selected|medicine_bonus}]] Nature:[[10+@{selected|nature_bonus}]] Perception:[[10+@{selected|perception_bonus}]] Performance:[[10+@{selected|performance_bonus}]] Persuasion:[[10+@{selected|persuasion_bonus}]] Religion:[[10+@{selected|religion_bonus}]] Sleight of Hand:[[10+@{selected|sleight_of_hand_bonus}]] Stealth:[[10+@{selected|stealth_bonus}]] Survival:[[10+@{selected|survival_bonus}]]} }}