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

how do you modify class resources with API?

1593624940
Angelo
API Scripter
I am looking for a way to read/modify a class resource inside an API i am writing and I cannot find any documentation/examples about it, new class resources don't seem to be added to the attributes list. any tips?
1593625249
The Aaron
Roll20 Production Team
API Scripter
They are repeating row attributes, which aren't in that list but are attributes.  Try writing a simple findObjs() for all attributes for a character and logging them out, that should let you see them. on('ready',()=>{     findObjs({ type: 'attribute', characterid: "SOME ID"}) .forEach(a=>log(a)); });