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

A Macro for a rollable table in a rollable table

I am trying to create a macro so that with a click a player would be able to roll on 2 rollable tables at once. So what i have so far is a base macro to roll on the original table. It looks like a normal table roll: #Wastebase = [[1t[Wasteland]]] The second macro, the one that the players would see, looks like this: #Wasteland-Search = [[1t[#wastebase]]] When I do it it tells me there is no table by that name. Is it possible and I haven't found the right combination or is it not possible?
Capitalization is one possible culprit here, if your table is called "Wastebase" and you're looking for "wastebase". -pHnoRD
1427773485
The Aaron
Roll20 Production Team
API Scripter
(Moved to Specific Use Questions. API is for the Javascript API)
1427793635
Lithl
Pro
Sheet Author
API Scripter
I don't think this will work. Combining the /roll command with inline rolls might work, like /roll 1t[[[1t[Wasteland]]]]
Rollable inception!
Neither of the suggestions worked but thanks for the input. Anybody else have a suggestion to try or a definitive answer if it is possible?
I'm confused... what exactly are you trying to accomplish? I only see one rollable table, not two.
1427841996
Gen Kitty
Forum Champion
One thing you could do is instead of a table that rolls more tables is to make a single mega-table. If your table is complicated, you may need to break out the math skills or a spreadsheet program to calculate the needed weights.
HoneyBadger said: I'm confused... what exactly are you trying to accomplish? I only see one rollable table, not two. Agreed... if you gave us more specific details on what you're trying to accomplish, we'd be better able to help.
I am trying to have a table that randomly selects one table that then rolls on the randomly selected table. For example, in the game Dark Heresy when a critical hit is rolled you need to roll the hit location and then roll to see what the effect is on the body part. I am trying to have it so that it selects the body part in the intiial table then uses the body part roll to auto the effect. Continuing with the example, my idea in the macro is to set up hit location table that we will call #hitloc = [[1t[hit-location]]] Then i want the macro that the players will actually use we will call #Criteffect = [[1t[#hitloc]]] With the idea being it #hitloc will generate the body part then plug it in to the #criteffect roll and auto generate the effect of the critical. Does that make more sense?
1427845862
Gen Kitty
Forum Champion
I still say your best bet is the mega-table, for a clean inline presentation. ^_^
1427848687

Edited 1427848756
It's not possible to nest rollable tables like that, but you can call a macro from a macro. It would be more like #CritEffect = #HitLoc