View Single Post
DeathSheep
Member
 
Join Date: Jun 2018
Posts: 83

Old November 4th, 2021, 08:11 AM
I am working on a class ability that allows you to learn one skill and one tool, or two tools. Everything *looks* right (I borrowed the code for the Skilled Feat, and grabbed the Procedures user file from the community pack). When I select the ability though, the additional proficiencies don't get added.

Here is what I have set up:
Code:
  <thing id="cOptPRLearnExp" name="Learner's Exploit" description="You gain proficiency in a skill and a tool, or two tools. You can select this exploit multiple times, each time choosing a new skill and a tool, or two new tools." compset="CustomSpec" uniqueness="unique">
    <fieldval field="abValue" value="1"/>
    <fieldval field="abValue2" value="1"/>
    <tag group="Helper" tag="Secondary"/>
    <tag group="SpecSource" tag="cHelpOpt"/>
    <tag group="ChooseSrc1" tag="Thing"/>
    <tag group="ChooseSrc2" tag="Thing"/>
    <tag group="abCategory" tag="OptExploits"/>
    <eval phase="PostLevel" priority="10000" index="2"><![CDATA[      ~ If we're disabled, do nothing &
      doneif (tagis[Helper.Disable] = 1)

      var NumOfProf as number
      ~ Increase or decrease the number of proficiencies
      NumOfProf = field[abValue].value
      call 5CAddProf]]></eval>
    <eval phase="PostLevel" priority="10000" index="3"><![CDATA[      ~ If we're disabled, do nothing &
      doneif (tagis[Helper.Disable] = 1)

      var NumOfTool as number
      ~ Increase or decrease the number of proficiencies
      NumOfTool = field[abValue2].value
      call 5CAddProf]]></eval>
    </thing>
DeathSheep is offline   #1 Reply With Quote