I am trying to implement an item power that turn what ever weapon it is one from a manufactured weapon into a natural weapon. That is, it becomes a primary or secondary natural attack depending on some other factors (which are not important right now) but becomes secondary if the hero uses another manufactured weapon. Additionally, even though it is a now a natural weapon it still can have iterative attacks from high BAB like other manufactured weapons.
I figured out that using this script on the item power I get part of the way there:
However, I am not getting the automatic switching of the weapon from primary to secondary if the hero is using another weapon or the correct iterative attacks for it.
For example, let's say my character wielding a normal melee weapon has a BAB of +6/+1. The weapon with my item power is just showing the attack with the BAB of +6 not +6/+1.
For the Prim/Sec behavior, if I need to handle this manually I can do that, I would just prefer to use methods that already exist in HL to handle it automatically due to all the various feats and abilities that can affect attacks.
I figured out that using this script on the item power I get part of the way there:
Code:
if (parent.tagis[component.BaseWep] <> 0) then
perform parent.assign[wGroup.Natural]
perform parent.assign[Helper.NoOutGear]
perform parent.assign[Helper.Proficient]
perform parent.assign[Helper.FixSizeDmg]
perform parent.delete[Helper.AllEqMain]
perform parent.delete[Helper.AllEqOff]
perform parent.assign[Helper.NatPrimary]
perform parent.assign[wFtrGroup.Natural]
else
foreach pick in hero from BaseWep where container.child[gCustMagic].field[gWeapExpr].text
perform eachpick.assign[wGroup.Natural]
perform eachpick.assign[Helper.NoOutGear]
perform eachpick.assign[Helper.Proficient]
perform eachpick.assign[Helper.FixSizeDmg]
perform eachpick.delete[Helper.AllEqMain]
perform eachpick.delete[Helper.AllEqOff]
perform eachpick.assign[Helper.NatPrimary]
perform eachpick.assign[wFtrGroup.Natural]
nexteach
endif
However, I am not getting the automatic switching of the weapon from primary to secondary if the hero is using another weapon or the correct iterative attacks for it.
For example, let's say my character wielding a normal melee weapon has a BAB of +6/+1. The weapon with my item power is just showing the attack with the BAB of +6 not +6/+1.
For the Prim/Sec behavior, if I need to handle this manually I can do that, I would just prefer to use methods that already exist in HL to handle it automatically due to all the various feats and abilities that can affect attacks.