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 .
×

5th Side of a Rollable token Macro wont Activate

Hello All, I've found this macro in a video on youtube for Druid Wildshape. In essence, it uses a tokenmod API command to give a dropdown menu for the user to pick from that include their player form, and 3 of their wild shapes (we decided just to pick a couple to make my life easy, instead of using the whole MM). The macro will switch a rollable token to the appropriate side to match the Character sheet being represented and will also change the size of the token and the bars to represent the HP / AC  of the sheet being represented. The first 4 sides work fine, it  breaks down when I try to add a 5th side.  When I activate the 5th drop down, Lycanthorupe (the spelling is intentionally wrong as it is an inside joke), it will change the token size, link to the correct sheet, and change the bars to match the sheet, but it wont change the token to the 5th side and I'm kinda stumped. The player has access to all 5 Character sheets. Macro code and screenshot below. Thanks! -Sebastian /w gm Erdan Galanodel wills himself to transform! !token-mod {{   --set     ?{Choose Form       |Erdan ,currentside#1 represents#@{Erdan Galanodel|character_id} width#[[70]] height#[[70]]       |African Swallow,currentside#2 represents#@{African Swallow|character_id} width#[[.5*70]] height#[[.5*70]]       |Brown Bear,currentside#3 represents#@{Brown Bear|character_id} width#[[2*70]] height#[[2*70]]       |Giant Octopus,currentside#4 represents#@{Giant Octopus|character_id} width#[[2*70]] height#[[2*70]]       |Lycanthorupe,currentside#5 represents#@{Lycanthorupe|character_id} Width#[[70]] height#[[70]]        }     bar1_link|hp     bar2_link|hp_temp     bar3_link|ac     name|"Erdan"     showname|yes }}
1645808896
The Aaron
Roll20 Production Team
API Scripter
The API can only access images that are in a user library.  If the image is from the marketplace, the API won't be able to switch to it.  You can check if that's the case by manually switching the token, hitting Z to zoom it, then right-click and copy the URL.  If the URL has marketplace in it, the API can't switch to it.
Hi Aaron, Although the image I'm using is from the Compendium MM, I downloaded the image and uploaded it to my Image library. A question about rollable tokens:  If I've added/subtracted sides from a token does it reset the index for the leftover sides? Meaning if for example, I've made a 5 sided token and I delete side 3, do sides 4 and 5 get re-indexed to 3 and 4? and if I Subsequently add a side to the end of the list, does it become the new side 5 or does it remember that the original 5 sides were there and assign it side 6? is there a way to see what side the table thinks each side is?
Ok I figured it out. After making changes to the rollable table I had to remake the token on the VTT; live and learn! Thanks for your help.