Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
Angela2013
Senior Member
 
Join Date: Sep 2011
Location: Wisconsin
Posts: 321

Old August 17th, 2018, 04:58 PM
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.
Angela2013 is offline   #1 Reply With Quote
Angela2013
Senior Member
 
Join Date: Sep 2011
Location: Wisconsin
Posts: 321

Old August 18th, 2018, 11:37 AM
*bump* ____^____ *bump*

Some days I don't know why I bother to chew through the restraints.
Angela2013 is offline   #2 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old August 18th, 2018, 01:03 PM
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.
ShadowChemosh is offline   #3 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old August 18th, 2018, 01:15 PM
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>
This adds a new option that increases strength. You need to change the aSTR to the ID of your attribute score. In addition change the XXX stuff I used to make this to something that matches your attribute score.

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...
ShadowChemosh is offline   #4 Reply With Quote
Angela2013
Senior Member
 
Join Date: Sep 2011
Location: Wisconsin
Posts: 321

Old August 19th, 2018, 01:26 PM
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.
Angela2013 is offline   #5 Reply With Quote
Angela2013
Senior Member
 
Join Date: Sep 2011
Location: Wisconsin
Posts: 321

Old August 19th, 2018, 01:29 PM
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.
Angela2013 is offline   #6 Reply With Quote
Angela2013
Senior Member
 
Join Date: Sep 2011
Location: Wisconsin
Posts: 321

Old August 19th, 2018, 01:54 PM
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.
Angela2013 is offline   #7 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old August 19th, 2018, 03:17 PM
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.
ShadowChemosh is offline   #8 Reply With Quote
Angela2013
Senior Member
 
Join Date: Sep 2011
Location: Wisconsin
Posts: 321

Old August 20th, 2018, 08:13 AM
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.
Angela2013 is offline   #9 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old August 20th, 2018, 11:52 AM
Quote:
Originally Posted by Angela2013 View Post
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.
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.
ShadowChemosh is offline   #10 Reply With Quote
Reply

Thread Tools
Display Modes

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 05:20 PM.


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