Alright, here we go... I've searched on this and found a few threads that cover how this should work which has gotten me to this point.
I am trying to add Cleric Domains as a secondary ability to an Archetype of Sorcerer. I understand Cleric Domains are a primary ability of Clerics and as such, I can simply add Cleric under "Allow Additional Class Abilities..." as part of the archetypes primary abilities but that just adds them to the "Bloodlines" allowed. However they function normally otherwise. But this is not what I am after.
My searches revealed an Eval Script that should work but while I am getting no errors from it and it is adding a secondary ability with the appropriate name it is not functioning as advertised. Within the portfolio, I can see "Add more Cleric Domains (1 left)!" Clicking on that pops up a dialog box saying "Nothing to choose from!"
I am stuck, I've tried several variations of my scripts but nothing I have done is working and I now must ask for some help.
Thank you in advance. My code is below, these scripts are being applied directly to the archetype I'm building.
Post-levels; 5000 This sets the array where the abilities come into play and the name... Seems to be working properly.
Final Phase; 9999999 I have tried this with a bunch of different "Priorities" with no change.
I am trying to add Cleric Domains as a secondary ability to an Archetype of Sorcerer. I understand Cleric Domains are a primary ability of Clerics and as such, I can simply add Cleric under "Allow Additional Class Abilities..." as part of the archetypes primary abilities but that just adds them to the "Bloodlines" allowed. However they function normally otherwise. But this is not what I am after.
My searches revealed an Eval Script that should work but while I am getting no errors from it and it is adding a secondary ability with the appropriate name it is not functioning as advertised. Within the portfolio, I can see "Add more Cleric Domains (1 left)!" Clicking on that pops up a dialog box saying "Nothing to choose from!"
I am stuck, I've tried several variations of my scripts but nothing I have done is working and I now must ask for some help.
Thank you in advance. My code is below, these scripts are being applied directly to the archetype I'm building.
Post-levels; 5000 This sets the array where the abilities come into play and the name... Seems to be working properly.
Code:
~modify our linked class abilities to add cleric domains
~we'll use the secondary abilities slot for these
linkage[varies].field[cCustScTot].arrayvalue[1] += 1
linkage[varies].field[cCustScTot].arrayvalue[8] += 2
linkage[varies].field[cCustScTot].arrayvalue[16] += 3
linkage[varies].field[cSpec2ndSi].text = "Cleric Domain"
Final Phase; 9999999 I have tried this with a bunch of different "Priorities" with no change.
Code:
~we'll overwrite the secondary abilities' expression since we need to make them use primary Cleric abilities
linkage[varies].field[cCstSpExpr].text = "(SpecSouce.cHelpClr) & !Helper.Primary & !Helper.Secondary"