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

[5e Shaped] Macro question Drop down menu for ability checks

December 22 (4 years ago)

Heyo!

I'm super new at this.

I've seen this super simple macro that creates a drop down menu for Saving Throws.

%{selected|shaped_saving_throw_query}

Is there a way to make a query for skills?

December 22 (4 years ago)

Edited December 22 (4 years ago)
Jordan C.
Pro
API Scripter

This should work!

Here is one for checks:

@{selected|wtype}&{template:simple} @{selected|rtype}?{Ability|Acrobatics, +@{selected|acrobatics_bonus}@{selected|pbd_safe} ]]}} {{rname=Acrobatics}} {{mod=@{selected|acrobatics_bonus}}} {{r1=[[ @{selected|d20} + @{selected|acrobatics_bonus}@{selected|pbd_safe} ]]}} |Animal Handling, +@{selected|animal_handling_bonus}@{selected|pbd_safe} ]]}} {{rname=Animal Handling}} {{mod=@{selected|animal_handling_bonus}}} {{r1=[[ @{selected|d20} + @{selected|animal_handling_bonus}@{selected|pbd_safe} ]]}} |Arcana, +@{selected|arcana_bonus}@{selected|pbd_safe} ]]}} {{rname=Arcana}} {{mod=@{selected|arcana_bonus}}} {{r1=[[ @{selected|d20} + @{selected|arcana_bonus}@{selected|pbd_safe} ]]}} |Athletics, +@{selected|athletics_bonus}@{selected|pbd_safe} ]]}} {{rname=Athletics}} {{mod=@{selected|athletics_bonus}}} {{r1=[[ @{selected|d20} + @{selected|athletics_bonus}@{selected|pbd_safe} ]]}} |Deception, +@{selected|deception_bonus}@{selected|pbd_safe} ]]}} {{rname=Deception}} {{mod=@{selected|deception_bonus}}} {{r1=[[ @{selected|d20} + @{selected|deception_bonus}@{selected|pbd_safe} ]]}} |History, +@{selected|history_bonus}@{selected|pbd_safe} ]]}} {{rname=History}} {{mod=@{selected|history_bonus}}} {{r1=[[ @{selected|d20} + @{selected|history_bonus}@{selected|pbd_safe} ]]}} |Insight, +@{selected|insight_bonus}@{selected|pbd_safe} ]]}} {{rname=Insight}} {{mod=@{selected|insight_bonus}}} {{r1=[[ @{selected|d20} + @{selected|insight_bonus}@{selected|pbd_safe} ]]}} |Intimidation, +@{selected|intimidation_bonus}@{selected|pbd_safe} ]]}} {{rname=Intimidation}} {{mod=@{selected|intimidation_bonus}}} {{r1=[[ @{selected|d20} + @{selected|intimidation_bonus}@{selected|pbd_safe} ]]}} |Investigation, +@{selected|investigation_bonus}@{selected|pbd_safe} ]]}} {{rname=Investigation}} {{mod=@{selected|investigation_bonus}}} {{r1=[[ @{selected|d20} + @{selected|investigation_bonus}@{selected|pbd_safe} ]]}} |Medicine, +@{selected|medicine_bonus}@{selected|pbd_safe} ]]}} {{rname=Medicine}} {{mod=@{selected|medicine_bonus}}} {{r1=[[ @{selected|d20} + @{selected|medicine_bonus}@{selected|pbd_safe} ]]}} |Nature, +@{selected|nature_bonus}@{selected|pbd_safe} ]]}} {{rname=Nature}} {{mod=@{selected|nature_bonus}}} {{r1=[[ @{selected|d20} + @{selected|nature_bonus}@{selected|pbd_safe} ]]}} |Perception, +@{selected|perception_bonus}@{selected|pbd_safe} ]]}} {{rname=Perception}} {{mod=@{selected|perception_bonus}}} {{r1=[[ @{selected|d20} + @{selected|perception_bonus}@{selected|pbd_safe} ]]}} |Performance, +@{selected|performance_bonus}@{selected|pbd_safe} ]]}} {{rname=Performance}} {{mod=@{selected|performance_bonus}}} {{r1=[[ @{selected|d20} + @{selected|performance_bonus}@{selected|pbd_safe} ]]}} |Persuasion, +@{selected|persuasion_bonus}@{selected|pbd_safe} ]]}} {{rname=Persuasion}} {{mod=@{selected|persuasion_bonus}}} {{r1=[[ @{selected|d20} + @{selected|persuasion_bonus}@{selected|pbd_safe} ]]}} |Religion, +@{selected|religion_bonus}@{selected|pbd_safe} ]]}} {{rname=Religion}} {{mod=@{selected|religion_bonus}}} {{r1=[[ @{selected|d20} + @{selected|religion_bonus}@{selected|pbd_safe} ]]}} |Sleight of Hand, +@{selected|sleight_of_hand_bonus}@{selected|pbd_safe} ]]}} {{rname=Sleight of Hand}} {{mod=@{selected|sleight_of_hand_bonus}}} {{r1=[[ @{selected|d20} + @{selected|sleight_of_hand_bonus}@{selected|pbd_safe} ]]}} |Stealth, +@{selected|stealth_bonus}@{selected|pbd_safe} ]]}} {{rname=Stealth}} {{mod=@{selected|stealth_bonus}}} {{r1=[[ @{selected|d20} + @{selected|stealth_bonus}@{selected|pbd_safe} ]]}} |Survival, +@{selected|survival_bonus}@{selected|pbd_safe} ]]}} {{rname=Survival}} {{mod=@{selected|survival_bonus}}} {{r1=[[ @{selected|d20} + @{selected|survival_bonus}@{selected|pbd_safe} ]]}} |Strength, +@{selected|strength_mod}@{selected|jack_attr}[STR]]]}} {{rname=Strength}} {{mod=@{selected|strength_mod}@{selected|jack_bonus}}} {{r1=[[ @{selected|d20} + @{selected|strength_mod}@{selected|jack_attr}[STR]]]}} |Dexterity, +@{selected|dexterity_mod}@{selected|jack_attr}[DEX]]]}} {{rname=Dexterity}} {{mod=@{selected|dexterity_mod}@{selected|jack_bonus}}} {{r1=[[ @{selected|d20} + @{selected|dexterity_mod}@{selected|jack_attr}[DEX]]]}} |Constitution, +@{selected|constitution_mod}@{selected|jack_attr}[CON]]]}} {{rname=Constitution}} {{mod=@{selected|constitution_mod}@{selected|jack_bonus}}} {{r1=[[ @{selected|d20} + @{selected|constitution_mod}@{selected|jack_attr}[CON]]]}} |Intelligence, +@{selected|intelligence_mod}@{selected|jack_attr}[INT]]]}} {{rname=Intelligence}} {{mod=@{selected|intelligence_mod}@{selected|jack_bonus}}} {{r1=[[ @{selected|d20} + @{selected|intelligence_mod}@{selected|jack_attr}[INT]]]}} |Wisdom, +@{selected|wisdom_mod}@{selected|jack_attr}[WIS]]]}} {{rname=Wisdom}} {{mod=@{selected|wisdom_mod}@{selected|jack_bonus}}} {{r1=[[ @{selected|d20} + @{selected|wisdom_mod}@{selected|jack_attr}[WIS]]]}} |Charisma, +@{selected|charisma_mod}@{selected|jack_attr}[CHA]]]}} {{rname=Charisma}} {{mod=@{selected|charisma_mod}@{selected|jack_bonus}}} {{r1=[[ @{selected|d20} + @{selected|charisma_mod}@{selected|jack_attr}[CHA]]]}} } @{selected|global_skill_mod} @{selected|charname_output}
Credit: Grabbed these from the token actions made by the Token Action script.
Edit: You can also drop all of the @{pbd_safe} portions if not using proficiency dice.
December 22 (4 years ago)

