tcharleschapman
Well-known member
Hi Everyone,
I'm going off of the Dervish Dance and Weapon Focus feats I'm trying to develop a feat that goes as follows.
Improved Weapon Finesse
You are skilled at nimbly delivering damage.
Prerequisites: Dex 13, Weapon Finesse, Weapon Focus in selected weapon, BAB +1
Benefit: When wielding a finesse weapon in which you have taken Weapon Focus, you may use your Dexterity modifier instead of your Strength modifier for damage, 50% for off-hand attacks. This weapon can not be wielded 2-handed. You may use the feat Double Slice and substitute your Dexterity modifier for Strength.
As you can probably guess, I'm having trouble with the Eval Script.
Here is what I have cobbled together which does not work. I'm also guessing there is extra stuff in there. Any guidance is greatly appreciated.
I'm going off of the Dervish Dance and Weapon Focus feats I'm trying to develop a feat that goes as follows.
Improved Weapon Finesse
You are skilled at nimbly delivering damage.
Prerequisites: Dex 13, Weapon Finesse, Weapon Focus in selected weapon, BAB +1
Benefit: When wielding a finesse weapon in which you have taken Weapon Focus, you may use your Dexterity modifier instead of your Strength modifier for damage, 50% for off-hand attacks. This weapon can not be wielded 2-handed. You may use the feat Double Slice and substitute your Dexterity modifier for Strength.
As you can probably guess, I'm having trouble with the Eval Script.
Here is what I have cobbled together which does not work. I'm also guessing there is extra stuff in there. Any guidance is greatly appreciated.
Code:
~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)
~ If we haven't chosen anything, get out now
doneif (field[usrChosen1].ischosen + tagis[Target.?] = 0)
~figure out the difference between our DEX and STR modifiers (minimum 0, since the feat says "can", not "must")
field[abValue].value += maximum(#attrmod[aDEX] - #attrmod[aSTR], 0)
~ Otherwise, go through to all selected weapons on the hero and replace their Strength bonuses to Hit and Damage with Dex bonuses
~ If the hero has the correct tags, this effect should apply not just to
~ the chosen weapon, but to all weapons of the same weapon group.
if (tagcount[Hero.MartVersa] + hero.tagcount[Hero.MartMaster] <> 0) then
perform field[usrChosen1].chosen.pulltags[wFtrGroup.?]
foreach pick in hero from BaseWep
if (eachpick.tagmatch[wFtrGroup,wFtrGroup,initial] <> 0) then
perform eachpick.assign[MelAttOpt.aDEX]
eachpick.field[wDamBonus].value += field[abValue].value
endif