• 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

Sub Dex for Str in Damage

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.
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
 
Well, I take that back. I want to be able to have the bonus apply to all weapons of that type (i.e. all Kukris get that bonus, not just what I select).

Here is the original code. How can I tweak it to select from a list of all light weapons?

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)

~ All Finesse and Light Weapons
foreach pick in hero from BaseWep where "Helper.Finesse|wClass.Light"
   ~ Set tag so that we use either Str or Dex
   perform eachpick.assign[DamageOpt.aDEX]
nexteach
 
Weapons which have Weapon Focus are marked by a Broadcast tag. Can you use data file debugging to figure out which tag that is? Once you know, you can add that to your tag expression in the foreach above, and modify it to only apply to Finesse/Light weapons with that Broadcast tag.
 
So, adding that helped determine which weapon got the damage, but that isn't quite what I'm going for. However, I've decided to change my wording to match the original by removing the weapon focus requirement.

However, I would like the list to display more weapons than just what my Character currently carries. How would I accomplish this?
 
So now you want the feat to do what? Choose among finess/light weapons, and then all weapons of that type use Dex for damage? And the issue is you can only choose among those weapons already added to your character?
 
Hi Aaron,

Thanks for your patience and reply. I just sat down to read this again this morning. To say the least, I caught the flu and thought I could do this on meds. I got it solved. I was asking questions that didn't need answered. Got it working! Adding Weapon Focus Broadcast fixed the issue.
 
Back
Top