• 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

Medium two weapon fighting Feat script for herolab

I Completed the Two Weapon Dervish Dance feat. pre-reqs are dervish dance and oversized TWF.

Thanks for your help gyus!!!:)
======================================
PreLevels 11000


~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)

~ If we have a shield equipped or another weapon in our off hand, do nothing, we are done.
doneif (hero.tagis[Hero.EquipShld] <> 0)

~ If we do not have a weapon in off hand, do nothing
doneif (hero.tagis[Hero.EquipOff] = 0)

~ Assign the piercing weapon tag and light weapon tag so scimitars work with Duelist abilities.
foreach pick in hero from BaseWep where "IsWeapon.wScimitar"
perform eachpick.assign[wType.P]
perform eachpick.assign[wClass.Light]
nexteach

===================================

Post Attribures 10000

~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)

~ If we have a shield equipped or another weapon in our off hand, do nothing, we are done.
doneif (hero.tagis[Hero.EquipShld] <> 0)

~ If we do not have a weapon in off hand
doneif (hero.tagis[Hero.EquipOff] = 0)


~get out if any of our equipped weapons aren't Scimitars
~foreach pick in hero from BaseWep where "Hero.MainHand | Hero.OffHand"
~ doneif (eachpick.tagis[IsWeapon.wScimitar] = 0)
~ nexteach

~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)

~ Go through to all off hand scimitars on the hero and replace their Strength bonuses by half dex bonus amd to Hit with Dex bonuses
foreach pick in hero from BaseWep where "IsWeapon.wScimitar & Hero.OffHand"

eachpick.field[wDamBonus].value += round(field[abValue].value/2,0,0)

~if the offhand weapon is a scimitar apply the full dex bonus to the damg bonus of the main hand
if (eachpick.tagis[IsWeapon.wScimitar] = 1) then
foreach pick in hero from BaseWep where "IsWeapon.wScimitar & Hero.MainHand"
eachpick.field[wDamBonus].value += field[abValue].value
nexteach
endif
nexteach

~ Go through to all main hand scimitars on the hero and apply dex bonuses, even if hte second weapon in not a scimitar) to account for weapon finess
foreach pick in hero from BaseWep where "IsWeapon.wScimitar & Hero.MainHand"
eachpick.field[wAttBonus].value += field[abValue].value
nexteach
 
Back
Top