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
sleepyspoonie
Junior Member
 
Join Date: Feb 2017
Posts: 7

Old August 14th, 2022, 03:34 PM
I have a power that allows the user to add a flat bonus to damage with a melee finesse weapon equal to their Strength score, in addition to the bonus from Dex. I've figured out how to add a static/flat modifier, but not how to do so with the character's actual strength.

Here's what I have so far:

HTML Code:
hero.child[Damage].field[dmmBonus].value += 2
Phase: Post-Attributes
Timing: 9000
Index: 1

Any help with it would be appreciated.

Last edited by sleepyspoonie; August 14th, 2022 at 03:44 PM.
sleepyspoonie is offline   #1 Reply With Quote
sleepyspoonie
Junior Member
 
Join Date: Feb 2017
Posts: 7

Old August 14th, 2022, 03:43 PM
I also realized I don't know how to restrict it to finesse weapons, so being able to do so with the script would also be great.
sleepyspoonie is offline   #2 Reply With Quote
Fenris447
Senior Member
 
Join Date: Sep 2017
Posts: 536

Old August 14th, 2022, 06:40 PM
It's gonna get finicky if your STR is higher than your DEX, since a finesse weapon will automatically use the higher of the two. But if you're limiting it to personal use on a character with a higher DEX, this should do it. Throw it into a .user file and add it as an adjustment:

Code:
  <thing id="pSTRtoFin" name="Add STR to DEX Finesse Weapon Damage" compset="InPlay">
    <tag group="OthAdjCat" tag="Equipment"/>
    <tag group="Helper" tag="NoIncr"/>
    <eval phase="Final" priority="10000"><![CDATA[doneif (field[pIsOn].value = 0)

foreach pick in hero from BaseWep where "wProperty.Finesse"
     eachpick.field[wDamAttr].value += hero.childfound[aSTR].field[aModBonus].value
     nexteach]]></eval>
    </thing>

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!

Last edited by Fenris447; August 22nd, 2022 at 04:07 PM.
Fenris447 is online now   #3 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 11:37 PM.


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