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 Macro using TokenMod

April 22 (7 years ago)

Edited April 22 (7 years ago)
Hello all,

I am a first time poster and I wanted to post a wildshape macro fro druids based on combined macros I found on the forums for your use:

&{template:npcaction} {{name=@{selected|token_name} }} {{rname=Shapeshifter}} {{description=[Dire Wolf](!token-mod --set currentside|1 width|140 height|140 represents|@{Druid Dire Wolf|character_id} bar1_link|hp bar2_link|npc_ac bar3_link|npc_speed name|'Borrum Dire Wolf' showname|yes light_radius| light_dimradius| light_angle|360 --off light_otherplayers @{selected|token_id})
[Half Elf](!token-mod --set currentside|6 width|70 height|70 represents|@{Borrum Smallwood|character_id} bar1_link|hp bar2_link|ac bar3_link|speed name|Borrum showname|yes light_radius|60 light_dimradius|-5 light_angle|360 --off light_otherplayers @{selected|token_id}) }}

In order for this to work, you need to have a rollable table of tokens and character sheets for each creature.  Then roll on the table on the map.  Remove the "is drawing" from the token.  Select the druid token. The macro, when run, will send a box of choices in the chat area.  Once you choose a form, it will change the token to the requested form and bring up the information from the character sheet accordingly.





To add additional forms, just follow the above patter for each creature (my original macro has more forms than the sample I gave above).  Then you can take the token of your druid form and save it as your default token.

April 22 (7 years ago)
The Aaron
Pro
API Scripter
Nice!
Hey, I've been getting into using more advanced API's macros etc. lately and was just trying to figure this out myself with token mod. I already have a rollable table of tokens, but am a bit unfamiliar yet with token mod beyond basic functions like a quick token vision changes. If it isn't that much trouble could you break this down a bit? No worries if its to much a bother, I will sort through it eventually but I'm a bit new at this and its a bit bumpy.
April 23 (7 years ago)
Devin, I will do so tomorrow. Aaron, thanks for creating TokenMod in the first place.
April 23 (7 years ago)
Hello Devin,

I will break down one of the lines for you.

[Dire Wolf](!token-mod --set currentside|1 width|140 height|140 represents|@{Druid Dire Wolf|character_id} bar1_link|hp bar2_link|npc_ac bar3_link|npc_speed name|'Borrum Dire Wolf' showname|yes light_radius| light_dimradius| light_angle|360 --off light_otherplayers @{selected|token_id})

So with this line, [Dire Wolf] will be the name that is used in my second screen shot (the output template).  Then the rest uses TokenMod to set the token. 

  • The "currentside|1" sets the image to what the first image in the rollable table is. 
  • "Width|140" and "height|140" sets the size of the token.  70 would be one square so multiples of that will increase the size according to the size table in the DMG.  Since a Dire Wolf is large that is 2*70 per side.
  • "Represents|@{Druid Dire Wolf|character_id} pulls in the Druid Dire Wolf character NPC that I created to be controlled by the Druid.
  • Because I created the forms as NPCs (other than the Half Elf form), I use "bar1_link|hp bar2_link|npc_ac bar3_link|npc_speed" to change the bar values to the what exists on the NPC sheet.  If it is a PC sheet, then use ""bar1_link|hp bar2_link|ac bar3_link|speed."
  • Next I want to set the name of the token.  I use "name|'Borrum Dire Wolf' showname|yes" to accomplish that.  Borrum is the name of the druid.  Make sure to use single quotes if the name has spaces involved.
  • Since I use dynamic lighting, I then set the token's sight with "light_radius| light_dimradius| light_angle|360 --off light_otherplayers"
Hopefully that helps some, Devin. 
April 23 (7 years ago)

Edited April 23 (7 years ago)
Thanks a million for going through the trouble Dan. This helped a bunch I really appreciate it!