That macro doesn't work for me.

The drop down menu is filled with other stuff, and when I click one of the options the chat entry is empty. Not sure what I'm doing wrong.


December 22 (4 years ago)


December 22 (4 years ago)
Jordan C.
Pro
API Scripter

My bad, that one is meant to be used for Token Actions. This should work:

@{selected|wtype}&{template:simple} @{selected|rtype}?{Ability|Acrobatics, +@{selected|acrobatics_bonus} ]]}} {{rname=Acrobatics}} {{mod=@{selected|acrobatics_bonus}}} {{r1=[[ @{selected|d20} + @{selected|acrobatics_bonus} ]]}} |Animal Handling, +@{selected|animal_handling_bonus} ]]}} {{rname=Animal Handling}} {{mod=@{selected|animal_handling_bonus}}} {{r1=[[ @{selected|d20} + @{selected|animal_handling_bonus} ]]}} |Arcana, +@{selected|arcana_bonus} ]]}} {{rname=Arcana}} {{mod=@{selected|arcana_bonus}}} {{r1=[[ @{selected|d20} + @{selected|arcana_bonus} ]]}} |Athletics, +@{selected|athletics_bonus} ]]}} {{rname=Athletics}} {{mod=@{selected|athletics_bonus}}} {{r1=[[ @{selected|d20} + @{selected|athletics_bonus} ]]}} |Deception, +@{selected|deception_bonus} ]]}} {{rname=Deception}} {{mod=@{selected|deception_bonus}}} {{r1=[[ @{selected|d20} + @{selected|deception_bonus} ]]}} |History, +@{selected|history_bonus} ]]}} {{rname=History}} {{mod=@{selected|history_bonus}}} {{r1=[[ @{selected|d20} + @{selected|history_bonus} ]]}} |Insight, +@{selected|insight_bonus} ]]}} {{rname=Insight}} {{mod=@{selected|insight_bonus}}} {{r1=[[ @{selected|d20} + @{selected|insight_bonus} ]]}} |Intimidation, +@{selected|intimidation_bonus} ]]}} {{rname=Intimidation}} {{mod=@{selected|intimidation_bonus}}} {{r1=[[ @{selected|d20} + @{selected|intimidation_bonus} ]]}} |Investigation, +@{selected|investigation_bonus} ]]}} {{rname=Investigation}} {{mod=@{selected|investigation_bonus}}} {{r1=[[ @{selected|d20} + @{selected|investigation_bonus} ]]}} |Medicine, +@{selected|medicine_bonus} ]]}} {{rname=Medicine}} {{mod=@{selected|medicine_bonus}}} {{r1=[[ @{selected|d20} + @{selected|medicine_bonus} ]]}} |Nature, +@{selected|nature_bonus} ]]}} {{rname=Nature}} {{mod=@{selected|nature_bonus}}} {{r1=[[ @{selected|d20} + @{selected|nature_bonus} ]]}} |Perception, +@{selected|perception_bonus} ]]}} {{rname=Perception}} {{mod=@{selected|perception_bonus}}} {{r1=[[ @{selected|d20} + @{selected|perception_bonus} ]]}} |Performance, +@{selected|performance_bonus} ]]}} {{rname=Performance}} {{mod=@{selected|performance_bonus}}} {{r1=[[ @{selected|d20} + @{selected|performance_bonus} ]]}} |Persuasion, +@{selected|persuasion_bonus} ]]}} {{rname=Persuasion}} {{mod=@{selected|persuasion_bonus}}} {{r1=[[ @{selected|d20} + @{selected|persuasion_bonus} ]]}} |Religion, +@{selected|religion_bonus} ]]}} {{rname=Religion}} {{mod=@{selected|religion_bonus}}} {{r1=[[ @{selected|d20} + @{selected|religion_bonus} ]]}} |Sleight of Hand, +@{selected|sleight_of_hand_bonus} ]]}} {{rname=Sleight of Hand}} {{mod=@{selected|sleight_of_hand_bonus}}} {{r1=[[ @{selected|d20} + @{selected|sleight_of_hand_bonus} ]]}} |Stealth, +@{selected|stealth_bonus} ]]}} {{rname=Stealth}} {{mod=@{selected|stealth_bonus}}} {{r1=[[ @{selected|d20} + @{selected|stealth_bonus} ]]}} |Survival, +@{selected|survival_bonus} ]]}} {{rname=Survival}} {{mod=@{selected|survival_bonus}}} {{r1=[[ @{selected|d20} + @{selected|survival_bonus} ]]}} |Strength, +@{selected|strength_mod}@{selected|jack_attr}[STR]]]}} {{rname=Strength}} {{mod=@{selected|strength_mod}@{selected|jack_bonus}}} {{r1=[[ @{selected|d20} + @{selected|strength_mod}@{selected|jack_attr}[STR]]]}} |Dexterity, +@{selected|dexterity_mod}@{selected|jack_attr}[DEX]]]}} {{rname=Dexterity}} {{mod=@{selected|dexterity_mod}@{selected|jack_bonus}}} {{r1=[[ @{selected|d20} + @{selected|dexterity_mod}@{selected|jack_attr}[DEX]]]}} |Constitution, +@{selected|constitution_mod}@{selected|jack_attr}[CON]]]}} {{rname=Constitution}} {{mod=@{selected|constitution_mod}@{selected|jack_bonus}}} {{r1=[[ @{selected|d20} + @{selected|constitution_mod}@{selected|jack_attr}[CON]]]}} |Intelligence, +@{selected|intelligence_mod}@{selected|jack_attr}[INT]]]}} {{rname=Intelligence}} {{mod=@{selected|intelligence_mod}@{selected|jack_bonus}}} {{r1=[[ @{selected|d20} + @{selected|intelligence_mod}@{selected|jack_attr}[INT]]]}} |Wisdom, +@{selected|wisdom_mod}@{selected|jack_attr}[WIS]]]}} {{rname=Wisdom}} {{mod=@{selected|wisdom_mod}@{selected|jack_bonus}}} {{r1=[[ @{selected|d20} + @{selected|wisdom_mod}@{selected|jack_attr}[WIS]]]}} |Charisma, +@{selected|charisma_mod}@{selected|jack_attr}[CHA]]]}} {{rname=Charisma}} {{mod=@{selected|charisma_mod}@{selected|jack_bonus}}} {{r1=[[ @{selected|d20} + @{selected|charisma_mod}@{selected|jack_attr}[CHA]]]}} } @{selected|global_skill_mod} @{selected|charname_output}
December 28 (4 years ago)

