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

Druid Wild Shape Macro...can't get the token to switch

1613517206

Edited 1613535655
I have set up a rollable table with all the tokens set.  Have the multi-sided token associated with the main character sheet and selected when running.  I have NPC sheets for each shape in place as well. I'm try to get a macro that will resize the token for the various forms and tweek the bubble values based on the shape sheet. Using the following Macro to call the values in place, but cannot get the tokens to change.   What am I doing wrong? &{template:npcaction} {{name=@{selected|token_name} }} {{rname=Shapeshifter}} {{description=[Half Elf](!token-mod  --set currentside|1 width|70 height|70 represents|@{Llewlellen (Bob)|character_id} bar1_link|passive_wisdom bar2_link|ac bar3_link|hp name|Llewlellen showname|yes light_radius|60 light_dimradius| light_multiplier|1 light_angle|360 --off light_otherplayers --ids @{selected|token_id}) [Dire Wolf](!token-mod  --set currentside|2 width|140 height|140 represents|@{Llewlellen, Dire Wolf|character_id} bar1_link|passive_wisdom bar2_link|npc_ac bar3_link|hp name|Llewlellen showname|yes light_radius| light_dimradius| light_multiplier|1 light_angle|360 --off light_otherplayers --ids @{selected|token_id}) [Giant Hyena](!token-mod  --set currentside|3 width|140 height|140 represents|@{Llewlellen, Giant Hyena|character_id} bar1_link|passive_wisdom bar2_link|npc_ac bar3_link|hp name|Llewlellen showname|yes light_radius| light_dimradius| light_multiplier|1 light_angle|360 --off light_otherplayers --ids @{selected|token_id}) [Dire Octopus](!token-mod  --set currentside|4 width|140 height|140 represents|@{Llewlellen, Giant Octopus|character_id} bar1_link|passive_wisdom bar2_link|npc_ac bar3_link|hp name|Llewlellen showname|yes light_radius|60 light_dimradius| light_multiplier|1 light_angle|360 --off light_otherplayers --ids @{selected|token_id}) [Dire Spider](!token-mod  --set currentside|5 width|140 height|140 represents|@{Llewlellen, Giant Spider|character_id} bar1_link|passive_wisdom bar2_link|npc_ac bar3_link|hp name|Llewlellen showname|yes light_radius|60 light_dimradius| light_multiplier|1 light_angle|360 --off light_otherplayers --ids @{selected|token_id}) }}
Just out of curiosity: have you tried the Wildshape script ? It might do what you're looking for a bit more seamlessly. But for your macro above, what happens if you run just the currentside attribute of TokenMod? !token-mod  --set currentside|2 --ids @{selected|token_id}
It doesn't seem to be working in the simpler form either.    I'm not really a programmer, I am just trying to piece together the logic , my guess is that I am somehow messing up the syntax of what I want to do. I followed the link on the Wildshape script and looking at it, just really don't understand what I need to do with it.   While I know what API stands for, do I even have the ability to use something like that outside of PRO level?
Ok, next question: asking the basic troubleshooting question, but is the token you're trying to adjust multi-sided? I saw you stated that it was in your original post, but you're able to change the sides manually when you right-click on the token, and the images on each side are different? There is also this warning on the TokenMod forum page: NOTICE: This only works for images in the User Image library. If your token has images that are stored in the Marketplace Library, they will not be selectable with this command. You can download those images and upload them to your User Image Library to use them with this. So to also check: were the images you used for the rollable multi-sided token from the Marketplace Library, or uploaded directly from your computer? Have you tried creating a new rollable multi-sided token to see if that will work?
Just to be certain, I just recreated a new multi-sided token from images in my Library.  They are ones that were brought in from outside Roll20 initially.  The token works by itself.  pulled it out and can flip normally.   Still not working :(
1613562231
David M.
Pro
API Scripter
Just checking: Are you trying this in a game where the GM has a Pro account and Token-mod installed? You'll need api access for it to work. Has the GM's api sandbox crashed? A "Restart API Sandbox" might do the trick 
I'm the GM and not at PRO level.
HERZOGBRIAN said: I'm the GM and not at PRO level. API Scripts (such as TokenMod, which is what you are attempting to call with the !token-mod commands in your macro) are only available in games created by Pro subscribers. There's no way to create a macro to adjust token settings without a script. Macros are just a shortcut for typing things into the chat window.
A point for going PRO then it seems.  Thanks for the help and advice.