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

Building and updating a Wildshape Macro

I'm intending to try to build this WIldshape Macro; <a href="https://youtu.be/uXN9J1jNp3I?si=jh_N3OpUUvY6IE2c" rel="nofollow">https://youtu.be/uXN9J1jNp3I?si=jh_N3OpUUvY6IE2c</a> What I have questions about is the following; Adding new shapes. &nbsp; 1. This script is effected by the order in which a rollable token (RT) lists its different sides. Can you adjust/add to a RT's token order, or do you have to make a new one if you need to change it? &nbsp; For example:&nbsp; The RT order is | Axe Beak | Black Bear | Boar | &nbsp; &nbsp; If I wanted to add a new form - say - Badger, and wanted to keep it in alphabetical order, it would list between Axe Beak and Black Bear. Is this possible, if so how would it be done? &nbsp; 2. There is a fair amount of coding to be done for this effect, including updating the list when new forms are added. Is there an easier method, or am i going about this the long way by using this approach.
Erik said: I'm intending to try to build this WIldshape Macro; <a href="https://youtu.be/uXN9J1jNp3I?si=jh_N3OpUUvY6IE2c" rel="nofollow">https://youtu.be/uXN9J1jNp3I?si=jh_N3OpUUvY6IE2c</a> What I have questions about is the following; Adding new shapes. &nbsp; 1. This script is effected by the order in which a rollable token (RT) lists its different sides. Can you adjust/add to a RT's token order, or do you have to make a new one if you need to change it? &nbsp; For example:&nbsp; The RT order is | Axe Beak | Black Bear | Boar | &nbsp; &nbsp; If I wanted to add a new form - say - Badger, and wanted to keep it in alphabetical order, it would list between Axe Beak and Black Bear. Is this possible, if so how would it be done? You can use TokenMod to add an image in a specific 'place' in the multisided token, or to reorder the images of a multisided token. From the help doc: Multi-Sided Token Options Appending (+) You can append additional images to the list of sides by prefacing the source of an image with +: !token-mod --set imgsrc|+<a href="https://s3.amazonaws.com/files.d20.io/images/4095816/086YSl3v0Kz3SlDAu245Vg/max.png?1400535580" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/4095816/086YSl3v0Kz3SlDAu245Vg/max.png?1400535580</a> !token-mod --set imgsrc|+@{target|token_id} --ids @{selected|token_id} When appending a url, you can use a followed by a number to specify where to place the new image. Indicies start at 1. !token-mod --set imgsrc|+<a href="https://s3.amazonaws.com/files.d20.io/images/4095816/086YSl3v0Kz3SlDAu245Vg/max.png?1400535580:@1" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/4095816/086YSl3v0Kz3SlDAu245Vg/max.png?1400535580:@1</a> Reordering (/) You can use a / followed by a pair of numbers separated by @ to move an image on the token from one postion to another. Indicies start at 1. !token-mod --set imgsrc|/3@1 --ids @{selected|token_id} You can string these together with commas. Note that operationes are performed in order and may displace prior moved images. !token-mod --set imgsrc|/3@1,4@2,5@3,9@4 --ids @{selected|token_id} So if you were adding a new image and you want it in the second slot, then you would put the new image on the VTT, select your current multisided token, and use this: !token-mod --set imgsrc|+@{target|token_id} --ids @{selected|token_id}:@2 If you already added the new image and want to change it's position to the 2nd picture, then you would click on the token and use this (assuming the new image is the 4th image on the multisided token): !token-mod --set imgsrc|/4@2 --ids @{selected|token_id} &nbsp; 2. There is a fair amount of coding to be done for this effect, including updating the list when new forms are added. Is there an easier method, or am i going about this the long way by using this approach. There might be a way to improve your workflow, depending on what you are doing. Here's an example of how I add images to a 'Scenes' multisided token that might be a good reference for what you are doing.