In the editor, I want to make an item (say a ring or amulet) that when equipped grants the Bane ability to any weapon the character carries. How would I do that? I've tried multiple versions of:
How would I do this? Ideally I would want to use the existing ability and just assign it to each weapon.
Code:
foreach pick in hero from BaseWep
~Try to assign iBane ability -does not work
perform eachpick.assign[Ability.iBane]
perform eachpick.assign[HasAbility.iBane]
~Separately add the Bane bonuses
~Increased attack bonus -works
#applybonus[atrBonEnh,eachpick,3]
#applybonus[dmrBonEnh,eachpick,3]
~Increased damage dice -does not work
"plus 2d6 bane" &= eachpick.field[wDamExtra].text
~perform eachpick.field[wDamExList].modify[+,1,"plus 2d6 bane"]
~eachpick.field[wDamExList].matrixtext[3,1] = "plus 2d6 bane"
nexteach