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

Token-Mod issue or maybe rolling tables

1575401220

Edited 1575401779
Hey so i'm helping out one of my party members, he's doing a BloodHunter and is order of the Lycan so he can shape shift, i set up a rolling table with 2 images of his normal half elf form, and his shifted form. when he tested it for the first few game everything was fine, but he didnt like how he built his character, long and the short we rebuilt his guy and the default halfelf token needed to be changed. i made new rolling table with his new look. i've made 2 macros, one that shifts him, and reduces his resouce count on his transforms for easy tracking and this works fine, on both versions however the Revert to normal macro, only works on the old character, i cannot for the life of me figure out why.  we have multiple characters that use this (over different campaigns) but his token just refuses to work.  for example, the Top Left guy in the white shirt is the new guy, the top right with swords is the old version. and the goblin is a barbarian of mine from a different game, but when he rages gets slightly bigger and blue-er. i can use the same command on all 3, but it wont work on the top left new guy. showing that they are all set to be multi sided: Here shows they all can be token-moded to side 2 just fine. but try and go back to side 1, no go on top right guy: i've checked the API output area there is no errors nothing to go off of, any ideas? oh and here is the rolling table for the guy that doesn't work:
1575403869
Ziechael
Forum Champion
Sheet Author
API Scripter
What API messages are you using to transition?... it's worth noting that side 1 is considered side 0 so if you are trying to set the side to 1 it will actually be the second image in the table you will end up with.
1575404127
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Where is the white-shirted token from? If you pulled it directly in from a marketplace purchase, tokenmod won't be able to change the token to that side as API scripts don't have access to marketplace images.
i'm using: !token-mod --set currentside|1 !token-mod --set currentside|2 i tried indexing from 0 like you mentioned !token-mod --set currentside|0 doesn't do anything for all 3 !token-mod --set currentside|1 sets 2 of the tokens to the first image in the table !token-mod --set currentside|2 sets all 3 to the 2nd image in the table i've even tried: !token-mod --set currentside|+1  and for the 2 working ones, this toggles them back and forth perfectly, for the broken token, it gets him from side 1 to side 2, but then he gets stuck
the white shirt guy image i uploaded from my pc he was just a google image search for a transparent token
1575404625
Ziechael
Forum Champion
Sheet Author
API Scripter
Odd indeed... just did some testing and my original hypothesis must have been based on old, incorrect, information since 0 definitely does not do anything... sure it used to or I'm getting confused with repeating section indexing!?! I'd suggest deleting the wonky token and dropping another one out to test... could just be a bad egg (sure that's possible somehow?!?)
I just tried selecting all 3 and using: !token-mod --set currentside|+1 as you can see, the other 2 work just fine, but he gets stuck on the flip side
ok, so i just poped the token out from the rolling table, not attached to any sheet, did the same with my lil goblin too and same thing happens, the new white shirt token guy gets stuck, but my goblin works just fine
after seeing that, i just quickly remade the table and tested it before setting it to his token.  it's working now wonder what could corrupt a table to stop working like that, odd.
1575416888
The Aaron
Roll20 Production Team
API Scripter
Ziechael said: Odd indeed... just did some testing and my original hypothesis must have been based on old, incorrect, information since 0 definitely does not do anything... sure it used to or I'm getting confused with repeating section indexing!?! Should be indexed from 1. When I wrote it, I tried to use an interface that makes sense to humans. =D  Zero-biased is very much a programmer thing. 
1575449814
Ziechael
Forum Champion
Sheet Author
API Scripter
The Aaron said: that makes sense to humans... Ahh, that's where it falls down for me then...