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

Changing Token faces with a command?

I don't know the first thing about designing an API, but would there be a way to change the face of all tokens on the field to their "combat side" vs their "exploration side" with some kind of command?
1643081039
The Aaron
Roll20 Production Team
API Scripter
You can do that with TokenMod: Assuming you have a Rollable Table Token: !token-mod --set currentside|2 Note, this only works for images that are in a user library, so if you have marketplace images, you'll need to download them and upload them to be able to manipulate them from the API. You can also just set the image source: !token-mod --set imgsrc|<a href="http://some.image.in/a/user/library/1432342" rel="nofollow">http://some.image.in/a/user/library/1432342</a> using a URL for some image in a user library. Lots of details in the Help Handout it will install, or in the help: !token-mod --help
Thanks! So I could have an initiative button for my players, and in that button, have that command in there to turn it into it's "combat" face? and then back afterward?
1643086571
The Aaron
Roll20 Production Team
API Scripter
Yup!