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

Using the result of a rollable table as the choice for another macro

Hello everyone, I cannot figure out how to write a macro that uses the result from a rollable table as the choice for another macro. Here is what I am trying to do: I have several rollable tables to generate different encounters. I have a macro that allows me to choose which table to roll from. /w gm &{template:default} {{name=Encounter-List}} {{?{Choose| Room Encounters , Room Encounters=[[1t[Room-Encounters]]]| Side Quests , Side Quests=[[1t[Side-Quest-Generator]]]| Commonwealth Encounters , Commonwealth Encounters=[[1t[Commonwealth-Encounters]]]| Object Encounter , Object Encounter=[[1t[Object-Encounter]]]| Campsite Encounters , Campsite Encounters=[[1t[campsite-encounters]]]} }} When I run this I get a popup asking me to Choose from the list, which in turn tells me the specific details of the encounter. I have another rollable table that lists each of the encounter types and I have a macro that uses that table. /w gm &{template:default} {{Name=Encounters}} {{Description=[[1t[Encounters]]]}} Is there a way to connect the two macros so I only have to click one time?  Thanks
Am I understanding correctly that you want the results of the first table [Encounters] to determine which other table is rolled on? If so, you can't, at least not with tables and without scripts. However, you can use inverse overwrite to only show the result from one table out of many: /w gm &{template:default} {{name=Encounter List [ ](#" hidden null=) }} {{[0]=[ ](#" hidden null=) }} {{[1]=[[1t[Room-Ecnounters]]] [ ](#" hidden null=) }} {{[2]=[[1t[Side-Quest-Generator]]] [ ](#" hidden null=) }} {{[3]=[[1t[Connonwealth-Encounters]]] [ ](#" hidden null=) }} {{[4]=[[1t[Object-Encounter]]] [ ](#" hidden null=) }} {{[5]=[[1t[campsite-encounters]]] [ ](#" hidden null=) }} {{[[[1d5-1]]]=[ ](#) }} EDIT: Well, technically you can use a table to select from other tables, but only as numbers, which isn't really any different from using dice.