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 multiple tables in one macro

How do you format a macro to have a drop down menu to choose between different templates(all the default I don't have access to others) I know how to do the dropdowns and the template it's just I don't know how to format it to make them work together
How original! I don't think I've attempted this before. I normally work with the same template, choosing that first and then adding the query like this. &{template:pf_spell} ?{Query options|1,{{name=1}}|Generic, {{name=generic}}|Spell, {{name=spell}}} I tried your idea... ?{Query options|1,1|Generic,&{template:pf_generic} {{name=generic}}|Spell, &{template:pf_spell} {{name=spell}}} And it works, applying different templates to the various options. Now you wanted the different default templates, but there is only  one  default unless you mean default for a specific character sheet. So if you need more help I need more info.
No technical points to add, but I could see this being a great little trick to make a single re-usable macro for rolling character attributes for different games if you do a lot of one-shots.  ie: creating a roll for 3.5, PF, 5e, or whatever other systems rolls stats.
That's what I normally use it for but someone recently reminded me about tables I normally just do inline rolls in a column for each of the stats with the name of the stat next to it
Thank you Julix
God damn I hate when I see a input value window with text while trying to do this
1453322806

Edited 1453322921
null said: ?{Query options|1,1|Generic,&{template:pf_generic} {{name=generic}}|Spell, &{template:pf_spell} {{name=spell}}} I can't seem to get this working correctly The Advanced Usage for Roll Queries section of the Roll20 Wiki explains why that is, if you're interested. Either way, this should work: &{template:pf_?{Template|generic|attack|spell}}
I just realized why this isn't working I never changed the template to default (Watch me be wrong about this I'll edit this away if I am)
?{Query options|1,1|Generic,&{template:pf_generic} {{name=generic}}|Spell, &{template:pf_spell} {{name=spell}}} Why is the one there after the comma?           I made some changes and it's been doing weird stuff like giving me 2 dropdown options but the first one rolls the second table and the second does nothing (I don't know how to insert it into a post to make it look nice so) ?{Query options|Human stats,1|&{template:default}|Spell, &{template:default} {{name=spell}}{{Attack=[[d20]]}}}
The "weird stuff" is a result of certain "problematic" characters breaking the Roll Query, as explained here. Let me know if that makes any sense; you'll have to replace those characters with HTML entities.