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 .
×
May your rolls be chill this holiday season!
Create a free account

HELP change toke side and size!

So I'm trying to create a macro for werewolf transformation that flips the token and resizes it in one click using token mod. This is what I came up with: !token-mod --order|tofront {{   --set     scale|?{What Size?|Medium,1|Large,2|Huge,3}g }}
1765973724
Andrew R.
Pro
Sheet Author
Move the  --order clause inside the  {{ }} to start with.
Andrew R. said: Move the  --order clause inside the  {{ }} to start with. Right, thank you. I'll try it. !token-mod {{ --order|tofront    --set     scale|?{What Size?|Medium,1|Large,2|Huge,3}g }}
1765976361

Edited 1765990406
Probably something like this? !token-mod {{ --set currentside|+ --ids @{selected|token_id} --set scale|?{What Size?|Medium,1|Large,2|Huge,3}g }}
1765994743
timmaugh
Forum Champion
API Scripter
Unless this is going to get a lot more complicated, you don't need the "--ids" argument if you're just going to affect the selected token anyway (that's the default behavior). Also, you can get by with 1 "--set" argument for all settings you want to change. So you can do any of: !token-mod {{   --set currentside|+  scale|?{What Size?|Medium,1|Large,2|Huge,3}g }} ...or... !token-mod {{   --set     currentside|+      scale|?{What Size?|Medium,1|Large,2|Huge,3}g }} ...or just... !token-mod  --set currentside|+  scale|?{What Size?|Medium,1|Large,2|Huge,3}g Any of those should work just fine. ...but if you keep the camera rolling... If you add the Metascript Toolbox to this command, you could have the scale automatically set based on the side of the token that would be visible. For instance, if you know that the first side is for a "huge" creature size, the second side is for a "large" creature size, and the third side is for that "extra, extra medium" size, you could have that reflected in the syntax automatically and skip having to interact with the query at all. Note, this would mean that the command would become much more single-token-specific... since other tokens might have other progressions. But, if you want an example of the command using the Toolbox, post back with the connection of your scale values to the token sides.
appreciate you very much! already simplified it as you suggested. !token-mod --set currentside|+ scale|?{What Size?|Medium,1|Large,2|Huge,3}g and this scrip is It's more than enough. thank you! timmaugh said: Unless this is going to get a lot more complicated, you don't need the "--ids" argument if you're just going to affect the selected token anyway (that's the default behavior). Also, you can get by with 1 "--set" argument for all settings you want to change. So you can do any of: !token-mod {{   --set currentside|+  scale|?{What Size?|Medium,1|Large,2|Huge,3}g }} ...or... !token-mod {{   --set     currentside|+      scale|?{What Size?|Medium,1|Large,2|Huge,3}g }} ...or just... !token-mod  --set currentside|+  scale|?{What Size?|Medium,1|Large,2|Huge,3}g Any of those should work just fine. ...but if you keep the camera rolling... If you add the Metascript Toolbox to this command, you could have the scale automatically set based on the side of the token that would be visible. For instance, if you know that the first side is for a "huge" creature size, the second side is for a "large" creature size, and the third side is for that "extra, extra medium" size, you could have that reflected in the syntax automatically and skip having to interact with the query at all. Note, this would mean that the command would become much more single-token-specific... since other tokens might have other progressions. But, if you want an example of the command using the Toolbox, post back with the connection of your scale values to the token sides.