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

Help with Ability Check drop down

Hey! I'm trying to make a drop down list for ability check for Pathfinder 1st edition (Pathfinder sheet by roll20) This is what I've got so far: Normal 0 false false false en-FI X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:8.0pt; mso-para-margin-left:0cm; line-height:107%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri",sans-serif; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi; mso-ansi-language:#0C00; mso-fareast-language:EN-US;} ?{ Ability Check | Strength,@{Selected|whispertype} &{template:pc} {{name=^{strength}}} {{type=ability}} {{showchar=@{Selected|rollshowchar}}} {{charname=@{Selected|character_name}}} {{roll=[[1d20+@{Selected|strength_mod}[MOD]+(@{Selected|ability_check_condition})[CONDITIONc]+@{Selected|rollmod_ability}[QUERY]]]}} {{shownotes=@{Selected|rollnotes_ability}}} {{notes=@{Selected|strength_notes}}} {{conditionsflag=[[@{Selected|ability_check_condition}+@{Selected|strength_condition}]]}} {{conditions=@{Selected|conditions_display}}} | Dexterity,@{Selected|whispertype} &{template:pc} {{name=^{dexterity}}} {{type=ability}} {{showchar=@{Selected|rollshowchar}}} {{charname=@{Selected|character_name}}} {{roll=[[1d20+@{Selected|dexterity_mod}[MOD]+(@{Selected|ability_check_condition})[CONDITIONc]+@{Selected|rollmod_ability}[QUERY]]]}} {{shownotes=@{Selected|rollnotes_ability}}} {{notes=@{Selected|dexterity_notes}}} {{conditionsflag=[[@{Selected|ability_check_condition}+@{Selected|dexterity_condition}]]}} {{conditions=@{Selected|conditions_display}}} |Constitution,@{Selected|whispertype} &{template:pc} {{name=^{constitution}}} {{type=ability}} {{showchar=@{Selected|rollshowchar}}} {{charname=@{Selected|character_name}}} {{roll=[[1d20+@{Selected|constitution_mod}[MOD]+(@{Selected|ability_check_condition})[CONDITIONc]+@{Selected|rollmod_ability}[QUERY]]]}} {{shownotes=@{Selected|rollnotes_ability}}} {{notes=@{Selected|constitution_notes}}} {{conditionsflag=[[@{Selected|ability_check_condition}]]}} {{conditions=@{Selected|conditions_display}}} } I can't seem to get this to work, just wondering if anyone knew what I'm doing wrong?
1595351718

Edited 1595351736
GiGs
Pro
Sheet Author
API Scripter
I'd say somewhat facetiously, what you're doing wrong is using a dropdown, instead of a chat menu... But getting serious, are all those linebreaks in the original code, or just formatting for this post? The only place you can have linebreaks in a query is just after a |. Once getting rid of the linebreaks, I'd rework the structure of your macro to move as much outside the query as you can. For example, each row starts with: @{Selected|whispertype} &{template:pc} so you can put that before the query starts, and avoid a lot of duplication: @{Selected|whispertype} &{template:pc} ?{Ability Check| It looks like there's a lot you can move out after the end of the query, too. Also note that the order of things in the rolltemplate doesnt usually matter. For example, it looks like this lot can be moved out to after the end of the query: {{type=ability}}  {{showchar=@{Selected|rollshowchar}}} {{charname=@{Selected|character_name}}} {{shownotes=@{Selected|rollnotes_ability}}} {{conditions=@{Selected|conditions_display}}} While examining them I noticed you have some attributes being referenced that might contain text, for instance @{Selected|strength_notes} If any attributes in query contain any query characters within their value (commas, for example), it'll break the query. It wont break a chat menu though...
You are indeed right about the chat menu use, think I'll just make one of those instead. I was mostly trying to see if I cold figure out how the drop down query would work with the Pc template, thank you for the help and sage advice.