Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD

Notices

Reply
 
Thread Tools Display Modes
DeathSheep
Member
 
Join Date: Jun 2018
Posts: 83

Old November 2nd, 2021, 08:17 AM
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>
DeathSheep is offline   #1 Reply With Quote
DeathSheep
Member
 
Join Date: Jun 2018
Posts: 83

Old November 2nd, 2021, 08:46 AM
I moved the Eval Script to Post-Levels and that seems to have solved the issue. Stay tuned for my next stumper!
DeathSheep is offline   #2 Reply With Quote
spannclann
Member
 
Join Date: Aug 2018
Location: Texas
Posts: 87

Old November 3rd, 2021, 12:24 PM
Seriously, if I had a nickle for every time that happened to me.....
spannclann is offline   #3 Reply With Quote
Fenris447
Senior Member
 
Join Date: Sep 2017
Posts: 600

Old November 3rd, 2021, 09:10 PM
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.

Found an issue with or have a suggestion for the 5e Community Pack? Please post it here at our GitHub.

Feel free to stop by the Lone Wolf Development Subreddit, for discussion of any and all LWD products and community efforts!
Fenris447 is offline   #4 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:36 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.