• 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

Need help customizing Heirloom Weapon trait

Nightwish5121

Active member
The new version of the Heirloom Weapon trait no longer allows the use of the trait with exotic weapons, which I thought was a kind of stupid thing to remove. So I want to create my own version of the trait that again allows exotic weapons to be selected, but I'm not sure what I need to change. The program won't let me copy this particular trait, but I can copy it on paper and then just create it new, but I'm not sure what changes I need to make to allow simple, martial and exotic weapons, and not just simple and martial.
 
Under "Item Selection" you should just be able to remove the custom expression that tells it only base weapons (with a variable specifically removing exotics) and just use the drop-down to select all weapons.
 
Basically what Pr1est said but in more detail you want to change the "Custom Expression" from
Code:
component.BaseWep & !Helper.NoSelect & !wCategory.Ammunition & !wProfReq.Exotic & !Helper.Helper
to
Code:
component.BaseWep & !Helper.NoSelect & !wCategory.Ammunition &  !Helper.Helper
Which removes the No Exotic weapon tag from the selection query. That will allow exotic weapons to display in the list.
 
Basically what Pr1est said but in more detail you want to change the "Custom Expression" from
Code:
component.BaseWep & !Helper.NoSelect & !wCategory.Ammunition & !wProfReq.Exotic & !Helper.Helper
to
Code:
component.BaseWep & !Helper.NoSelect & !wCategory.Ammunition &  !Helper.Helper
Which removes the No Exotic weapon tag from the selection query. That will allow exotic weapons to display in the list.

Nail on the head. :D 3 AM makes me a lazy panda.
 
Does anyone still have the code for the old version of this trait? I'm calling it Ancestral Weapon...

*sigh* I'm not up to figuring this stuff out....
 
I would like the original as well. I'm not proficient enough to do it myself. Any chance someone from Lone Wolf still has the old trait sitting around somewhere?
 
Here's the XML of the original.
Code:
<thing id="trHeirWeap" name="Heirloom Weapon" description="You carry a weapon that has been passed down from generation to generation in your family.  This heirloom weapon is of masterwork quality (but you only pay the standard cost at character creation).  You gain a +1 trait bonus on attack rolls with this specific weapon and are considered proficient with that specific weapon (but not other weapons of that type) even if you do not have the require proficiencies." compset="Trait" summary="Free Masterwork weapon that you are proficient and +1 trait attacks" uniqueness="useronce">
    <fieldval field="usrCandid2" value="thingid.iMagWeapon"/>
    <usesource source="PCAdvArm"/>
    <tag group="trCategory" tag="Equipment"/>
    <tag group="ChooseSrc1" tag="Thing" name="All Things"/>
    <tag group="ChooseSrc2" tag="Hero"/>
    <tag group="fShowWhat" tag="Weapons" name="All Weapons"/>
    <eval phase="First" priority="1000"><![CDATA[
      ~ If we're disabled, do nothing
      doneif (tagis[Helper.FtDisable] <> 0)
      var v_tag as string
      v_tag = "Helper.ExoticProf"
      call ChosenProf
      ~ Add to attacks
      field[usrChosen2].chosen.field[wAttBonus].value += 1]]></eval>
    </thing>

To get this turned into a new trait, you can create and save a blank file in the editor, then open that file in a text editor (not a word processing program - those are likely to try to add code that Hero Lab wouldn't understand).

You'll see the following in the file:

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<document signature="Hero Lab Data"></document>

You'll paste the old version in the middle of the second line, in-between the > and the <. Then, you can re-open the editor, open that file, and change the name and Id of the trait. (don't compile Hero Lab before you edit this trait and change the Id, or Hero Lab will complain about duplicates).

To make this a replacement of the original, you can use the "Replaces Thing Id" box on the right hand side - enter the Id of this trait into that box, then change the Id of this trait. Then, switch to the *Preclude tab, and create two new entries:
Code:
trHeirWAoO
and
Code:
trHeirWMan

That'll suppress the Attack of Opportunity and Maneuver versions of the trait that were split off from the proficiency version.
 
THANK you Mathias! I'll give it a shot tomorrow when I'm recovered from my *16* hour shift today....




You guys ROCK!
 
Last edited:
Thank you Mathias! Works perfectly.

