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

Problem using token mod to change image on a rollable token

Hi, I have a number of tokens created from Rollable tables, each with 2 images.  I am trying to use token mod to change the displayed image. I select the token and run the following command  !token-Mod --set currentside!2  but nothing seems to happen Thinking I may already be using image 2 I then tried !token-Mod --set currentside!1 Still no change. Can anyone help me debug what I'm doing wrong? I can change image on token by right clicking and selecting Multisided so it definitely has the two images there Thanks
You’re using an exclamation point ‘!’ instead of a vertical pipe ‘|’.  !token-mod —-set currentside|2
Thanks Jarren.  Both looked same on Screen I've been using.  Need to get my eyesight checked :)
If all you want to do is toggle between them you could also use currentside|+.  If you want it to randomly assign it every time you drag the token out The Aaron wrote a scriptlet for that if you are interested.  Also I'm pretty sure that the api will not change to images that you don't have in your actual quota though I have never confirmed this, I know it definitely won't use imagesce command with marketplace urls.  
1643816031
The Aaron
Roll20 Production Team
API Scripter
The API won't be affected by quotas, only by location. The API can make use of images that are in a user's library, but can't make use of Marketplace images that are still stored in the marketplace. 
Thanks Guys.  It appears it is also case sensitive as I needed to change the ! to a pipe and the M to m.  All woking now, Thanks