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

Setting character_name via Sheet Worker

1462561766
James W.
Sheet Author
API Scripter
So, if a character sheet has a field for an attribute named character_name, that ties to the character's name; it'll automatically fill in with the character's name, and changing it will change the character's name, in turn. Meanwhile, if you try to set the character_name attribute via a Sheet Worker script, it actually creates an attribute titled character_name, and sets that, instead of renaming the character.  In fact, to my knowledge there is no way to rename the character via Sheet Workers, which is problematic for any character sheet that wants to include stat block parsing. So, yeah... can we fix this so that setting character_name via a Sheet Worker changes the character name, just like it does on the HTML side?
1462826806
Phil B.
Forum Champion
Sheet Author
Hey James, thanks for pointing this out! I've tested and confirmed that this is happening, thanks for the clear reproduction steps btw. I've logged it in our bug list and will fix it when I get a chance.