• 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

Scripting Novice

Ah. See I've learned something today. Thanks.

So if I wanted it to work with all two-handed weapons how would I go about doing that?

Edit: It is still counting the greatsword as a two-handed weapon.
So if I add a Greatsword to a character I can then right click on it's ? field and a new little menu appears. If I take Show Debug Tags I get a list of all tags or information that HL knows about this weapon. One of them is wClass.TwoHanded. So if we want to pick every weapon on the character(ie Hero) that is a two-handed weapon we just change the tag we are looking for. Also I was off on the timing it needs to be Pre-Levels 1,000.

Here is the new script with the slight change to now change All two-handed weapons on the Hero into 1-handed weapons.
Code:
~Pre-Levels 1,000
foreach pick in hero from BaseWep where "wClass.TwoHanded"
  perform eachpick.tagreplace[wClass.TwoHanded,wClass.OneHanded]
  nexteach

Hope that helps.
 
Back
Top