# How do I make the Pathfinder Trait 'Heirloom Weapon' function in PCGen?

I'm working on a character for an upcoming campaign, and it's looking like I'll probably be taking the Heirloom Weapon trait. I'm trying to get the character put together in PCGen, but I'm having some issues figuring out how to make the trait actually function within PCGen.

Here's what I've managed so far:

Heirloom Weapon     KEY:Heirloom Weapon ~ Trait     CATEGORY:Special Ability
TYPE:Trait.EquipmentTrait       PREMULT:1,[PREABILITY:1,CATEGORY=Special Ability,Heirloom Weapon ~ Trait],[!PREABILITY:1,CATEGORY=Special Ability,TYPE.EquipmentTrait]
DESC:You carry a non-masterwork simple or martial weapon that has been passed down from generation to generation in your family.
BENEFIT:When you select this trait, choose one of the following benefits:
1) proficiency with that specific weapon,
2) a +1 trait bonus on attacks of opportunity with that specific weapon,
3) a +2 trait bonus on one kind of combat maneuver when using that specific weapon.
Note: You pay the standard gp cost for the weapon.


I'm trying to figure out how to make it so I can pick the options, and have them actually effect the final character sheet properly.

Note: I'm planning on taking the proficiency option, so I'll settle for a trait for 'Heirloom Weapon (proficiency)' if things are too complex otherwise.