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

Select a specific item in Roll Table

1570504354

Edited 1570505506
Is there a way to access a specific value in a rollable table? I have a token and want to create an easy click to swap the image back and forth. I want to make it a simple button or two to switch and switch back with a formula. So far I can only find the random formula which works but sometimes you need to click it a bunch of times to change it. Is there a simpler way to do this, or a more complicated that changes the odds on the roll table each time I use the equation or something? Thanks in advance for the help! EDIT: If this can only be done using pro/etc would it still work if I were to export the character into other players games?
1570513509
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I wasn't even aware there was a random formula. So far as I know, choosing a rollable token's face with a macro is only possible with an API scrip such as token-mod, or changeTokenImage. With these, yes, you can do exactly what you suggest. The commands would work for exported characters only if they were imported into a game which had the same API script installed, and even then might require the GM to authorize such a script to function for players. This last would depend on the script and how the command is written.
1570521749

Edited 1570521804
GiGs
Pro
Sheet Author
API Scripter
What random formula are you using? There's only two ways I know of to change the face of a rollable table: manually, by rightclicking the token and changing it from there, or through a script like tokenmod. Regarding your edit: yes, if your character is transferred into a game created by a pro subscriber, pro features will work on that character. Edit: didnt see Keith had replied. That's what i get for leaving a tab open for a couple of hours.
1570542197
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
GiGs said: That's what i get for leaving a tab open for a couple of hours. I never do that all the time.
1570571838
The Aaron
Roll20 Production Team
API Scripter
Minor side note: the API can only change to images in a User Library, not Marketplace images. If you want to use Marketplace images with Rollable Table Tokens and set them with the API, you must download them and upload them to a User Library.