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

Clickable Table inside a Macro in chat

1597153480

Edited 1597153999
Hello I want to create a macro that rolls a table, an the result lets me click on the name to roll an additional macro/table. I have been fiddling around, but to no avail, I am still pretty new to all of this. What I want is something like... A macro inside the default template called "Name", then under it, the result from the first table called "Table 1", and that result lets me click on it to call the second table "Table 2" to roll again. Or just to let me click to roll a second macro, not necessarily a table directly. I've managed to make a clickable link to external sites, but I can't figure out on how to call another macro. I also tried doing some querying to create a pseudo-if statement, "When table 1 rolls X, Y shows up. When table 1 rolls Z, A shows up", but to no avail. I could make two separate macros to make it easier for myself, but I wanted to keep it clean. Thank you!
1597154400

Edited 1597154531
Finderski
Pro
Sheet Author
Compendium Curator
I think what you're looking for are Ability Command Buttons Or maybe API Command Buttons (though the API isn't strictly needed for this)
1597175293

Edited 1597175316
David M.
Pro
API Scripter
While the user interface you are describing sounds like API buttons, the functionality you are describing (tables calling tables) is table recursion. The Aaron wrote a script called RecursiveTables that can accomplish that functionality, but it is a Pro subscriber perk only.  I don't think there is a way to do this without api script access. Regarding not a 2nd table but "just a second macro":  The macro language does not have conditional if..then functionality. Depending on the content and complexity of your first table, and how it relates to your second process, you might be able to set up some trickery with a complicated query, but without knowing more details, we wouldn't be able to help you. The Powercards api script has some conditional statement support, but again would require pro.
If you don't mind copying and pasting, you can actually write entire macros and put them into rollable tables without using API.