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

[Bug] Tokens linked to archived characters break when edited.

A little background, for my game I import every monster in the MM to the game, and then archive them so I dont have to deal with a 300+ long list journal. When I want to add a monster, I unarchive, add the token, re archive it. Up until now it has worked great. Last night, when I would select a token of one of my monsters, after I would run a script that accessed the monsters attributes, the next time I selected them, it would say the attributes did not exist, and the shift-double click would not bring up the character in the journal. I dont know what has caused this, but I would prefer it greatly the previous way. Having to have all the monsters in the journal show would be a very big pain.
So you're trying to edit the attributes of Characters which are archived? I'm not sure that's something that we've ever intended to support. Archived means "not in use", not just "hidden." The system is set up to assume that an archived object (a page, character, etc.) isn't going to be edited until it's been un-archived. In fact, one of the whole points behind archiving is so we don't have to fetch data from the server for things you aren't actively using. So it sounds like you're signaling to the game "I don't want to use this right now, don't fetch the data for it", but then you are indeed trying to use it. Note that none of that applies to the API sandbox environment, it always has all the objects available to it and ignores archiving. But in-game, if something is archived, the client probably isn't fetching the data for it.
1403713886
The Aaron
Roll20 Production Team
API Scripter
Note: Character, Handout, and Page objects all have a property `archived` which an be accessed from the API.
Not edit the attributes, just get fetch the data. Each token has its own hp value (stored in bar 1 of the token) but uses the characters attributes for attack rolls, saves, etc. Its been working great for weeks. Only until this week have I had a problem.