• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Selectable Ability Increase

DeathSheep

Well-known member
Today's question: I am trying to create a class ability that allows you to select an ability (WIS or CHA) and increase it and its maximum by 4. The selection box shows up, but when an ability is chosen, the increase doesn't take effect. Here is what I have so far:

Code:
  <thing id="cConPR1WithForce" name="One With the Force"  compset="ClSpecial">
    <fieldval field="usrCandid1" value="component.BaseAttr & (IsAttr.aWIS | IsAttr.aCHA)"/>
    <fieldval field="abValue" value="4"/>
    <tag group="abRange" tag="Personal"/>
    <tag group="abDuration" tag="Constant"/>
    <eval phase="PostAttr" priority="10000"><![CDATA[     doneif (tagis[Helper.ShowSpec] = 0)

      doneif (tagis[Helper.Disable] <> 0)
     if (field[usrChosen1].ischosen <> 0) then

        field[usrChosen1].chosen.field[aClassMod].value += field[abValue].value
 field[usrChosen1].chosen.field[aMaxValue].value += field[abValue].value

     endif]]></eval>
    </thing>
 
I moved the Eval Script to Post-Levels and that seems to have solved the issue. Stay tuned for my next stumper!
 
Just a tip, I often find that we have an adjustment that already does stuff like this. It has code you can rip off and throw into whatever ability, item, etc. you're doing. This is one of those cases.
 
Back
Top