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 .
×

Character id issue

Hi all! I am new here and I am experimenting with macros, but I ran throught something I cannot understand... @{selected|character_id} return "-Mb8-Tjrt1NsidS9h--c" (which is also the id visible in the sheet pop up) BUT... @{-Mb8-Tjrt1NsidS9h--c|character_name} return " No character was found for -Mb8-Tjrt1NsidS9h--c " The character is mine, in an active campaign, if this helps. What's going on?! thank you for your time!
1623255199

Edited 1623255300
Andreas J.
Forum Champion
Sheet Author
Translator
mayby try remove the first " - "? @{Mb8-Tjrt1NsidS9h--c |character_name} I haven't looked at charid or tokenid much, so not even sure how you'd supposed to reference them, or if you can do that.
1623260491

Edited 1623260532
The Aaron
Roll20 Production Team
API Scripter
You can't use character ids to refer to Characters as part of an @{ } reference.  It must be the Character's name.