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

Trying to set up a Macro that will change a tokens represented character with the use of TokenMod

So Im trying to set up a Macro that will change a tokens represented character with the use of TokenMod but when i put in the characters name it says  No character was found for ''Findulir Oredigger'' Im putting in !token-mod --set represents|@{'Findulir Oredigger'|-3629370105_8394275} the end goal is to have a query so that way the player can change the tokens represented character sheet when they need to when they shape shift i was going to even see about making it change the side of the token but that neither here or there Im using pathfinder by 20 character sheet and i belive token mod has worked for that before but i could be wrong im still fairly new to all this any help would be amazing      
I found that is is in fact changing the character but its still popping out that error
Remove the single quotes around the name -  @{Findulir Oredigger|-3629370105_8394275} should point to the right character without errors.
so I removed the single quotes and it popped out a different error  No attribute was found for @{Findulir Oredigger|-3629370105_8394275}
I'll have to be honest, I'm not familiar with tokenmod or subscription features in general - so I'm not sure what that attribute call is trying to refer to. But, if the command still does what you want it to do, you may be able to get rid of the error message by appending the line with &{noerror}. EDIT: This is just a guess, but try replacing the  @{Findulir Oredigger|-3629370105_8394275} with  @{Findulir Oredigger| character_id}. If Tokenmod wants the character sheet ID, that should do the trick.  Probably not, looking at it again.
1724074908
timmaugh
Forum Champion
API Scripter
Hey, Daina... TokenMod wants a character ID for that property. With this construction: @{Findulir Oredigger|-3629370105_8394275} ...you are looking for the attribute named " -3629370105_8394275" located on the Findulir Oredigger sheet. I'm doubting there is such an attribute on that sheet BUT, if there was such an attribute AND it was filled with a character ID, your command would work. =D I think what you're trying to do is set the "represents" property of the currently selected token to represent the character Findulir Oredigger... is that correct? If so, you should just have to reference the character ID of Findulir (and have the correct token selected). That would look like: !token-mod --set represents|@{Findulir Oredigger|character_id} And, no, for attribute retrieval constructions (like just above) you don't need quotation marks around character names even if they have a space in the name. Give that a try and let us know. Or, if I have misunderstood what you need, tell us what you are trying to do and we'll get it sorted.
that worked thank you i thought i was following what a video i saw said and what the help info of tokenmod said but you guys are right and it is now fixed thank you sooooo Much