Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Pezmerga
Senior Member
 
Join Date: Oct 2010
Location: Cincinnati, OH
Posts: 328

Old March 28th, 2013, 07:31 AM
Quote:
Originally Posted by Mathias View Post
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.
How would I make it so the 2nd selection list shows premade magic weapons (Thus adding the +1 to attack with it)? As it is, it will only show magic weapons built as a custom magic item on the character builder. But if I want to select for instance, a scimitar of life stealing, it doesn't show up in the list.

I see that it populates the list as All things on hero and thingid.iMagWeapon.


edit: component.BaseMagicI & component.BaseWep | thingid.iMagWeapon worked. So if anyone else cares to make that alteration, just change it like that!

Last edited by Pezmerga; March 28th, 2013 at 07:44 AM.
Pezmerga is offline   #1 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:33 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.