• 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 Ability to change weapon Damage type

sebacore

Well-known member
I'm trying to create a new Item ability that changes a Weapon damage type. So a sword would become a Bludgeoning weapon as opposed to a Slashing weapon. I know the tag is wType but I just can't figure out how to change it based on if this ability is applied to the weapon.
 
Code:
perform delete[wType.?]
will delete whatever Type is already there

Code:
perform assign[wType.B]
will then assign Bludgeoning to the weapon.

or:

Code:
perform tagreplace[wType.?,wType.B]

Which combines both of those into a single line.

Since you want to affect the weapon from the power, you'll need to transition from the context of the power to the context of the item that's containing it:

Code:
perform container.parent.tagreplace[wType.?,wType.B]
 
Last edited:
Back
Top