Mathias, I'm trying to implement this code. I had to guess at the sortsets (included below). I also have a SpecSource script to copy source from parents, so duplicate specials from different classes have different SpecSource values.
The xTotal, xAllLev, and xMaxLev are not right. I suspect it's from the SortSets and the missing Calculation scripts. xIndex is right (starts at 1 on first copy and goes up.) But xCount isn't right either.
Are there examples of Helper.MultiCopy in pathfinder?
Code:
My SortSets
id="ClassSpec"
<sortkey isfield="no" id="ClSpecWhen" isascend="yes"/>
id="ClSpecSrch"
<sortkey isfield="no" id="SpecSource" isascend="yes"/>
<sortkey isfield="no" id="ClSpecWhen" isascend="yes"/>
Note: I've kept a lot of "Pathfinder" ism's like ClSpecWhen due to being easier to remember a familiar item.