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
This post has been closed. You can still view previous posts, but you can't post any new replies.

API Sheetworkers don't respond to attribute removel

1486746515

Edited 1486746559
Lucian
Pro
API Scripter
[Urk, apologies for the illiterate title :-( ] If you remove an attribute from the client, by going to the attributes/abilities tab, this generates a change event for the relevant attribute if it has a listener registered. If you do attribute.remove() through the API, no such event is generated. Do we need a .removeWithWorker() ? This is especially problematic for attributes with default values, since removing them changes the value to something concrete, and dependent fields may need to be updated as a result. In the shaped sheet/script we try to remove attributes and fall back to defaults wherever possible, in order to keep the attribute count as low as possible. Having to move back to having explicit values everywhere in order to work around this limitation would be a big step backwards for performance...
1487632004
Gid
Roll20 Team
I've also added this issue to our API tickets too.
1487664342
Lucian
Pro
API Scripter
Hi Kristin, Riley's already on the case and there's a fix on dev: <a href="https://app.roll20.net/forum/permalink/4637640/" rel="nofollow">https://app.roll20.net/forum/permalink/4637640/</a> Cheers, Lucian
1488045805
Lucian
Pro
API Scripter
This is fixed on live now, this thread can be closed.
1488188725
Ziechael
Forum Champion
Sheet Author
API Scripter
Thanks for the update, thread closed