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

Trouble with Token Mod and --order

Hello, I'm trying to use Token Mod to rearrange the order of tokens on the map layer to create an experience for my players that simulates them going into a store, rather than only describing it, or using a separate page for the store map.  I set up a dedicated "city macro controller" character sheet with the intention of putting these kinds of "administrative macros for a specific city" in the abilities and have that shown as a token action, so I can control how much screen clutter I have at one time.  I'm trying to make it so the token mod command works based on the token ID, since selecting the token is not very reasonable for this use-case.  I believe I've correctly identified the token's ID by selecting the map image (of the shop) and entering "@{selected|token_ID}" into the chat.  The token id listed below is the result, which has remained consistent when trying to ID the token over several separate sessions.  The command I'm trying to use is:      !token-mod --order|tofront --ids -NC8EtLtcDZe0SYcdHUR However, when I use this command, I get no response from the mod that I can see (nothing in chat, nothing in the console, and no re-ordering of the token to the front).  I'm not sure what I'm doing wrong.  The help documentation isn't very clear, and rather than continue to bang my head against it, I thought I'd reach out and see if anyone is able to help me get back on the right track. Most sincere thanks, James
1665317907

Edited 1665318022
The Aaron
Roll20 Production Team
API Scripter
Hmm. That ID looks too long. You can get a token ID by selecting it and running in the chat: /w gm @{selected|token_id} Here are a few other thoughts: you should add --ignore-selected to your command, that way if they run the macro but happen to have other tokens selected, it won't make changes to them.  You can use a character ID instead, which can be useful as you can just use something like @{Some Character|character_id} to affect all tokens that represent that character. Likely you'd want to add --current-page or --active-pages to the command to restrict to tokens on pages where people are.  Player controlled tokens behave weirdly with Z order, they always appear on top of everything else to the people that control them. Just something to be aware of.  Hope that helps!
1665321197

Edited 1665321632
Richard @ Damery
Pro
API Scripter
Sorry, should have posted this to the TokenMod release thread... reposting it there
1665331399
The Aaron
Roll20 Production Team
API Scripter
Here is fine, I'd tell you the same thing there. =D
1665334973
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hm. That's a very interesting idea. I have a couple of city maps that have interiors that are used upon occasion. I've been sending those location maps to the DL layer, but it occurs to me that they could all be on rollable token, with their layer, position and rotation (if necessary) controlled by Token mod. It would be much more space efficient, since the rendering image could completely ignore the unused maps. So long as DL is not involved, this is a very intriguing method. BTW, Richard @ Damery, if you run a city-based campaign, you might want to look into Reporter and Supernotes. They can really manage a complicated city. There is a video demo here , with the city management stuff starting at about 5:25. There are links in the video description that will lead you to more detailed info, including pre-built macros.
Thank you for your time to try to help me, The Aaron.  I truly appreciate all you do for the community. The Aaron said: Hmm. That ID looks too long. Unfortunately, I have to accept that the ID I shared is the token ID.  Every mechanism to expose the ID turns out the same ID, including the one you suggested, and the right-click->Advanced->View Token ID:                             I went so far as to create a new page, and new map and shop tokens to attempt to see if that was the issue.  The new shop token I created has a token_ID of -NDz4S6oM8LSar3rlCMI . Referencing this new ID in a new command, or the command I previously set up does not cause any change in the behavior. The Aaron said: you should add --ignore-selected to your command, that way if they run the macro but happen to have other tokens selected, it won't make changes to them. I have added this to the end of my command, but it did not change any of the (lack of) behavior I'm experiencing. The Aaron said: You can use a character ID instead, which can be useful as you can just use something like @{Some Character|character_id} to affect all tokens that represent that character. Likely you'd want to add --current-page or --active-pages to the command to restrict to tokens on pages where people are.  Considering this is a shop/ map item, I didn't set up a character sheet or anything like that.  I tried to give it a name (ShopToken) and then tried to pull the character ID based on the syntax you mentioned but I get the message "no character was found for 'selected'" ( @{ShopToken|character_ID} and @{selected|character_ID} both produce this message) .  I definitely have only the one shop map selected.  Would I need to create a character sheet and link it to the token in order to get a character ID associated? The Aaron said: Player controlled tokens behave weirdly with Z order, they always appear on top of everything else to the people that control them. Just something to be aware of. When I examine the token settings (by double clicking on the token) the "Controlled by" field is blank.  I'm not sure how else to attempt to ensure that this point you mention is not affecting me though. I'm also interpreting your overall comments to mean that I'm (basically) using the token mod command correctly.  Is my assumption correct?  Because if I'm using the command correctly, then I'm extra lost as to how to attempt to resolve this.  I definitely wouldn't be able to pull off my idea without Token Mod, so I'm truly hoping you (or other users) have some additional thoughts, or things I might be able to try to resolve. Thanks again for all your time and help, I truly appreciate it so much!
1665360261
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
James S. said: Thank you for your time to try to help me, The Aaron.  I truly appreciate all you do for the community. The Aaron said: Hmm. That ID looks too long. Unfortunately, I have to accept that the ID I shared is the token ID.  Every mechanism to expose the ID turns out the same ID, including the one you suggested, and the right-click->Advanced->View Token ID:                             I went so far as to create a new page, and new map and shop tokens to attempt to see if that was the issue.  The new shop token I created has a token_ID of -NDz4S6oM8LSar3rlCMI . Referencing this new ID in a new command, or the command I previously set up does not cause any change in the behavior. Every token ID on this page is 20 characters long (including the dash).