Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Authoring Kit (http://forums.wolflair.com/forumdisplay.php?f=58)
-   -   Starting attributes at 0 with no CP refund? (http://forums.wolflair.com/showthread.php?t=59180)

EightBitz September 16th, 2017 12:33 PM

Starting attributes at 0 with no CP refund?
 
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?

TCArknight 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. :)

EightBitz September 16th, 2017 01:55 PM

Quote:

Originally Posted by TCArknight (Post 256052)
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 September 16th, 2017 01:57 PM

Quote:

Originally Posted by EightBitz (Post 256053)
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.


All times are GMT -8. The time now is 08:26 PM.

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