• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Help with Powerful Grip (Hammer of Moradin)

clavin123

Active member
I'm building the Hammer of Moradin (PGtF) PrC and would like to have the Powerful Grip feature automatically add its bonus (1/2 Str mod to damage) to all any warhammer the character possesses proactively.

I have created the following adjustment that correctly does the math and adds it to any weapon to which I assign the adjustment, but I can't figure out how to have it run through and find every warhammer and assign the bonus proactively (so that I can simply put the script in the class special ability and not have to do an adjustment).

Here's my script for the adjustment:

~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)

~determine our bonus (half strength)

var bonus as number
bonus = round(hero.child[aSTR].field[aModBonus].value / 2, 0, -1)

~ Add to damage on selected weapon
field[pChosen].chosen.field[wDamBonus].value += bonus

And I am pretty sure that some variation of the following language is what I need, but I have no idea how to tell it to look for a warhammer. (I tried substituting "wWarhammer" for the "Helper.Finesse" and it did not work.)

~ Loop through all weapons, looking for ability to use with weapon finesse

foreach pick in hero where "Helper.Finesse"

~ Add our bonus
each.field[wDamBonus].value += bonus
nexteach

Would appreciate any help that can be provided.

Thanks.

Jonathan
 
And I am pretty sure that some variation of the following language is what I need, but I have no idea how to tell it to look for a warhammer. (I tried substituting "wWarhammer" for the "Helper.Finesse" and it did not work.)

~ Loop through all weapons, looking for ability to use with weapon finesse

foreach pick in hero where "Helper.Finesse"

Code:
foreach pick in hero from BaseWep where "IsWeapon.wWarhammer"
 
Back
Top