Senior Member
Join Date: Sep 2011
Location: Wisconsin
Posts: 321
|
Through a mechanic I have add the abilities Comeliness and Ego.
They appear on the abilities tab and the summary window. For races that get an ability bonus (like humans) they are able to be chosen. My question is this; can they be added to the abilities bonus list (chosen every 4 levels) on the classes tab? If so, how? Some days I don't know why I bother to chew through the restraints. |
#1 |
Senior Member
Join Date: Sep 2011
Location: Wisconsin
Posts: 321
|
*bump* ____^____ *bump*
Some days I don't know why I bother to chew through the restraints. |
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Need more info... When you say "ability" do you mean a racial ability or class ability? Or you trying to say "attribute score" like Strength?
If you have actually added a new attribute score (I think I recall you saying that years ago). Then getting it to level up also is going to be hard. Allot of such logic is "hard-coded" into HL to only deal with the 6 attributes. Maybe if LW is really nice they could provide the raw XML code but without that I can't even guess. I assume you need to add new Thing to this table: AttributeIncrease.jpg Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Well I guess I spoke too soon. It was actually SUPER easy to backward engineer this.
So here is the XML you need: Code:
<thing id="uXXX" name="+1 XXXX" compset="LevelBonus"> <tag group="explicit" tag="35"/> <eval phase="PreAttr" priority="1000"><![CDATA[ hero.childfound[aSTR].field[aStartMod].value += 1 ]]></eval> </thing> The Explicit.35 tag controls where this is displayed in the list. For now I have it set to 35 which is 5 higher than Cha which is set to 30 and Str is set to 5. Hope that helps... Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. Last edited by ShadowChemosh; August 20th, 2018 at 11:51 AM. Reason: Fixed the captilzed Explicit tag to help future readers... |
#4 |
Senior Member
Join Date: Sep 2011
Location: Wisconsin
Posts: 321
|
Ok I am not really proficient with XML. Here is what I got.
<?xml version="1.0" encoding="UTF-8"?> <document signature="Hero Lab Data"> <thing id="aCOM" name="Comeliness" description="This is Comeliness" compset="Attribute" uniqueness="unique"> <fieldval field="aAbbr" value="COM"/> <tag group="AttribCat" tag="Physical" name="Physical" abbrev="Phys"/> <tag group="explicit" tag="35" name="35" abbrev="35"/> <tag group="AbilSumOrd" tag="35" name="35" abbrev="35"/> </thing> <thing id="uComeliness" name="+1 Comeliness" compset="LevelBonus"> <tag group="Explicit" tag="35"/> <eval phase="PreAttr" priority="1000"><![CDATA[ hero.childfound[aCOM].field[aStartMod].value += 1 ]]></eval> </thing> </document> I am not sure this is done right as I added to the code for adding Comeliness. However I am now getting the following error message. The data files could not be loaded due to errors. Hero Lab will now attempt to load them in recovery mode. Once loaded, you can access the editor as normal to correct any errors. The following errors occurred: File: Comeliness.user (line 10) - Thing 'uComeliness' (dynamic tag) - Group 'Explicit' not defined Some days I don't know why I bother to chew through the restraints. |
#5 |
Senior Member
Join Date: Sep 2011
Location: Wisconsin
Posts: 321
|
Or do I need to add them as two separate XML data packages?
Some days I don't know why I bother to chew through the restraints. |
#6 |
Senior Member
Join Date: Sep 2011
Location: Wisconsin
Posts: 321
|
Ok I have tried them separate. I put your code into Comeliness Bonus Score.user. Now on the code I get:
The following errors occurred: File: Comeliness Bonus Score.user (line 1) - Invalid top-level element tag This is the code: <thing id="uCOM" name="+1 Comeliness" compset="LevelBonus"> <tag group="explicit" tag="35"/> <eval phase="PreAttr" priority="1000"><![CDATA[ hero.childfound[aCOM].field[aStartMod].value += 1 ]]></eval> </thing> I am using Notepad++. Some days I don't know why I bother to chew through the restraints. |
#7 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Sorry I capitalized explicit tag which was wrong. Your first post could be fixed by just changing Explicit to explicit.
Otherwise if you want to use the 2nd file you need to include the document header and end tags. So it would be this as the full document: Code:
<?xml version="1.0" encoding="UTF-8"?> <document signature="Hero Lab Data"> <thing id="uCOM" name="+1 Comeliness" compset="LevelBonus"> <tag group="explicit" tag="35"/> <eval phase="PreAttr" priority="1000"><![CDATA[ hero.childfound[aCOM].field[aStartMod].value += 1 ]]></eval> </thing> </document> Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#8 |
Senior Member
Join Date: Sep 2011
Location: Wisconsin
Posts: 321
|
Thanks, you rock! I need life to slow down so I can get a handle on some of this.
Either that or a maid (though I would corrupt her with roleplaying thus getting less work.) Ah well, such is life. Some days I don't know why I bother to chew through the restraints. |
#9 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
LOL I think this holds true for most people. I know I would love a maid!
Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
#10 |
|
|