Member
Join Date: Feb 2011
Posts: 46
|
I am working on creating a fighter archetype that has both the Weapon Training and Rogue Talent abilities. I can't seem to get this to work. When adding Rogue Talents it just adds them to the Weapon Training Ability.
How can I get both of the primary abilities? |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Check the Cleric's Rage Domain from the APG - that has a script that modifies its class to make the secondary abilities table of the cleric class allow the user to select from the primary barbarian abilities.
Note that a cleric domain gets to its class with: Code:
linkage[table]. Code:
linkage[varies]. |
#2 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Ok, ther error I get with this is
Linkage pick 'table' not located for current context Using the scripts from the rage domain in a class. |
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Did you make the swap in the code that I described in my previous post?
|
#4 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
yep, I tried both, but it will not work on a class as a script
|
#5 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Please define "tried both" (as in post the eval script you tried)
|
#6 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Thank you again for the help. It works as a custom ability, but I want to attach it to the class so the cleric domains show up in the tertiary along with it other abilities.
Post-levels 5000 ~modify our linked class to add cleric domains ~we'll use the tertiary abilities slot for these linkage[table].field[cCustTeTot].arrayvalue[11] += 1 linkage[table].field[cCustTeTot].arrayvalue[15] += 2 linkage[table].field[cSpec3rdSi].text = "Illumination" Final Phase 2147483647 ~we'll overwrite the tertiary abilities' expression, since we need ~to make them use primary cleric abilities linkage[table].field[cCstS3Expr].text = "(SpecSource.cHelpClr + SpecSource.cHelpMdH+ SpecSource.cHelpMAH) & !Helper.Secondary & !Helper.Tertiary" |
#7 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Now, in those scripts, can you see how it's trying to transition to the thing that owns the table that added it?
That's how custom abilities and cleric domains get to their class. How would you change that so that it's using the method that archetypes use to transition to the class they modify? |
#8 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
IDK, is there an archetype I can look at that moves the domains?
|
#9 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
In post #2, I gave two pieces of code - one that's used by custom abilities, the other that's used by archetypes.
Do you see the one for custom abilities in those scripts? (I see it used 4 times). |
#10 |
|
|