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 November 1st, 2021, 07:21 AM
I am trying to set up an attack, similar to Dragonborn breath weapon attacks, but the number of uses is equal to your proficiency bonus. I thought I had it set up correctly, but the charges don't show up in play. What is the right syntax to get this to work?

Here is the current code:
Code:
  <thing id="raPRSonicScream" name="Sonic Scream" description="As an action, you can violently expel air in a 15-foot cone. When you do so, each creature in the area of the exhalation must make a Wisdom saving throw (DC = 8 + your proficiency bonus + your Constitution modifier). A creature takes 2d6 sonic damage on a failed save, and half as much damage on a successful one. The damage increases to 4d6 at 5th level, 6d6 at 11th level, and 8d6 at 17th level. This ability has no effect on constructs. You can use this feature a number of times equal to your proficiency bonus. You regain all expended uses when you complete a long rest." compset="RaceSpec">
    <fieldval field="abValue2" value="6"/>
    <fieldval field="trkMax" value="hero.childfound[ProfBonus].field[tProfBonus].value"/>
    <tag group="StandardDC" tag="aCON" name="Constitution" abbrev="Constitution"/>
    <tag group="Usage" tag="LongRest"/>
    <tag group="User" tag="Tracker" name="tracker" abbrev="tracker"/>
    <tag group="Helper" tag="ShowSpec" name="Show Spec" abbrev="Show Spec"/>
    <tag group="LvNamePar" tag="AppText" name="Append &quot;field[abText].text&quot;" abbrev="Append &quot;field[abText].text&quot;"/>
    <tag group="DamageType" tag="dtPRSonic" name="sonic" abbrev="sonic"/>
    <tag group="abSave" tag="aWIS"/>
    <tag group="Helper" tag="NoAttrDam"/>
    <eval phase="PostAttr" priority="10000"><![CDATA[
      if (#totallevelcount[] >= 16) then
        field[abValue].value += 5
      elseif (#totallevelcount[] >= 11) then
        field[abValue].value += 4
      elseif (#totallevelcount[] >= 6) then
        field[abValue].value += 3
      else
        field[abValue].value += 2
        endif

      perform root.pulltags[DamageType.?]]]></eval>
    <eval phase="Final" priority="10000" index="2"><![CDATA[
      ~need to put the damage up front
      field[abText].text = field[abValue].value & "d" & field[abValue2].value & " " & tagnames[DamageType.?] & ", " & field[abText].text]]></eval>
    </thing>
DeathSheep is offline   #1 Reply With Quote
Fenris447
Senior Member
 
Join Date: Sep 2017
Posts: 600

Old November 1st, 2021, 10:10 AM
There's a bunch of features in Tasha's that use proficiency bonus/rest for charges. My brain isn't working today, so I can't think of any specific ones off the top of my head. But if you go find one, it'll show you exactly how. You can pull the actual prof bonus from the hero in the Post-Attribues phase and assign it to field[trkMax].value.

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 November 1st, 2021, 01:23 PM
Rest up. You've been so amazingly helpful in this project so far. I found the section in the Tasha's files and implemented it. Works great and thank you once again! I owe you the beverage of your choice when this is all over.
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 04:18 AM.


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