Thread: Abilities
View Single Post
SAbel
Senior Member
 
Join Date: Jul 2007
Location: Walbridge, Ohio
Posts: 767

Old April 24th, 2011, 03:18 PM
Hey Happy Easter Mathias and all,
I have included examples of the files and what I am pulling them out of I hope this is not to long but I do not want to leave something out, I hope this covers the "bases"

Sean

From the actor.str

<!-- Starting character points to allocate -->
<field
id="acStartCP"
name="Character Points"
type="user"
defvalue="40">
</field>
from my thing_traits.dat file an example of
<!-- Water Trait -->
<thing
id="trWater"
name="Water"
compset="Trait"
isunique="yes"
description="Water is the least static element, ever changing. It is the element of strength and clarity. Water is represented by the twin Traits of Perception and Strength.">
<fieldval field="trtAbbrev" value="Water"/>
<tag group="explicit" tag="2"/>
<eval index="1" phase="Traits" priority="4000">
<before name="Derived trtFinal"/>
<after name="Calc trtFinal"/><![CDATA[
~Water is the lower of the character's Perception and Strength.
field[trtBonus].value += minimum(hero.child[attrPerc].field[trtFinal].value, hero.child[attrStr].field[trtFinal].value)
]]></eval>

</thing>

<!-- Void Trait -->
<thing
id="trVoid"
name="Void"
compset="Attribute"
isunique="yes"
description="Void is poorly understood by mortals, who seek quantify all things. It is everything and nothing and it binds the four rings together.">
<fieldval field="trtAbbrev" value="Void"/>
<fieldval field="trtUser" value="2"/>
<fieldval field="trtCPCost" value="6"/>
<tag group="explicit" tag="9"/>
<tag group="AllowAttri" tag="Attribute"/>
<eval index="1" phase="Traits" priority="4000">
<before name="Derived trtFinal"/>
<after name="Calc trtFinal"/><![CDATA[
~ field[trtBonus].value = 0
~Void does not have traits associated with it. Instead, a character gains a number of Void points per day equal to his Void Ring.
]]></eval>

</thing>

AND then from the thing_attributes.dat example:
<!-- Reflexes Attribute
-->
<thing
id="attrRef"
name="Reflexes"
compset="Attribute"
isunique="yes"
description="measures how quickly characters can react to events unfolding around them.">
<fieldval field="trtAbbrev" value="Ref"/>
<fieldval field="trtUser" value="2"/>
<fieldval field="trtCPCost" value="4"/>
<tag group="explicit" tag="7"/>
<tag group="AllowAttri" tag="Attribute"/>
</thing>
SAbel is offline   #6 Reply With Quote