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

Crit/Fumble Roll Table Selector Drop Down

1743046722

Edited 1743047160
Cron
Pro
What am I doing wrong??? I found Crit and Fumble tables that are not too bad but will add a little spice to rolls. I added them into game by making roll tables. Now, I am trying to make a macro to select 4 roll tables. Weapon-Crit, Weapon-Fumble, Magic-Crit, Magic-Fumble. Should be something like this or so I thought. ?{Type|Weapon-Crit, &{template:npcaction} {{rname=Weapon-Crit}} {{description=[[1t[Weapon-Crit]]]   }}|Weapon-Fumble, &{template:npcaction} {{rname=Weapon-Fumble}} {{description=[[1t[Weapon-Fumble]]]   }}|Magic-Crit, &{template:npcaction} {{rname=Magic-Crit}} {{description=[[1t[Magic-Crit]]]   }}|Magic-Fumble, &{template:npcaction} {{rname=Magic-Fumble}} {{description=[[1t[Magic-Fumble]]]   }}} This gives me a box not a dropdown with 'Weapon-Crit,&{template:npcaction}' in it. Do I have brackets wrong somewhere? Thx in advance for the help, you guys are always so great.
<a href="https://wiki.roll20.net/Nesting#Roll_Query_Troubleshooting:_Collections_Macros" rel="nofollow">https://wiki.roll20.net/Nesting#Roll_Query_Troubleshooting:_Collections_Macros</a> You will have to use HTML entities for all pipes, closing braces, and commas, because they break the query. Some parts of your macro can be simplified by moving portions that are common to each result outside of the query.
1743067553

Edited 1743069378
Cron
Pro
Ok, thank you. Little bit of a pain but very doable. Can you please elaborate on what part can be outside query? I can see&nbsp;&amp;{template:npcaction} being before but not sure what else. ?{Type&amp;#124;Weapon-Crit&amp;#44;&amp;{template:npcaction&amp;#125; {{rname=Weapon-Crit&amp;#125;&amp;#125; {{description=[[1t[Weapon-Crit]]]&nbsp; &nbsp;&amp;#125;&amp;#125;&amp;#124;Weapon-Fumble&amp;#44;&amp;{template:npcaction&amp;#125; {{rname=Weapon-Fumble&amp;#125;&amp;#125; {{description=[[1t[Weapon-Fumble]]]&nbsp; &nbsp;&amp;#125;&amp;#125;&amp;#124;Magic-Crit&amp;#44;&amp;{template:npcaction&amp;#125; {{rname=Magic-Crit&amp;#125;&amp;#125; {{description=[[1t[Magic-Crit]]]&nbsp; &nbsp;&amp;#125;&amp;#125;&amp;#124;Magic-Fumble&amp;#44;&amp;{template:npcaction&amp;#125; {{rname=Magic-Fumble&amp;#125;&amp;#125; {{description=[[1t[Magic-Fumble]]]&nbsp; &nbsp;&amp;#125;&amp;#125;&amp;#125; This gives me: ?{Type|Weapon-Crit,&amp;{template:npcaction} {{rname=Weapon-Crit}} {{description=#15-19 - You are able to use the disengage action after your attack. }}|Weapon-Fumble,&amp;{template:npcaction} {{rname=Weapon-Fumble}} {{description=#90-94 - You fall prone. Roll a DC 10 constitution save, on failure you take 1d6 damage and are knocked unconscious for 1 minute or until you receive damage from any source. On success take half damage and you remain conscious. }}|Magic-Crit,&amp;{template:npcaction} {{rname=Magic-Crit}} {{description=#40-49 - Your target is blinded until the end of their next turn. }}|Magic-Fumble,&amp;{template:npcaction} {{rname=Magic-Fumble}} {{description=#60-69 - You are unable to perform somatic components to cast spells until the end of your next turn. }}} It is rolling 4x on tables and not giving me a prompt at all.
It appears the only thing that changes is the table name and the rname but they both use the same name so your original macro can be significantly simplified as: &amp;{template:npcaction} {{rname=?{Type|Weapon-Crit|Weapon-Fumble|Magic-Crit|Magic-Fumble}}} {{description=[[1t[?{Type}] ]]}}
Wow. Thank you. I didn't know you could use the results of a query in a macro like that&nbsp;[[1t[?{Type}] ]]. Works perfect, again thank you very much.