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

API TokenMod - Wild Shape for Druid - Token Not Swapping Image

Hello... I grabbed this from The Aaron to set up a druid in my game.  Everything is working (stats, sizing, etc.), except the image of the token is not switching. /w gm wills herself to transform! !token-mod {{   --set     ?{Choose Form|Giant Toad,currentside#1 represents#@{Giant Toad|character_id} width#[[2*70]] height#[[2*70]]       |Crag Cat,currentside#2 represents#@{Crag Cat|character_id} width#[[2*70]] height#[[2*70]]       |Giant Hyena,currentside#3 represents#@{Giant Hyena|character_id} width#[[2*70]] height#[[2*70]]       |Dire Wolf,currentside#4 represents#@{Dire Wolf|character_id} width#[[2*70]] height#[[2*70]]       |Female Steeder,currentside#5 represents#@{Female Steeder|character_id} width#[[2*70]] height#[[2*70]]       |Snow,currentside#6 represents#@{Snow|character_id} width#[[70]] height#[[70]]     }     bar1_link|hp bar2_link|npc_ac     bar3_link|npc_speed     name|"Snow (BeastShaped)"     showname|yes }} I am NOT using anything from the marketplace and have uploaded the images to my library.  The order is the same in my rollable table as well. What am I missing here? Thanks!
1542997580
Kirsty
Pro
Sheet Author
That looks correct to me. Try dragging the token from the character sheet onto a map and then right-clicking it. Choose "multi-sided" and select "choose side". You (and your player) should be able to select the wild shape tokens. If that's not working, then your token isn't linked to the table properly. If it is working, then it's something on the API side.
1543006156
The Aaron
Pro
API Scripter
What Kirsty said.  If you want to ping me an invite to the game and GM me, I can probably take a look, but I've not had as much free time lately as I used to...
1543006327
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The Aaron said: ... I've not had as much free time lately as I used to... And we are all saddened and diminished by this. :(
Kirsty said: That looks correct to me. Try dragging the token from the character sheet onto a map and then right-clicking it. Choose "multi-sided" and select "choose side". You (and your player) should be able to select the wild shape tokens. If that's not working, then your token isn't linked to the table properly. If it is working, then it's something on the API side. I don't have the option for "Multi-sided" on any of my tokens. I've built the table the only way possible and added the token image to the item. I'm not super concerned with this anymore as I can just give the player access to the character sheets and let them move stuff around, but it would be nice to figure out because I hate when part of something works correctly, but not the rest. I'll shoot Aaron an invite.  No rush if you can't get it it. Thanks!
1543082575

Edited 1543082613
Kirsty
Pro
Sheet Author
It sounds like your token just isn't set up right. If you'd like to send me an invite, I'm happy to show you how if Aaron is busy. Basically what you need to do is select the table with the token images, and make the token from the table. Then attach the token to the character sheet. From there the API will have access to the table and will be able to switch the images. Here's the wiki on how to set it up.
1543087533
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Part of the problem is that if you are not using a multisided token, "currentside" won't do much. Try replacing all instances of currentside and number with "imgsrc". /w gm wills herself to transform! !token-mod {{   --set     ?{Choose Form|Giant Toad,imgsrc#@{Giant Toad|character_id} represents#@{Giant Toad|character_id} width#[[2*70]] height#[[2*70]]       |Crag Cat,imgsrc#@{Crag Cat|character_id} represents#@{Crag Cat|character_id} width#[[2*70]] height#[[2*70]]       |Giant Hyena,imgsrc#@{Giant Hyena|character_id} represents#@{Giant Hyena|character_id} width#[[2*70]] height#[[2*70]]       |Dire Wolf,imgsrc#@{Dire Wolf|character_id} represents#@{Dire Wolf|character_id} width#[[2*70]] height#[[2*70]]       |Female Steeder,imgsrc#@{Female Steeder|character_id} represents#@{Female Steeder|character_id} width#[[2*70]] height#[[2*70]]       |Snow,imgsrc#@{Snow|character_id} represents#@{Snow|character_id} width#[[70]] height#[[70]]     }     bar1_link|hp bar2_link|npc_ac     bar3_link|npc_speed     name|"Snow (BeastShaped)"     showname|yes }}
Kirsty said: That looks correct to me. Try dragging the token from the character sheet onto a map and then right-clicking it. Choose "multi-sided" and select "choose side". You (and your player) should be able to select the wild shape tokens. If that's not working, then your token isn't linked to the table properly. If it is working, then it's something on the API side. That took care of it.  Just needed to sort that out.  Thanks!
1543120653
Kirsty
Pro
Sheet Author
I'm glad you got it working!
does the "imgsrc" keep the token image or change it? As I can't get it to change the image just the token size. keithcurtis said: Part of the problem is that if you are not using a multisided token, "currentside" won't do much. Try replacing all instances of currentside and number with "imgsrc". /w gm wills herself to transform! !token-mod {{   --set     ?{Choose Form|Giant Toad,imgsrc#@{Giant Toad|character_id} represents#@{Giant Toad|character_id} width#[[2*70]] height#[[2*70]]       |Crag Cat,imgsrc#@{Crag Cat|character_id} represents#@{Crag Cat|character_id} width#[[2*70]] height#[[2*70]]       |Giant Hyena,imgsrc#@{Giant Hyena|character_id} represents#@{Giant Hyena|character_id} width#[[2*70]] height#[[2*70]]       |Dire Wolf,imgsrc#@{Dire Wolf|character_id} represents#@{Dire Wolf|character_id} width#[[2*70]] height#[[2*70]]       |Female Steeder,imgsrc#@{Female Steeder|character_id} represents#@{Female Steeder|character_id} width#[[2*70]] height#[[2*70]]       |Snow,imgsrc#@{Snow|character_id} represents#@{Snow|character_id} width#[[70]] height#[[70]]     }     bar1_link|hp bar2_link|npc_ac     bar3_link|npc_speed     name|"Snow (BeastShaped)"     showname|yes }}
1543206076
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
imgsrc should pull the token image of the referenced character and assign it to the selected token. My assumption was that you were not using multisided tokens, from something you said earlier. I have not tested this on a multisided token.
1543237321
The Aaron
Pro
API Scripter
Kilter said: does the "imgsrc" keep the token image or change it? As I can't get it to change the image just the token size. If the image url you’re specifying isn’t in a user library, it will be silently ignored. What’s the command you’re using?
I was using the code provided by keith only changed the name of the character it was for.  The Image is not in my library, I was hoping it would work from the NPC sheet. The Aaron said: Kilter said: does the "imgsrc" keep the token image or change it? As I can't get it to change the image just the token size. If the image url you’re specifying isn’t in a user library, it will be silently ignored. What’s the command you’re using?
1543251860
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Sorry, I was working from your first post, where you said you had uploaded image to your library. The script does indeed require the image to be in your library. Let me know if you need assistance in doing that.  Kilter said: I was using the code provided by keith only changed the name of the character it was for.  The Image is not in my library, I was hoping it would work from the NPC sheet.