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 .
×

dropdown for tables

This is for playing solo or to assist while DMing.  Rather than having a macro that has to open three tables at one time, I am trying to have a dropdown to select which table to use.  As an example, encounters based on the type of terrain you are in.  The dropdown would let me select either wilderness, urban, or dungeon.  After selecting, it would select one of the options from the corresponding table.  Here is what I came up with temporarily, but it shows an example of each.  I just think the dropdown would make it cleaner. This works: &{template:default} {{name=Terrain Encounters}} {{If you are in the wilderness=[[1t[EncounterWilderness]]]}} {{If you are in an urban environment=[[1t[EncounterUrban]]]}} {{If you are in a Dungeon=[[1t[EncounterDungeon]]]}}  This is what is not working? &{template:npcaction} {{rname=Terrain Encounter}} {{description=Type of terrain ? {Type? |Wilderness,[[1t[EncounterWilderness]]] |Urban, [[1t[EncounterUrban]]] |Dungeon, [[1t[EncounterDungeon]]]}}}
1613014142

Edited 1613014438
David M.
Pro
API Scripter
Try this? &{template:npcaction} {{rname=Terrain Encounter}} {{description=[[ 1t[?{Type|Wilderness,EncounterWilderness|Urban,EncounterUrban|Dungeon,EncounterDungeon}] ]]}} EDIT - ...or, just delete a space, haha
1613014162
GiGs
Pro
Sheet Author
API Scripter
you have a space here:  Type of terrain ? {Type? | It should be Type of terrain ?{Type?|
Thank you so much!  This will be super helpful! ....  one other related question... if, within my table, one of the options is, "room with 1d4+2 doors" is it possible to have it just roll for me and show, "room with 3 doors"?  or do I just have to make that roll separately?
1613014648
David M.
Pro
API Scripter
There is an api script (RecursiveTable) that can do this, but it's not possible without api access.
David M. - Thank you!  I have been doing solo play and I started using this because it is much easier than flipping through multiple tables and rolling... keeps the game moving much quicker.  I am definitely going to have to upgrade to the Pro so that I can customize even more!