Disclaimer: I am still very much a novice with the authoring kit.
I created a skeleton gaming file, and edited the attributes to be attrMight, attrSpeed and attrIntel. I have not changed any timing.
I copied thing_races.dat to thing_types.dat, and I have the following code:
That all works fine, except that since the eval script is wrapped in a comment, it doesn't do anything.
So I then I uncommented the eval script:
And I got the following error message when trying to load the game system:
The data files could not be loaded due to the following errors:
File: thing_types.dat (line37 - Encountered unknown element tag 'usesource'
One or more timing errors were identified. Please review the timing report and correct the
errors. You can access the report under the 'Develop' menu or by clicking this link.
So then I figured I'd leave out the usesource tag:
And it all worked. This tells me (I think) that the timing is working fine between the attributes and the preTraits. But adding the "usesource" line messes things up. I'd like to keep that in there.
Help?
I created a skeleton gaming file, and edited the attributes to be attrMight, attrSpeed and attrIntel. I have not changed any timing.
I copied thing_races.dat to thing_types.dat, and I have the following code:
Code:
<!-- Glaive -->
<thing
id="TypGlaive"
name="Glaive"
compset="Type"
isunique="yes"
description="Description goes here">
<!-- If the race confers any special abilities, bootstrap them here
<bootstrap thing="abSample"/>
-->
<!-- Define any script needed to apply changes to traits or other mechanisms
<eval value="1" phase="PreTraits" priority="5000">
<before name="Calc trtFinal"/><![CDATA[
~apply whatever adjustment(s) are needed here
#traitbonus[attrMight] += 10
#traitbonus[attrSpeed] += 9
#traitbonus[attrIntel] += 6
~hero.child[resAbility].field[resMax].value += 1
~#traitbonus[attrSam] += 1
]]></eval>
-->
<usesource source="srcNumCore"/>
</thing>
That all works fine, except that since the eval script is wrapped in a comment, it doesn't do anything.
So I then I uncommented the eval script:
Code:
<!-- Glaive -->
<thing
id="TypGlaive"
name="Glaive"
compset="Type"
isunique="yes"
description="Description goes here">
<!-- If the race confers any special abilities, bootstrap them here
<bootstrap thing="abSample"/>
-->
<!-- Define any script needed to apply changes to traits or other mechanisms -->
<eval value="1" phase="PreTraits" priority="5000">
<before name="Calc trtFinal"/><![CDATA[
~apply whatever adjustment(s) are needed here
#traitbonus[attrMight] += 10
#traitbonus[attrSpeed] += 9
#traitbonus[attrIntel] += 6
~hero.child[resAbility].field[resMax].value += 1
~#traitbonus[attrSam] += 1
]]></eval>
<usesource source="srcNumCore"/>
</thing>
The data files could not be loaded due to the following errors:
File: thing_types.dat (line37 - Encountered unknown element tag 'usesource'
One or more timing errors were identified. Please review the timing report and correct the
errors. You can access the report under the 'Develop' menu or by clicking this link.
So then I figured I'd leave out the usesource tag:
Code:
<!-- Glaive -->
<thing
id="TypGlaive"
name="Glaive"
compset="Type"
isunique="yes"
description="Description goes here">
<!-- If the race confers any special abilities, bootstrap them here
<bootstrap thing="abSample"/>
-->
<!-- Define any script needed to apply changes to traits or other mechanisms -->
<eval value="1" phase="PreTraits" priority="5000">
<before name="Calc trtFinal"/><![CDATA[
~apply whatever adjustment(s) are needed here
#traitbonus[attrMight] += 10
#traitbonus[attrSpeed] += 9
#traitbonus[attrIntel] += 6
~hero.child[resAbility].field[resMax].value += 1
~#traitbonus[attrSam] += 1
]]></eval>
</thing>
Help?