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

macro to make multi-sided token change side?

February 12 (11 years ago)
I wanted to know if there is any possibility to make a multi sided token (from a rollable table in this case) change it's side.
I want to use this for either custom dice or a random enemy generator, or maybe a random energy field that changes states.
February 12 (11 years ago)
Gid
Roll20 Team
Not at this time, no. That might require some API programming to get that to work and I'm not sure if that's an asset that can be played with yet with the given API.
February 12 (11 years ago)
Okay, thank you.
Thinking about a mentor account, probably in a month or two.
February 12 (11 years ago)
Konrad J.
Pro
API Scripter
I haven't played with rollable tables yet in the API, but yes you should be able to write a script to do that. I actually just last night wrote a script to change a regular token's image so it doesn't even need to be in a rollable table. It was just a test script to see how it worked, but it could be finished and made better. But a rollable table is probably the easier solution for most users. I'll maybe work on a script on the weekend or next week. Already got a bunch on my plate. Then you just put the chat window command into a macro.
February 12 (11 years ago)
Tom
Plus
Sheet Author
What I did in the past was just keep the switched token on the GM layer. Then, when the moment was right, swapped them out. Sure, it could have been more dramatic and instantaneous, but it worked just the same.

But if another thread is correct and double sided tokens are being considered for a future update, sign me up!