• 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

Ability Score Bonus

Angela2013

Well-known member
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?
 
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
 
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...
 
Last edited:
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
 
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++.
 
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>
 
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.
 
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! :D
 
Back
Top