Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit

Notices

Reply
 
Thread Tools Display Modes
EightBitz
Senior Member
 
Join Date: May 2013
Posts: 1,458

Old September 16th, 2017, 12:33 PM
With a new skeleton system, attributes have a minimum value of 1, and CP has a default value of 250.

I know how to change the minimum value of the attribute to 0, but this refunds CP points.

I would like a baseline of all attributes with a value of 0, and no CP refunds, so the CP value remains at 250.

Looking through the various dat files, though, I can't find where or how to change this. It's easy enough to change the starting CP value to compensate, but is that the best way? (If so, that's fine.) Or is there a way to baseline the attributes with no CP refund?
EightBitz is offline   #1 Reply With Quote
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321

Old September 16th, 2017, 01:36 PM
I think this should do it.....
Quote:
<component
id="Attribute"
name="Attribute"
autocompset="no">

<!-- Attributes have a minimum trait value of 1 -->
<eval index="1" phase="Initialize" priority="3000"><![CDATA[
field[trtMinimum].value = 0
]]></eval>

<!-- Each attribute point above one that is allocated by the user costs 7 CP -->
<eval index="2" phase="Traits" priority="10000">
<before name="Calc resLeft"/>
<after name="Bound trtUser"/><![CDATA[
hero.child[resCP].field[resSpent].value += field[trtUser].value * 7
]]></eval>

</component>
The values should start at 0, and only Cost CP as increase. (before, the (field[trtUser].value -1) * 7 the Spent would be -7 for a 0, and since the the CP Cost is -Spent, it would add 7 CP instead.

Last edited by TCArknight; September 16th, 2017 at 01:40 PM.
TCArknight is offline   #2 Reply With Quote
EightBitz
Senior Member
 
Join Date: May 2013
Posts: 1,458

Old September 16th, 2017, 01:55 PM
Quote:
Originally Posted by TCArknight View Post
I think this should do it.....
The values should start at 0, and only Cost CP as increase. (before, the (field[trtUser].value -1) * 7 the Spent would be -7 for a 0, and since the the CP Cost is -Spent, it would add 7 CP instead.
Nope. That was exactly the initial change I made to set the attributes to 0. It still refunds CP.
EightBitz is offline   #3 Reply With Quote
EightBitz
Senior Member
 
Join Date: May 2013
Posts: 1,458

Old September 16th, 2017, 01:57 PM
Quote:
Originally Posted by EightBitz View Post
Nope. That was exactly the initial change I made to set the attributes to 0. It still refunds CP.
Oh, wait, no, never mind. That works. You made a second change that I missed before posting my reply.

Thanks.
EightBitz is offline   #4 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 12:47 PM.


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