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

Token-mod help

Did something change recently because this script was working and now I get a "No character was found for selected" error now? !token-mod {{ --off showname showplayers_bar3 --on showplayers_name --set bar1_link|speed bar2_value|@{selected|ac} bar3_link|hp bar3_reset| layer|objects }} I would appreciate any help! Thanks!
1671011350
GiGs
Pro
Sheet Author
API Scripter
You need to assign a character for tokenMid to work with. I dont see anywhere in that for selecting a character. It's a while since i've used tokenmod so i don't remember the syntax, but you'll want to check how to assign to a character. Also, the specific error you are getting might be because you are trying to run it without a character selected, which you need for this line: bar2_value|@{selected|ac}
If you have a token selected, make sure that the token is linked to a character. TokenMod defaults to working on any selected token, but if you are using a reference to an attribute then the token has to be linked.