Hi there,
I'm quite new to the Authoring Kit. Been looking around at the wiki and the Savage World walkthrough.
In the skeleton files, you have CP cost per attribute as follows:
So in this one, it'll always cost 7 points. But I'm not sure why. In my brain it works out to:
Rank 1 = Free
Rank 2 = 7
Rank 3 = 14
Rank 4 = 21
etc.
But for some reason it saves the previous cost and just subtracts the difference.
How would I change this to make it actually remove as many CP as the cost would actually be?
So Rank 1 = free
Rank 2 = costs 7 CP
Rank 3 = costs 14 CP (total of 21 CP for rank 2 and 3)
Rank 4 = costs 21 CP (total of 42 CP for ranks 2-4)
I did it currently by using if/then statements (since I couldn't find anything in the reference material pointing towards arrays being available, and I'm not very good with XML yet, so there might be an XML feature that has it). The problem with if/then statements is if various stats would have various costs associated with it. For example if Strength would have the cost be Strength*3, while Stamina would be Stamina*4.
I'm not always very adapt at expressing my thoughts, but hopefully you get an idea of what I'm trying to accomplish.
Thank you for your time!
Best Regards,
Andreas
I'm quite new to the Authoring Kit. Been looking around at the wiki and the Savage World walkthrough.
In the skeleton files, you have CP cost per attribute as follows:
Code:
<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 - 1) * 7
]]>
</eval>
So in this one, it'll always cost 7 points. But I'm not sure why. In my brain it works out to:
Rank 1 = Free
Rank 2 = 7
Rank 3 = 14
Rank 4 = 21
etc.
But for some reason it saves the previous cost and just subtracts the difference.
How would I change this to make it actually remove as many CP as the cost would actually be?
So Rank 1 = free
Rank 2 = costs 7 CP
Rank 3 = costs 14 CP (total of 21 CP for rank 2 and 3)
Rank 4 = costs 21 CP (total of 42 CP for ranks 2-4)
I did it currently by using if/then statements (since I couldn't find anything in the reference material pointing towards arrays being available, and I'm not very good with XML yet, so there might be an XML feature that has it). The problem with if/then statements is if various stats would have various costs associated with it. For example if Strength would have the cost be Strength*3, while Stamina would be Stamina*4.
I'm not always very adapt at expressing my thoughts, but hopefully you get an idea of what I'm trying to accomplish.
Thank you for your time!
Best Regards,
Andreas