I have a character in an existing campaign with this feat and I didn't want him to get cut down just because the feat changed in the middle of the campaign.

LOVE HEROLAB!
 
Assume I'm a moron who doesn't know the first thing about how to do this (it would be a proper assumption)

Where would I find "Item Selection" and "Custom Expression"?
 
Just like Mathias posted... all you need to do is open the editor and save a file with nothing in it.

Then, you open that .user file in notepad and cut and paste the code that he provided above of the original trait and save.

For my purposes, since I only wanted this to be kept around for this campaign, and wanted the newer versions to still work for future campaigns / Pathfinder Society games, I changed the title of the (old) version to Ancestral Weapon, then changed the thingID to truancestw before saving.
 
I am incredibly dense when it comes to this stuff. I don't want to add a new version of Heirloom Weapon that replicates the older version of the trait. I want to change the current version of the trait to make it work with exotic weapons. Since I am not allowed to copy or save the current Heirloom Weapon traits to make the changes discussed upthread, what do I do? Any help would be greatly appreciated. Again, I don't want the old version of the trait; I want the current version of the trait (in all its permutations) to work with exotic weapons.
 
I am incredibly dense when it comes to this stuff. I don't want to add a new version of Heirloom Weapon that replicates the older version of the trait. I want to change the current version of the trait to make it work with exotic weapons. Since I am not allowed to copy or save the current Heirloom Weapon traits to make the changes discussed upthread, what do I do? Any help would be greatly appreciated. Again, I don't want the old version of the trait; I want the current version of the trait (in all its permutations) to work with exotic weapons.
Mathias post tells you exactly how to do this.

When he is talking about using Replace ID that is what that mechanics does. It replaces the Original version of the trait with your new modified version. That way your new version is treated "exactly" like the old one to meet other requirements but has your custom house rules in it.

Just follow the post step by step. :)
 
Mathias post tells you exactly how to do this.

When he is talking about using Replace ID that is what that mechanics does. It replaces the Original version of the trait with your new modified version. That way your new version is treated "exactly" like the old one to meet other requirements but has your custom house rules in it.

Just follow the post step by step. :)

Thank you for the prompt response. I have tried this and it does not allow me to select the +2 CMB bonus to one type of combat maneuver. It gives me a +1 trait bonus to attacks. Again, I don't want this. I simply want to make the current version of the Heirloom Weapon trait work with exotic weapons. Again, it could be that I am being extremely dense, but it seems like what Mathias posted was how to replace the new version of the trait with the old version - again, I just want the new version to work with exotic weapons, specifically the CMB bonus version of the trait.
 
Thank you for the prompt response. I have tried this and it does not allow me to select the +2 CMB bonus to one type of combat maneuver. It gives me a +1 trait bonus to attacks. Again, I don't want this. I simply want to make the current version of the Heirloom Weapon trait work with exotic weapons. Again, it could be that I am being extremely dense, but it seems like what Mathias posted was how to replace the new version of the trait with the old version - again, I just want the new version to work with exotic weapons, specifically the CMB bonus version of the trait.
Yep sorry my bad I read too quick. So follow these steps then.

1) So start the Editor.
2) Open up your .user file or create a new one.
3) Go to the Trait tab.
4) Click New(Copy) and on the selection window pick "Heirloom Weapon (Maneuver)"
5) Click New(Blank).
6) Copy every value and field exactly from the Maneuver trait that is purple to your new blank one.
7) Then follow the steps in my older post HERE.
8) Save and Test Now!
9) If happy with how it works you can have your new version do a Replaces Thing ID against the old version.
 
Yep sorry my bad I read too quick. So follow these steps then.

1) So start the Editor.
2) Open up your .user file or create a new one.
3) Go to the Trait tab.
4) Click New(Copy) and on the selection window pick "Heirloom Weapon (Maneuver)"
5) Click New(Blank).
6) Copy every value and field exactly from the Maneuver trait that is purple to your new blank one.
7) Then follow the steps in my older post HERE.
8) Save and Test Now!
9) If happy with how it works you can have your new version do a Replaces Thing ID against the old version.

That seems to work. Thanks! Is there a way to get it to work with custom weapons? It does work with anything under the "Other Weapons" heading but nothing under the "Magic, Custom, & Masterwork Weapon" heading.

Jerry
 
Back
Top