Instead of spending the resXP resource with a script on the advancement picks, can you have the trait pick handle it?
It seems to know the total number of its advances based on the tags, so it should be able to calculate the total cost of its current advancements without having to worry about what they are and which order they were added in.
|