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

TokenMod not changing token image

I currently have a rollable table set up with 26 sides. My macro to change my token and to represent the correct sheet is as follows:


!token-mod {{

  --set

    ?{Choose Form

      |Astrafam,currentside#26

represents#@{Astrafam|character_id} width#[[70]] height#[[70]]

      |Astrafam Giant Constrictor Snake,currentside#7 represents#@{Astrafam Giant Constrictor Snake|character_id} width#[[3*70]] height#[[3*70]]

      |Astrafam Cave Bear,currentside#6 represents#@{Astrafam Cave Bear|character_id} width#[[70]] height#[[70]]

      |Astrafam Rhinoceros,currentside#22 represents#@{Astrafam Rhinoceros|character_id} width#[[2*70]] height#[[2*70]]

      |Astrafam Dire Wolf,currentside#9 represents#@{Astrafam Dire Wolf|character_id} width#[[2*70]] height#[[2*70]]


    }

    bar1_link|hp

    bar2_link|ac

    bar3_link|speed

    name|"Astrafam"

    showname|yes

}}


The token size changes, the correct representation happens but not the token image that matches the 'currentside'.

This exact same macro works on another shard/game with the exact same rollable table. What are the issues I'm not seeing?


Thank you

Sorry, I should mention that the first line works. If I revert back to "Astrafam" the token does change to him but doesn't subsequently change to anything else.

December 30 (5 years ago)
GiGs
Pro
Sheet Author
API Scripter

Are the images you are using from the marketplace, or ones you uploaded yourself? Scripts cant interact with marketplace images.


GiGs said:

Are the images you are using from the marketplace, or ones you uploaded yourself? Scripts cant interact with marketplace images.


Ones I uploaded myself via URL.

December 31 (5 years ago)
The Aaron
Roll20 Production Team
API Scripter

Hmm. I could take a look at this in your game tomorrow if you want to PM me a join link and GM me. 

Also, you might like using scale#3g instead of pixel sizes. Using scale sets width and height to the same value. 3g will set it to 3 grid units in size.