I am a bit confused and need some clarification, please.
So I have a creature with Weakness (Music) (example), what I coded and it works:
Example 1
Now if you dig about in thing_abilities.dat you see this example for Weakness:
Example 2
So if I tried that, for mine it would look like:
Example 3
But in the Editor, I no longer see Weakness (Music), instead Music:
So I need to assign a 'text' tag with definition 'music' I surmise but what exactly is the syntax and where does it fit timing wise in my example? Looking through other creature/race code examples it seems people forgo the example in thing_abilities.dat and just code like my example 1.
So I have a creature with Weakness (Music) (example), what I coded and it works:
Example 1
Code:
<thing
id="abRKWeak2"
name="Weakness (Music)"
compset="RaceAbil"
summary="Susceptible to certain types of music"
description="An Aunt Jenny must undergo a test of will (resist with Smarts) against specialized music."
uniqueness="unique">
<fieldval field="shortname" value="Weakness (Music)"/>
<usesource source="Ragnarok"/>
<tag group="User" tag="Creature"/>
</thing>
Now if you dig about in thing_abilities.dat you see this example for Weakness:
Example 2
Code:
<thing
id="abWeakness"
name="Weakness"
compset="RaceAbil"
summary="Special susceptibility for the creature"
description="cut out for space.">
<tag group="User" tag="Creature"/>
<tag group="User" tag="NeedText"/>
<!-- Append the weakness to the name -->
<eval index="1" phase="Traits" priority="10000"><![CDATA[
field[livename].text = field[thingname].text & ": " & field[abilText].text
]]></eval>
</thing>
So if I tried that, for mine it would look like:
Example 3
Code:
<thing
id="abRKWeak2"
name="Weakness"
compset="RaceAbil"
summary="Susceptible to certain types of music"
description="An Aunt Jenny must undergo a test of will (resist with Smarts) against specialized music."
uniqueness="unique">
<fieldval field="shortname" value="Weakness"/>
<usesource source="Ragnarok"/>
<tag group="User" tag="Creature"/>
<tag group="User" tag="NeedText"/>
<!-- Append the weakness to the name -->
<eval index="1" phase="Traits" priority="10000"><![CDATA[
field[livename].text = field[thingname].text & ": " & field[abilText].text
]]></eval>
</thing>
But in the Editor, I no longer see Weakness (Music), instead Music:
So I need to assign a 'text' tag with definition 'music' I surmise but what exactly is the syntax and where does it fit timing wise in my example? Looking through other creature/race code examples it seems people forgo the example in thing_abilities.dat and just code like my example 1.