Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD
Register FAQ Community Today's Posts Search

Notices

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

Old October 29th, 2021, 09:52 AM
Because I love finding new problems before I solve old ones, here's a new one. I'm trying to create a special ability that adds new abilities as you level up. The final one is an attribute increase. All of the sub-abilities work, but the final one which should trigger at level 20, triggers as soon as the special ability is chosen.

This is the Special Ability:
Code:
  <thing id="cGrdPRAtaruFocus" name="Ataru Focus" description="Ataru Form, also know as Aggression Form, is a kinetically active form that relies on speed, acrobatics, and power. Those guardians who focus on Ataru Form utilize high energy tactics to confuse and distract their opponents, quickly moving about the battlefield." compset="CustomSpec" uniqueness="unique">
    <tag group="SpecSource" tag="cHelpGrd"/>
    <tag group="Helper" tag="Primary"/>
    <tag group="abCategory" tag="GrdFocus" name="Guardian Focus" abbrev="Guardian Focus"/>
    <tag group="Helper" tag="SpecUp"/>
    <bootstrap thing="cGrdPRChRetLeap">
      <autotag group="ClSpecWhen" tag="3"/>
      </bootstrap>
    <bootstrap thing="cGrdPRHawkBatSwp">
      <autotag group="ClSpecWhen" tag="7"/>
      </bootstrap>
    <bootstrap thing="cGrdPRWayHawkbat">
      <autotag group="ClSpecWhen" tag="3"/>
      </bootstrap>
    <bootstrap thing="cGrdPRWhrlWindAtt">
      <autotag group="ClSpecWhen" tag="15"/>
      </bootstrap>
    <bootstrap thing="cGrdPRMastAgg">
      <autotag group="ClSpecWhen" tag="20"/>
      </bootstrap>
    </thing>
And this is the sub-ability (although I don't believe the problem is in this code):
Code:
  <thing id="cGrdPRMastAgg" name="Master of Aggression" description="Your presence on the field of battle is as a graceful blur of deadly blades and daring acrobatics. Your Dexterity and Wisdom or Charisma scores (your choice) increase by 2. Your maximum for those scores increases by 2. Additionally, you can use your action to gain the following benefits for 1 minute:\n\n- You have resistance to kinetic, energy, and ion damage from weapons.\n- When an ally within 30 feet of you takes the Attack action, they can make one additional attack as a part of that same action.\n- When you hit a creature with a weapon attack, you can move up to 10 feet. This movement does not provoke opportunity attacks.\n\nThis effect ends early if you are incapacitated or die. Once you’ve used this feature, you can’t use it again until you finish a long rest." compset="ClSpecial">
    <fieldval field="abValue" value="2"/>
    <fieldval field="usrCandid1" value="component.BaseAttr & (IsAttr.aCHA | IsAttr.aWIS)"/>
    <tag group="abRange" tag="Personal" name="Personal" abbrev="pers"/>
    <tag group="Helper" tag="SpecUp" name="SpecUp" abbrev="SpecUp"/>
    <tag group="abAction" tag="None" name="No action" abbrev="None"/>
    <tag group="Helper" tag="ShowSpec"/>
    <tag group="abDuration" tag="Constant" name="Constant" abbrev="cons"/>
    <tag group="ChooseSrc1" tag="Thing"/>
    <eval phase="PostLevel" priority="10000"><![CDATA[
      ~ If we're not shown, just get out now
      doneif (tagis[Helper.ShowSpec] = 0)

      doneif (tagis[Helper.Disable] <> 0)
      hero.childfound[aDEX].field[aClassMod].value += field[abValue].value
      field[usrChosen1].chosen.field[aClassMod].value += field[abValue].value
      
      hero.childfound[aDEX].field[aMaxValue].value += field[abValue].value
      field[usrChosen1].chosen.field[aMaxValue].value += field[abValue].value]]></eval>
    </thing>
DeathSheep is offline   #1 Reply With Quote
Fenris447
Senior Member
 
Join Date: Sep 2017
Posts: 600

Old October 29th, 2021, 11:02 AM
Code:
doneif (hero.tagcount[Classes.?] < 20)
at the beginning of the sub-ability's eval script should do it. Make sure the timing is some time after ~First 500

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   #2 Reply With Quote
DeathSheep
Member
 
Join Date: Jun 2018
Posts: 83

Old October 29th, 2021, 11:26 AM
Thanks! It actually turned out to be that ShowSpec Helper needed to be eliminated (in retrospect so obvious). Once I got rid of that Tag, it works.
DeathSheep is offline   #3 Reply With Quote
Reply


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 09:48 AM.


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