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

Connecting Rollable Tables with Tokens and Macros

Hi! I'm really new to tables and macros so I'm not sure if what I'm looking for is complicated or if I need API scripting. But, what I'm looking to do is have a rollable table with multiple token icons. Then a macro that selects one of the tokens from the rollable table. I'm using colored dice for my campaign and i want to create tokens that match said dice color for when they roll. 
1626704061
timmaugh
Roll20 Production Team
API Scripter
While rollable tables with multiple token icons are very do-able, macros can't make changes or write values to other objects on their own (they can just retrieve/use them). To actually change the token you would need a script like TokenMod.
1626729048
GiGs
Pro
Sheet Author
API Scripter
If you have images for each face of the dice, create a new table, give at a name. In my example I used colored-dice . You can name it anything you want. Then add one new item (rows) for each dice face to the table: Name: the face on the die Weight: 1 Icon: the image for the dice face. Then you can roll the die like /roll 3t[colored-dice] That will roll and add 3 dice, and show their dice images in chat.