Edited December 28 (4 years ago)

Hmm, nope. Still not getting it to work. Still getting roughly the same errors. And when I test clicking one of the options in the drop down menu the chat entry is empty.

(edit: tried as both token macro and none token macro)

December 28 (4 years ago)

Edited December 28 (4 years ago)
Jordan C.
Pro
API Scripter

Edit: I don't know the templates for shaped sheet, ignore me.

Hmm, I have one that is working on my end, can you try this? (Similar one, just removed "selected|"

@{wtype}&{template:simple} @{rtype}?{Ability|Acrobatics, +@{acrobatics_bonus} ]]}} {{rname=Acrobatics}} {{mod=@{acrobatics_bonus}}} {{r1=[[ @{d20} + @{acrobatics_bonus} ]]}} |Animal Handling, +@{animal_handling_bonus} ]]}} {{rname=Animal Handling}} {{mod=@{animal_handling_bonus}}} {{r1=[[ @{d20} + @{animal_handling_bonus} ]]}} |Arcana, +@{arcana_bonus} ]]}} {{rname=Arcana}} {{mod=@{arcana_bonus}}} {{r1=[[ @{d20} + @{arcana_bonus} ]]}} |Athletics, +@{athletics_bonus} ]]}} {{rname=Athletics}} {{mod=@{athletics_bonus}}} {{r1=[[ @{d20} + @{athletics_bonus} ]]}} |Deception, +@{deception_bonus} ]]}} {{rname=Deception}} {{mod=@{deception_bonus}}} {{r1=[[ @{d20} + @{deception_bonus} ]]}} |History, +@{history_bonus} ]]}} {{rname=History}} {{mod=@{history_bonus}}} {{r1=[[ @{d20} + @{history_bonus} ]]}} |Insight, +@{insight_bonus} ]]}} {{rname=Insight}} {{mod=@{insight_bonus}}} {{r1=[[ @{d20} + @{insight_bonus} ]]}} |Intimidation, +@{intimidation_bonus} ]]}} {{rname=Intimidation}} {{mod=@{intimidation_bonus}}} {{r1=[[ @{d20} + @{intimidation_bonus} ]]}} |Investigation, +@{investigation_bonus} ]]}} {{rname=Investigation}} {{mod=@{investigation_bonus}}} {{r1=[[ @{d20} + @{investigation_bonus} ]]}} |Medicine, +@{medicine_bonus} ]]}} {{rname=Medicine}} {{mod=@{medicine_bonus}}} {{r1=[[ @{d20} + @{medicine_bonus} ]]}} |Nature, +@{nature_bonus} ]]}} {{rname=Nature}} {{mod=@{nature_bonus}}} {{r1=[[ @{d20} + @{nature_bonus} ]]}} |Perception, +@{perception_bonus} ]]}} {{rname=Perception}} {{mod=@{perception_bonus}}} {{r1=[[ @{d20} + @{perception_bonus} ]]}} |Performance, +@{performance_bonus} ]]}} {{rname=Performance}} {{mod=@{performance_bonus}}} {{r1=[[ @{d20} + @{performance_bonus} ]]}} |Persuasion, +@{persuasion_bonus} ]]}} {{rname=Persuasion}} {{mod=@{persuasion_bonus}}} {{r1=[[ @{d20} + @{persuasion_bonus} ]]}} |Religion, +@{religion_bonus} ]]}} {{rname=Religion}} {{mod=@{religion_bonus}}} {{r1=[[ @{d20} + @{religion_bonus} ]]}} |Sleight of Hand, +@{sleight_of_hand_bonus} ]]}} {{rname=Sleight of Hand}} {{mod=@{sleight_of_hand_bonus}}} {{r1=[[ @{d20} + @{sleight_of_hand_bonus} ]]}} |Stealth, +@{stealth_bonus} ]]}} {{rname=Stealth}} {{mod=@{stealth_bonus}}} {{r1=[[ @{d20} + @{stealth_bonus} ]]}} |Survival, +@{survival_bonus} ]]}} {{rname=Survival}} {{mod=@{survival_bonus}}} {{r1=[[ @{d20} + @{survival_bonus} ]]}} |Strength, +@{strength_mod}@{jack_attr}[STR]]]}} {{rname=Strength}} {{mod=@{strength_mod}@{jack_bonus}}} {{r1=[[ @{d20} + @{strength_mod}@{jack_attr}[STR]]]}} |Dexterity, +@{dexterity_mod}@{jack_attr}[DEX]]]}} {{rname=Dexterity}} {{mod=@{dexterity_mod}@{jack_bonus}}} {{r1=[[ @{d20} + @{dexterity_mod}@{jack_attr}[DEX]]]}} |Constitution, +@{constitution_mod}@{jack_attr}[CON]]]}} {{rname=Constitution}} {{mod=@{constitution_mod}@{jack_bonus}}} {{r1=[[ @{d20} + @{constitution_mod}@{jack_attr}[CON]]]}} |Intelligence, +@{intelligence_mod}@{jack_attr}[INT]]]}} {{rname=Intelligence}} {{mod=@{intelligence_mod}@{jack_bonus}}} {{r1=[[ @{d20} + @{intelligence_mod}@{jack_attr}[INT]]]}} |Wisdom, +@{wisdom_mod}@{jack_attr}[WIS]]]}} {{rname=Wisdom}} {{mod=@{wisdom_mod}@{jack_bonus}}} {{r1=[[ @{d20} + @{wisdom_mod}@{jack_attr}[WIS]]]}} |Charisma, +@{charisma_mod}@{jack_attr}[CHA]]]}} {{rname=Charisma}} {{mod=@{charisma_mod}@{jack_bonus}}} {{r1=[[ @{d20} + @{charisma_mod}@{jack_attr}[CHA]]]}} } @{global_skill_mod} @{charname_output}
December 28 (4 years ago)

