Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - D&D 5th Edition SRD (http://forums.wolflair.com/forumdisplay.php?f=89)
-   -   Add Strength to Damage from Daggars (http://forums.wolflair.com/showthread.php?t=67313)

sleepyspoonie August 14th, 2022 03:34 PM

Add Strength to Damage from Daggars
 
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.

sleepyspoonie 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.

Fenris447 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>



All times are GMT -8. The time now is 11:55 AM.

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