• 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

Dual Wielder Feat Script Available?

I needed to create the Dual Wielder feat and realized it will require a bit of scripting in order to apply the +1 to AC properly.

The feat requires that the character have a one-handed melee weapon equipped in each hand. Otherwise it doesn't apply.

Before I dig down into the weeds, I figured I'd ask if anyone had already produced a working script for this? I'd appreciate the time save.

Thanks!
 
If you don't want to wait for a community file, here's an evaluation script to get you through.

I've got it set at Post-Attributes.

Code:
doneif (tagis[Helper.ShowSpec] = 0)

doneif (tagis[Helper.Disable] <> 0)

field[abValue].value = 0

      foreach pick in hero from BaseWep where "(!wProperty.Heavy & Hero.OffHand & !wProperty.TwoHanded)"
           perform eachpick.assign[wProperty.Light]
           field[abValue].value = 1
      nexteach

hero.childfound[ArmorClass].field[Bonus].value += field[abValue].value

How it works? First, set abValue to 0. Then, check for any non-heavy non-two-handed weapons in the off hand (for completeness). If it finds any, set abValue to 1, and add the Light Weapon property to the weapon. Then it adds abValue to the AC. It's probably not the most elegant way to do this, but it keeps the validation monkey off your back.
 
Actually, double checking the Dual Wielder feat, you can probably remove the "!wProperty.Heavy &" form the validation text - not that there's much in the way of Heavy One Handed Weapons.
 
Back
Top