Member
Join Date: Feb 2010
Posts: 33
|
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 |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,207
|
Quote:
Code:
foreach pick in hero from BaseWep where "IsWeapon.wWarhammer" |
|
#2 |
Member
Join Date: Feb 2010
Posts: 33
|
Thank you! Worked like a charm.
|
#3 |
Thread Tools | |
Display Modes | |
|
|