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

Attempting to allow players to have easy access tool checks.

1724508966

Edited 1724509038
I have made characters sheets where I have added abilities for each of the tools so that my players can have an easy token action. The macro for those looks like the following, and work properly when clicked from the sheet. &{template:default} {{name=Alchemist Supplies}} {{Manufacture = [[d20+ @{selected|PB} + ?{which stat|STR, @{selected|strength_mod}|DEX, @{selected|dexterity_mod}|CON, @{selected|constitution_mod}|INT, @{selected|intelligence_mod}|CHA,@{selected|charisma_mod}|WIS,@{selected|wisdom_mod}} ]] | [[d20+ @{selected|PB} + ?{which stat|STR, @{selected|strength_mod}|DEX, @{selected|dexterity_mod}|CON, @{selected|constitution_mod}|INT, @{selected|intelligence_mod}|CHA,@{selected|charisma_mod}|WIS,@{selected|wisdom_mod}} ]] }} The macro I am struggling with currently looks like the one below here. When the macro is clicked it gives me the options in the chat as listed, but when clicked they give me an output of   %selected|Brewer’s-Supplies  based on which was selected rather than running the above macro as intended.  &{template:default} {{name=Select Tool}} {{select one= [Alchemist’s Supplies](`%{selected|Alchemist’s-Supplies}) [Brewer’s Supplies](`%{selected|Brewer’s-Supplies}) [Calligrapher’s Supplies](`%{selected|Calligrapher’s-Supplies}) [Carpenter’s Tools](`%{selected|Carpenter’s-Tools}) [Cartographer’s Tools](`%{selected|Cartographer’s-Tools}) [Cobbler’s Tools](`%{selected|Cobbler’s-Tools}) [Glassblower’s Tools](`%{selected|Glassblower’s-Tools}) [Herbalism Kit](`%{selected|Herbalism-Kit}) [Jeweller’s Tools](`%{selected|Jeweller’s-Tools}) [Leatherworker’s Tools](`%{selected|Leatherworker’s-Tools}) [Mason’s Tools](`%{selected|Mason’s-Tools}) [Painter’s Supplies](`%{selected|Painter’s-Supplies}) [Poisoner’s Kit](`%{selected|Poisoner’s-Kit}) [Potter’s Tools](`%{selected|Potter’s-Tools}) [Smith’s Tools](`%{selected|Smith’s-Tools}) [Tinker’s Tools](`%{selected|Tinker’s-Tools}) [Weaver’s Tools](`%{selected|Weaver’s-Tools}) [Woodcarver’s Tools](`%{selected|Woodcarver’s-Tools}) }} Which of my macros is wrong, and how do I fix it?
1724511034

Edited 1724511118
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Parker! The syntax for calling Abilities in a button is slightly different. Try this format: [Alchemist’s Supplies](~selected|Alchemist’s-Supplies) Also, I would advise against an apostrophe in a macro or ability name, as the system can treat them as a single quote and potentially lead to confusion. More syntax info for calling macros and abilities can be found under  Chat Menu .
Thank you keithcurtis! That fixed my problem. I did have to delete the apostrophes from the ability names for it to work out properly. I appreciate the help!
You could simplify the use and setup of this by referencing the repeating lists of the sheet, assuming you're using the DnD 5th edition by roll20 sheet: &{template:default} {{@{repeating_tool_$0_toolname}=[Roll](`@{selected|repeating_tool_$0_toolroll})}} {{@{repeating_tool_$1_toolname}=[Roll](`@{selected|repeating_tool_$1_toolroll})}} {{@{repeating_tool_$2_toolname}=[Roll](`@{selected|repeating_tool_$2_toolroll})}}{{@{repeating_tool_$3_toolname}=[Roll](`@{selected|repeating_tool_$3_toolroll})}}{{@{repeating_tool_$4_toolname}=[Roll](`@{selected|repeating_tool_$4_toolroll})}}{{@{repeating_tool_$5_toolname}=[Roll](`@{selected|repeating_tool_$5_toolroll})}}{{@{repeating_tool_$6_toolname}=[Roll](`@{selected|repeating_tool_$6_toolroll})}}{{@{repeating_tool_$7_toolname}=[Roll](`@{selected|repeating_tool_$7_toolroll})}}{{@{repeating_tool_$8_toolname}=[Roll](`@{selected|repeating_tool_$8_toolroll})}}{{@{repeating_tool_$9_toolname}=[Roll](`@{selected|repeating_tool_$9_toolroll})}}{{=Tool Proficiencies}} &{noerror} Here, the tool proficiencies set up on the character sheet are loaded and displayed with links to the roll as if from the sheet, with up to 10 entries (though you could easily expand this to any given number of entries by just copying and incrementing the template fields). No additional setup needed.