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

Accessing Multi-Sided Token

1495683576
Bast L.
Pro
API Scripter
Heya. I wanted to make a nice script for our druid character to change forms. I set up the token based on a table with some of the forms, but I don't see how to access, via script, which of the "multi-sided" images is selected. If anyone knows how to do this, or knows that it can't currently be done, please let me know. Thanks, Bast
1495685560
Lithl
Pro
Sheet Author
API Scripter
You ought to be able to compare the graphic's imgsrc property to the avatar property of the tableitems.
1495701579

Edited 1495704144
Ziechael
Forum Champion
Sheet Author
API Scripter
Please note that the images will need to be in the users library and not from the marketplace/google search results. I use  this one ( forum thread here ) along with TokenMod for my players druid shifting.
1495713438
Bast L.
Pro
API Scripter
Thanks for the info. I'll try to get it working.