I'm trying to create multi-creature sheets, like for the Bag of Tricks.  I need to modify the number of traits on the sheet depending on the selection.  The command delattr works great, but when I use setattr when no attribute exists, I get an error.  Works to overwrite one, but it won't create one.  An example of my script is  !setattr --silent --charid @{Tan Bag of Tricks|character_id} --repeating_npctrait_$2_name|Pack Tactics --repeating_npctrait_$2_description|'The jackal has advantage on an attack roll against a creature if at least one of the jackal's allies is within 5 ft. of the creature and the ally isn't incapacitated.'