• 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

Magical weapon alteration HELP PLEASE!!

WhyteOne

Member
I have a player that has been using a glaive as his weapon from level 1. he is now about to hit level 20. i want to give him a holy avenger version of the glaive, but I cannot figure out how edit the holy avenger to allow me to pick a glaive as the weapon. To be honest I would just like to be able to have it set up so that it is a "Holy Weapon" I could choose and then it would give me the choice list like it already does, but for any non-ranged martial weapon.

Can anyone help me get this cracked?
 
In the editor, under the Equipment -> Weapon, Magic tab, click "New (Copy)" and select the Holy Avenger.

Give this new version whatever name and unique ID you want. Under the Eval Scripts button, replace

Code:
      gizmo.child[gCustMagic].field[gItemExpr].text = #magicgearexpr[] & " & (wGroup.Sword)"

with

Code:
      gizmo.child[gCustMagic].field[gItemExpr].text = #magicgearexpr[] & " & (wCategory.Melee & wProfReq.Martial)"

Save and Test Now! and you're good to go.

EDIT: Also, just for the sake of it looking right, you'll wanna change the Base Item Restrictions field to say something like "Any martial melee weapon". This is purely text, not a matter of function.
 
Back
Top