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 | Her
ffHand"
~ 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 & Her
ffHand"
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
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 | Her

~ 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 & Her

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