• 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

Item that grants abilities to other items

Trentyn

Member
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:

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
How would I do this? Ideally I would want to use the existing ability and just assign it to each weapon.
 
There is a macro for that. Instead of:
Code:
    "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"

Try
Code:
              #extradamage[eachpick," plus 2d6 bane", field[thingname].text]
 
How would I do this? Ideally I would want to use the existing ability and just assign it to each weapon.
Just to be be clear you can't actually do this. Scripts can not actually assign a Thing or Pick to something else.

So Aaron's method is mimicking the bonus from Bane but is not actually going to be giving the Thing iBane to the weapon.
 
Back
Top