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 for shifting/multi-sided tokens.

Hey all, I'm an animator and I'm hoping to use roll table shifting tokens and animated tokens to make more animated characters. Is there a way to make a macro tell the token to change to a specific side. Further, could a macro be triggered as you do a character sheet attack macro? Lastly, can you put in the macro to loop or not loop the gif in the multi-sided token? Thanks for your help!
1588850372
GiGs
Pro
Sheet Author
API Scripter
These things can be done only if your GM is a Pro subscriber, and installs a script like TokenMod. (Not sure about the Loop - i dont know if the API has access to that, or if its possible.) Macros at the free level cannot make changes to characters, tokens, or anything. They can only roll dice, read values and print to chat.
@gigs Ty for the info, I am now researching API scripts and the best method to do what I am suggesting. 
1588976291
GiGs
Pro
Sheet Author
API Scripter
TokenMod might be able to do this. You need to be a pro user (if you're the GM) to use API scripts.
1589057481

Edited 1589057999
GiGs said: TokenMod might be able to do this. You need to be a pro user (if you're the GM) to use API scripts. Yup, I understand that; I'm working on getting the DM to get a Pro account, he currently has Plus only! One thing I am running into is the animated objects need to be larger than one tile which messes with the orientation of the token when snapping and scaling of the health bar. I know you can move an object with alt to ignore snapping but it still gets a bit annoying, and makes it look like the token is really healthy... lol I tried making a node to hold the stats and grouping the graphic, but grouping acts really weird and does not always seem to work and slides the orientation around. It also seems to disable any token options like adding statuses. Also, there's no way I see to group two objects, one being not clickable by a player. If you group an object that doesn't isn't clickable by a player [generic token], the group moves together as a GM, but as a player the one you can't click bounces back to where it was. Do you know of any adjust orientation, create hitboxes, parenting, or improved grouping API scripts that could solve that issue? I read something about Carry-Token, but it seems like it may be a bit glitchy and laggy from what I was reading. Any experience with it?
1589063177
GiGs
Pro
Sheet Author
API Scripter
I'm not fully understanding the problem, but i know that TokenMod can change every property of a token (except the positioning of the new-ish tokenbars), and there's a couple of grouping scripts that would be worth testing.
GiGs said: I'm not fully understanding the problem, but i know that TokenMod can change every property of a token (except the positioning of the new-ish tokenbars), and there's a couple of grouping scripts that would be worth testing. Hmm I'm trying to think how to better explain it. Basically I need something akin to parenting in animation software. One object acts as a parent and another acts like a child. The child can move on its own and have any property [being on a specific layer or having a different player controlling it] but if the parent moves or changes its properties then the child does the same. This would allow a blank PNG node/controller [parent] to be on the token layer but the graphic [child] to be on the map layer. You can move the node and the graphic [a rolling table token] follows along but is not able to be touched by anyone on the token layer. Does that make more sense? Can any script you know of do that?
1589232733
GiGs
Pro
Sheet Author
API Scripter
There are scripts that do allow you to link tokens to each other in various ways. Bumps creates a shadow copy of a token that you can switch, there are re several tokens for creating marching order groups, and similar. So I dont know if there's one that does exactly what you need, but the technology is there and it could be created.