I have written a script which makes mooks fully functional. Characters for which the checkbox "is_mook" is set will be copied when their token is dropped to the table. The dropped token will be representing the copy of the orginal "mook_master". When a token is deleted which had been linked to a mook - but not a master, therefore a copy - the character will be deleted, along with all attributes and abilities associated with it. This works fine as long as I do it once a time and pretty slowly but it can easily crash the API when I drag multiple tokens to the table at once. I would appreciate any feedback on how to make this script faster and robust against the API. Essentially I do 3 things: 1. use findObjs once to retrieve all characters and test against this set if "character X" exists to find a unique name for the copy. 2. use findObj once to retrieve all attributes of the original character and iterate through this set and create one attribute for each attribute. For attributes in repeating items I extract the id and then use replace to replace the id with a newly generated one with the code posted by aaron here on the forum how to replicate the ID generation. 3. Repeat 2 for abilities. <a href="https://gist.github.com/NoxMortem/c732af87acfdee09" rel="nofollow">https://gist.github.com/NoxMortem/c732af87acfdee09</a>...