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

BECMI ability check with drop down menu

Hello I am using the 5eDefault sheet for BECMI D&D and trying to build a macro that allows players to select one of the six abilities and have them checked. In BECMI there are no modifiers, no advantage/disadvantage rolls it's simply a d20 roll that has to be equal or less the value of the selected ability. So far I came up with something like this but it does not work at all: &{template:5eDefault} {{ability=1}} {{title=Check of ?{Ability| Strength, {{subheader=@{selected|token_name} }} {{subheaderright=Strength}} {{emote=ready to be checked...}} {{freetext=Must roll **@{selected|strength}** or less.}} {{rollname=Result}} {{roll=[[1d20]]}} } }}| Dexterity, {{subheader=@{selected|token_name} }} {{subheaderright=Dexterity}} {{emote=ready to be checked...}} {{freetext=Must roll **@{selected|dexterity}** or less.}} {{rollname=Result}} {{roll=[[1d20]]}} } }}| Constitution, {{subheader=@{selected|token_name} }} {{subheaderright=Constitution}} {{emote=ready to be checked...}} {{freetext=Must roll **@{selected|constitution}** or less.}} {{rollname=Result}} {{roll=[[1d20]]}} } }}| Intelligence, {{subheader=@{selected|token_name} }} {{subheaderright=Intelligence}} {{emote=ready to be checked...}} {{freetext=Must roll **@{selected|intelligence}** or less.}} {{rollname=Result}} {{roll=[[1d20]]}} } }}| Wisdom, {{subheader=@{selected|token_name} }} {{subheaderright=Wisdom}} {{emote=ready to be checked...}} {{freetext=Must roll **@{selected|wisdom}** or less.}} {{rollname=Result}} {{roll=[[1d20]]}} } }}| Charisma, {{subheader=@{selected|token_name} }} {{subheaderright=Charisma}} {{emote=ready to be checked...}} {{freetext=Must roll **@{selected|charisma}** or less.}} {{rollname=Result}} {{roll=[[1d20]]}} } }} Any hint?
1606546594

Edited 1606546821
Oosh
Sheet Author
API Scripter
That's the old HTML replacement problem. The }} braces are breaking the Query. You can also reduce the size of the macro by putting as much as possible outside the Query (anything that's the same for each option): &{template:5eDefault} {{ability=1}} {{subheader=@{selected|token_name} }} {{emote=ready to be checked...}} {{rollname=Result}} {{roll=[[1d20]]}} {{title=Check of}} {{subheaderright=?{Ability| Strength,Strength}} {{freetext=Must roll **@{selected|strength}| Dexterity,Dexterity}} {{freetext=Must roll **@{selected|dexterity}| Constitution,Constitution}} {{freetext=Must roll **@{selected|constitution}| Intelligence,Intelligence}} {{freetext=Must roll **@{selected|intelligence}| Wisdom,Wisdom}} {{freetext=Must roll **@{selected|wisdom}| Charisma,Charisma}} {{freetext=Must roll **@{selected|charisma}}** or less.}} This reduces the amount of HTML replacement you need, and saves the lives of a few electrons.
Oosh said: That's the old HTML replacement problem. The }} braces are breaking the Query. You can also reduce the size of the macro by putting as much as possible outside the Query (anything that's the same for each option): That's what I have tried first, but with awful results... Thank you for your help :)