![]() |
|
Junior Member
Join Date: Feb 2017
Posts: 7
|
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 Timing: 9000 Index: 1 Any help with it would be appreciated. Last edited by sleepyspoonie; August 14th, 2022 at 03:44 PM. |
![]() |
![]() |
Junior Member
Join Date: Feb 2017
Posts: 7
|
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.
|
![]() |
![]() |
Senior Member
Join Date: Sep 2017
Posts: 566
|
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. |
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|