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

ChatSetAttr Confused with Replaced Character Sheet

I replaced a character with one form the vault.  Before I loaded the character from the vault, I renamed the old character to something different.  After loading the character from the vault, ChatSetAttr doesn't work correctly.  It appears to be trying to update the older sheet that had been renamed.  It reports missing resources, which weren't on the original but have been added to the imported one. Even when I delete the older sheet, the problem remains.  As a simple test, I used the ability !setattr  --charid @{Nimrod|character_id} --reset --other_resource ChatSetAttr reports that it is updating with (empty), and nothing changes.  I reset the limit on the other_resource, and flip through the counter a few times, to no avail. I cleared my browser cache a bit, and also switched to a different browser.  I restarted my sandbox a few times, and even tried loading into a different game. I don't believe the character sheet is corrupted.  I've had this issue in the past, and a few days later everything works again.  It appears to be an issue where the original character sheet is cached, server side, and I can't get ChatSetAttr to let go.   Any suggestions? Thanks in advance.
1696782073
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Andrew! Have you verified that you don't have more than one sheet by that name in your game, including checking the in-game archive?
Initially I had a copy of the character in a game that I use for development.  I renamed that character.  I saved the character from an active game to the vault, then exported it to the development game.  At that point, my abilities on the exported sheet wouldn't work.  I deleted the older, renamed sheet, which didn't help.  I then exported the character to a different game, and it didn't work there either.  Neither had any archived items, and the second account never had this character sheet in it.  I made a simple ability, as shown above, which failed.   I suppose the character vault corrupted the sheet. But the interesting thing is not all fail.  The new resources work fine, but the old ones don't.
FYI, if I delete the resource field and recreate it, I can fix the issue.  But I am unable to delete fields like other_resource or hp. I can access those fields directly, by @{Nimrod|other_resource}, and they return the proper information.  But ChatSetAttr doesn't respond correctly.