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

Templates with dropdown selections

Hi, im trying to make a macro to roll damage in a  template. My plan is to show the material of the weapon on one row, then the damage on another. Anyone able to help, i can't see any other forum that help. &{template:default}  {{name=Common Pike}}  {{Material =[[?{Choose Material|Chitin, Chitin|Iron, Iron|Silver, Silver|Steel, Steel|Dwemer (Magic), Dwemer (Magic)|Moonstone (Magic), Moonstone (Magic)|Orichalcum (Magic), Orichalcum (Magic)|Adamantium (Magic), Adamantium (Magic)|Malachite (Magic), Malachite (Magic)|Stahlrim (Magic), Stahlrim (Magic)|Daedric (Magic), Daedric (Magic)|Ebony (Magic), Ebony (Magic)|Dragonbone (Magic), Dragonbone (Magic)}]]}}  {{Damage=[[?{Roll|Chitin, [[1d12]]|Iron, [[1d12]]|Silver, [[1d12+1]]|Steel, [[1d12+1]]|Dwemer (Magic), [[1d12+2]]|Moonstone (Magic), [[1d12+2]]|Orichalcum (Magic), [[1d12+2]]|Adamantium (Magic), [[1d12+3]]|Malachite (Magic), [[1d12+3]]|Stahlrim (Magic), [[1d12+3]]|Daedric (Magic), [[1d12+4]]|Ebony (Magic), [[1d12+4]]|Dragonbone (Magic), [[1d12+5]]}]]}}
1670736617

Edited 1670738598
Gauss
Forum Champion
Your first query has a text output, inline rolls do not work with text outputs.  With that said, you should be able to get the inline roll look you want if you create Rollable tables and inline those.  Example:  Chitin,1t[Chitin] with the word Chitin as the only line in the table will result in a Rollable table which can be inlined. However, that will require creating a table for each material type.  Instead, I suggest you combine the Material and Damage sections into one section.  &{template:default} {{name=Common Pike}} {{?{Choose Material|Chitin,Chitin|Iron,Iron|Silver,Silver|Steel,Steel|Dwemer (Magic),Dwemer (Magic)|Moonstone (Magic),Moonstone (Magic)|Orichalcum (Magic),Orichalcum (Magic)|Adamantium (Magic),Adamantium (Magic)|Malachite (Magic),Malachite (Magic)|Stahlrim (Magic),Stahlrim (Magic)|Daedric (Magic),Daedric (Magic)|Ebony (Magic),Ebony (Magic)|Dragonbone (Magic),Dragonbone (Magic)} Damage=[[?{Roll|Chitin, [[1d12]]|Iron, [[1d12]]|Silver, [[1d12+1]]|Steel, [[1d12+1]]|Dwemer (Magic), [[1d12+2]]|Moonstone (Magic), [[1d12+2]]|Orichalcum (Magic), [[1d12+2]]|Adamantium (Magic), [[1d12+3]]|Malachite (Magic), [[1d12+3]]|Stahlrim (Magic), [[1d12+3]]|Daedric (Magic), [[1d12+4]]|Ebony (Magic), [[1d12+4]]|Dragonbone (Magic), [[1d12+5]]}]]}} Material Chitin Damage 10 It will read: Chitin Damage 10 Not a problem exactly, but you also don't need to brace [[ ]] every roll in the second query. The [[ ]] braces around the query will work fine for the purpose.   Note: I did not fix the extra brace issues in my redo of your macro. 
Thanks Gauss that works, shame can't have them as two serepate rows
1670769960

Edited 1670770365
Gauss
Forum Champion
Did some asking around, here is a solution for you that looks as you want it to:  &{template:default} {{name=Common Pike}} {{Material=[?{Choose Material|Chitin,Chitin|Iron,Iron|Silver,Silver|Steel,Steel|Dwemer (Magic),Dwemer (Magic)|Moonstone (Magic),Moonstone (Magic)|Orichalcum (Magic),Orichalcum (Magic)|Adamantium (Magic),Adamantium (Magic)|Malachite (Magic),Malachite (Magic)|Stahlrim (Magic),Stahlrim (Magic)|Daedric (Magic),Daedric (Magic)|Ebony (Magic),Ebony (Magic)|Dragonbone (Magic),Dragonbone (Magic)}](#" style="background-color:#fef68e; border: 2px solid #fef68e; padding: 0 3px; cursor:help; font-size:1.1em; font-weight: bold" title="Material = (Material))}} {{Damage=[[?{Roll|Chitin,1d12|Iron,1d12|Silver,1d12+1|Steel,1d12+1|Dwemer (Magic),1d12+2|Moonstone (Magic),1d12+2|Orichalcum (Magic),1d12+2|Adamantium (Magic),1d12+3|Malachite (Magic),1d12+3|Stahlrim (Magic),1d12+3|Daedric (Magic),1d12+4|Ebony (Magic),1d12+4|Dragonbone (Magic),1d12+5}]]}} The relevant bit:  [ insert query here ] (#" style="background-color:#fef68e; border: 2px solid #fef68e; padding: 0 3px; cursor:help; font-size:1.1em; font-weight: bold" title=" Material = ( Material )) Bolded+underlined is the section you want it to display in an inline form. Bolded sections are where you can type stuff you want it to say when you hover over it.  Also fixed the excess brackets and spaces after the commas. 
Works perfectly Thanks for the help