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

Macro to make a shape shifter using the !Spawn api by David M.

1614978310

Edited 1615002955
A huge thanks to  David M.  for making this possible. To start I made their default character token a roll table token with the different sides/items icons being the different token forms, then I gave each form an ability that reads like this- !Spawn {{ --name|Nix --side|1 --order|toFront --mook|false --bar1|Era --expand|20,50 --resizeSource|0,0 }} so side note, for my players the hp link is on bar3 and bar1 is kind of a misc. so I have it load in the name associated with each form for reference with the --name section being the actual character name to link the sheet per the commands on the original  !Spawn page If you're wanting even more lol, here again is the menu that I created to pop up in chat by inserting it in a separate character ability for quick access to change the form, a little cleaner than in the previous  thread- /w gm &{template:default} {{title=Nix's Forms}} {{Choose From= **Nix's Forms** [Nix](~Change-Form-3) | [Era](~Change-Form-1) | [Neserie](~Change-Form-2) }} keep in mind the Change-Form-3 is the name of my character's ability that I put the !Spawn command in so yours may vary, Change-Form-# isn't some universal command, and the text put inside the [] will be how the button on the menu appears, and within the ()  if you are calling a character ability you must put ~ before the name of the ability I know I'm over explaining a lot to some of you but I'm hoping to make things as seamless as possible for anyone that is a beginner such as myself and would like an easy template Using this you can add forms at anytime, you just have to be sure to update the character's default token to one with the new forms included (don't forget to reapply any bar links or dynamic lighting effects before saving the new selected token as default) and add a new ability to change to that form and potentially a new section in your menu following the same concept as above
1614986404
David M.
Pro
API Scripter
Cool, glad you got it working, Brandon! Note for others, this requires v0.14 or later, which adds the commands for optional animated resizing/deletion of the selected token (shrinks until size 0, then deletes).  Note: looks like above Brandon linked to the closed Spawn thread, which has an incomplete (outdated) command list. Here is the current thread with updated documentation. v0.14-specific examples can be found here . 
1614995325

Edited 1615002977
David M. said: Cool, glad you got it working, Brandon! Note for others, this requires v0.14 or later, which adds the commands for optional animated resizing/deletion of the selected token (shrinks until size 0, then deletes).  Note: looks like above Brandon linked to the closed Spawn thread, which has an incomplete (outdated) command list. Here is the current thread with updated documentation. v0.14-specific examples can be found here .  Good catch, I didn’t think to check the version when I googled the api call for a quick reference. I have corrected this now.