I've got a race that gets all Cha based skills as class skills, so I grabbed the script from the Circlet of Persuasion and modified it a little changing out the competence bonus for a #makeclassskill[] macro. Looks like this:
And I'm getting this error:
Can't really figure out why it's not working, I've tried it with each and eachpick and get the same result.
Andrew
Code:
~ Iterate through all our skills
var ChaSkill as number
~ Give bonus only to CHA skills
foreach pick in hero from BaseSkill
ChaSkill = 0
~ Check Skill Override
if (eachpick.tagis[SkillOver.aCHA] <> 0) then
ChaSkill = 1
endif
~ If it has a normal linkage to Charisma it also qualifies.
if (eachpick.islinkage[skillattr] <> 0) then
if (eachpick.linkage[skillattr].tagis[thingid.aCHA] <> 0) then
ChaSkill = 1
endif
endif
if (ChaSkill = 1) then
#makeclassskill[each]
endif
nexteach
And I'm getting this error:
Code:
Hero Lab was forced to stop compilation after the following errors were detected:
Syntax error in 'eval' script for Thing 'raRPMindbe' (Eval Script '#1') on line 21
-> Non-existent thing 'each' used by script
Can't really figure out why it's not working, I've tried it with each and eachpick and get the same result.
Andrew