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

Powercard calling multi token_mod

hello, im trying to make a powercard that move token from gmlayer to object layer.  But only the last token in the code move.  Why ? Player can ids is ofcourse ON -------------------------------------------------- !power {{ --api_token-mod| _ids -MiLYvV7MAkO9MCbczF_   _ignore-selected _set layer|objects --api_token-mod| _ids -MiLYwbPwZopoIDH_JrK _ignore-selected _set layer|objects --api_token-mod| _ids -MiLYxf917f6lQ0sPqkB _ignore-selected _set layer|objects }}
1630345474

Edited 1630354564
timmaugh
Pro
API Scripter
It's because your token ids in the first 2 examples have (unfortunately) an underscore in them... so powercards is looking to replace that with double hyphens (the way it does for the ignore-selected and set parameters. There is no way around that short of deleting the tokens, then recreating them, hoping (and making sure) the new one doesn't have an underscore.
i tried this : !power {{ --api_token-mod| _ids -MiLYxf917f6lQ0sPqkB _ignore-selected _set layer|objects --api_token-mod| _ids -MiLYz-k1ZEG39inZlEb _ignore-selected _set layer|objects }} same result. the underscore is not the problem
1630350511
Kraynic
Pro
Sheet Author
Chris S. said: i tried this : !power {{ --api_token-mod| _ids -MiLYxf917f6lQ0sPqkB _ignore-selected _set layer|objects --api_token-mod| _ids -MiLYz-k1ZEG39inZlEb _ignore-selected _set layer|objects }} same result. the underscore is not the problem Neither one of those have the underscore as part of the id, which is what Tim is talking about. From your top post: --api_token-mod| _ids -MiLYvV7MAkO9MCbczF_   _ignore-selected _set layer|objects --api_token-mod| _ids -MiLYwbPwZopoIDH_JrK _ignore-selected _set layer|objects The first id ends with an underscore, while the second has an underscore near the end.  If those are getting converted to double hyphens, then the token id is no longer correct, since the ids would look like this after the conversion: -MiLYvV7MAkO9MCbczF-- -MiLYwbPwZopoIDH--JrK