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

Wildshape for dummies

1593452602

Edited 1593466038
I am a noob when it comes to api and macros for roll20 but here is my problem. I have a druid in my campaign that just got wildshape and my solution is a rollable token roll table and tokenmod, everything works fine except when he returns to normal shape his token stays in large size. Now when he clicks wildshape (which is a token action in abilities) the query shows 5 alternate shapes his "normal" shape and "character_id width#[[70]]height#[[70]]" if he clicks the last one it returns to normal size. where am I going wrong? here is the macro (thanks to The Aaron for the help this far). !token-mod {{ --set ?{Choose Form|Brown Bear,currentside#1 represents#@{Brown Bear|character_id} width#2u height#2u |Lion,currentside#2 represents#@{Lion|character_id} width#2u height#2u |Elk,currentside#3 represents#@{Elk|character_id} width#2u height#2u |Dire Wolf,currentside#4 represents#@{Dire Wolf|character_id} width#2u height#2u |Giant Spider,currentside#5 represents#@{Giant Spider|character_id} width#2u height#2u |Roric,currentside#6 represents#@{Roric|character_id} width#[[70]] height#[[70]]} bar1_link|hp bar2_link|npc_ac bar3_link|npc_speed name|"Roric (BeastShaped)" showname|yes }}
1593453318
Kraynic
Pro
Sheet Author
My guess is this:  you are currently on a map with the grid scale set to .5 (35px per grid square). All your settings use units except returning to the character which is set to pixels, meaning that it won't adjust to current map grid settings.  Change your 70px to 1 unit, and maybe that will fix your issue.
1593453884
The Aaron
Roll20 Production Team
API Scripter
u is always 70px,  If it were g, it would be based on the grid scale.  He was trying it with the math earlier ([[70*2]] and [[70]]) with the same results.
yeah I am hoping there is a savant that can figure out why it is doing that lol
1593461081
Kraynic
Pro
Sheet Author
Just out of curiosity, have you set this up in a different game (or in a copy) as a test?  I don't play/own 5E content, so I just tried to set up the sheets as you have them labeled, a rollable table token, and used your tokenmod command.  For me, it wouldn't ever change sides, though the size changed reliably (including dropping to the 70px size on the last option).  But then, I couldn't even get the currentside command to work by itself as: !token-mod --set currentside|2   I didn't get any console errors, and restarting the sandbox didn't change that behavior. That command works perfectly fine in another game where I have a player that is using disguise a lot with 12 different set personas for his character.  I even logged into that game to test and make sure I wasn't doing something wrong. Gremlins.  Or maybe Gnomes.  Got to be one of those tricksy "G" things at work.
yeah darn gnomes and gremlins...I only play 5e at the moment and I am thinking the damn druid may have to click twice to revert and be happy with it
1593472638

Edited 1593472664
I don't think the sizes need to be rolls (as in [[70]]). I use: !token-mod {{ --set currentside|1 height|70 width|70 represents|"Westra Stormwind" light_radius|60ft light_dimradius|=-5 bar1_link|hp bar2_link|ac }} which seems to work fine.
thanks kevin but no dice...
1593478584

Edited 1593479018
Great News I found the problem embarrassingly the player slightly changed the character's name and I missed it so it kept throwing it off. for future reference here is the final fixed version.  First make a token in the roll tables named wildshape and put in the creatures the PC wants to use (make sure you have a sheet tied to the creature in your bestiary). you have to have tokenmod api then put the following macro in abilities on the character's sheet.(substituting the characters full name for Roric Amakiir) Roric wills himself to transform! !token-mod {{   --set     ?{Choose Form|Brown Bear,currentside#1 represents#@{Brown Bear|character_id} width#2u height#2u       |Lion,currentside#2 represents#@{Lion|character_id} width#2u height#2u       |Elk,currentside#3 represents#@{Elk|character_id} width#2u height#2u       |Dire Wolf,currentside#4 represents#@{Dire Wolf|character_id} width#2u height#2u       |Giant Spider,currentside#5 represents#@{Giant Spider|character_id} width#2u height#2u |Roric Amakiir,currentside#6 represents#@{Roric Amakiir|character_id} width#[[70]] height#[[70]]}     bar1_link|hp bar2_link|npc_ac     bar3_link|npc_speed     name|"Roric (BeastShaped)"     showname|yes }} That hopefully will work as well for someone else as it does me as the druid wants to add shapes just add to the roll table and create a line for it in the macro.