Edited December 28 (4 years ago)
Oosh
Sheet Author
API Scripter

Those macros look like they are all for the Roll20 sheet, not the Shaped sheet... that's probably the issue :)

December 28 (4 years ago)
Jordan C.
Pro
API Scripter

Brb deactivating my account...

December 28 (4 years ago)

Edited December 28 (4 years ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

The code for Ability checks (and much more) on the Shaped sheet can be found the sheet's settings tab. There is a list of blue buttons on the right hand side. These can be dragged down onto the macro bar (for use on that one specific character), or you can modify them by activating them, pressing the up arrow in chat to get the code and substituting "selected" wherever the character name appears:

/w @{selected|character_name} &{template:5e-shaped} {{ability=1}} {{character_name=@{selected|character_name}}} @{selected|show_character_name} {{title=^{ABILITY_CHECKS}}} {{text_big=@{selected|ability_checks_macro_var}}}


Edit: Note that this produces a Chat Menu, not a drop down menu. It can probably be adapted without much effort.

December 28 (4 years ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

Nope. It's a bit more difficult to make a drop down for this on Shaped. I'd still with the built in macros.

December 30 (4 years ago)


keithcurtis said:

The code for Ability checks (and much more) on the Shaped sheet can be found the sheet's settings tab. There is a list of blue buttons on the right hand side. These can be dragged down onto the macro bar (for use on that one specific character), or you can modify them by activating them, pressing the up arrow in chat to get the code and substituting "selected" wherever the character name appears:

/w @{selected|character_name} &{template:5e-shaped} {{ability=1}} {{character_name=@{selected|character_name}}} @{selected|show_character_name} {{title=^{ABILITY_CHECKS}}} {{text_big=@{selected|ability_checks_macro_var}}}


Edit: Note that this produces a Chat Menu, not a drop down menu. It can probably be adapted without much effort.


Thanks a lot for the help. This was what I was going with as I couldn't figure out a drop down macro for shaped. 

Thanks everyone for the feedback!