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

Rollable Table Token Macro

Is there a way to set up a macro to simulate the "Token" feature of Rollable Tables, to place the token image directly onto the tabletop? I can see macros about rolling against the tables, but can't seem to find any about exploiting the Token feature.
Far as I know, the only way to accomplish something like this is to set up the table as the default token for a character sheet.
1525646213
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I'm not sure if a macro can simulate pressing the "Token" button in the rollable table dialog box. You want a macro that will take the indicated table and make a rollable token from it? That is probably doable with an API script.
Exactly right, Keith. I want to simulate pressing the "Token" button in the rollable table dialog box. Calling Token images onto the tabletop systematically by using the Rollable Tables is very powerful, so I'm hoping to exploit that feature more in my games. Do you know of an API that does this? I use the Rollable Table Token feature for tons of things like commoner image sets, or other gameplay icons I pop out onto the tabletop frequently, such as ongoing environment affects, map markers or quest discoveries. I'd prefer to kick them onto the tabletop with keystroke commands or macro buttons, to speed up the process and so I won't have to create character sheets for them (thanks Phnord, I'm right there with you!).
1525652747
The Aaron
Pro
API Scripter
I don't know of a script that supports doing this.  The biggest problem would be that the API can only create tokens with an imgsrc in a User Library, not in the marketplace.  If you built your tokens as characters, you could use King's Summon Script to create tokens from them (with the above caveat).  You can also assemble multi-sided tokens using TokenMod (with the same caveat).  This should copy the side from one token (Source) to another (Destination) and update the default token: !token-mod {{ --set sides|+@{target|Source|token_id} defaulttoken --ids @{target|Destination|token_id} }}
I'm pretty sure if he can get it to generate a Token from a Table, he'd be able to set up a simple Query for the API to assign the Side to (for example, Side 6 of t[Villager] Token)