Thanks Aaron!
I finally had a chance to come back to look at this tonight...
I had the class special applying the attribute switch already, but that was a good find on how to accomplish the switch for all skills...
This class special requires the selection of 2 skills from the list filtered by INT or CHA-based skills to then apply the WIS mod to them.
I figured out the custom expression to filter the selection list for usrCandid1 and usrCandid2 fields as:
Code:
component.BaseSkill & (SkillAbil.aCHA | SkillAbil.aINT)
Then my scripts for doing the switch on the selected skills is:
Code:
Pre-levels 10000
~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)
doneif (field[usrChosen1].ischosen = 0)
perform field[usrChosen1].chosen.assign[SkillOver.aWIS]
And then a second script using usrChosen2
The fun part was scavenging an Eval Rule to use...
Code:
Validation Phase 10000
Must Choose a Charisma or Intelligence skill
validif (field[usrChosen1].ischosen = 0)
validif (field[usrChosen1].chosen.tagis[SkillOver.aCHA] <> 0)
validif (field[usrChosen1].chosen.tagis[SkillOver.aINT] <> 0)
~ If it has a normal linkage to Charisma or Intelligence it also qualifies.
if (field[usrChosen1].chosen.islinkage[skillattr] <> 0) then
validif (field[usrChosen1].chosen.linkage[skillattr].tagis[thingid.aCHA] <> 0)
validif (field[usrChosen1].chosen.linkage[skillattr].tagis[thingid.aINT] <> 0)
endif
And again a second script using usrChosen2.
So far it seems to be working...