root/rpgcharacter/spells/spell
Back
Namespace:
Filename:
Content: ( refid (type: string) | name (type: string) ), value (type: int) ?, initial (type: int) ?, initialcost (type: float) ?, additionalcost (type: float) ?, variation (type: string) *
Description: The spell
tag describes a spell or
similar effect known by the character.
refid
references the definition of the basic spell. This tag is
used in cases where a given game system has defined standard data describing
the spells used by that game system. This data (usually held in a database)
is referenced by this tag, preventing the need for full details of the standard
spell being stored with the character.name
describes the name of the spell. Generally, a given
game system will standardize the values allowed in this tag, but these
are not enforced by this standard. This tag is used in place of the
refid
tag and is only used in cases where there is no externally
referenced data describing spells.value
describes the level, value, force or rating of the spell,
if any.initial
describes the initial value of the spell when the
character was first created. This information may be irrelivant to some
game systems and may be omitted in those cases.initialcost
records the initial character development cost of
this attribute, if any.additionalcost
records the the number of "improvement points"
(e.g. XP, Legend Points, Karma, Character Points) that have been used to raise
this spell since character creation, if any.variation
describes any spell variations. A spell my have zero
or more variations.Code Fragment
<xs:complexType name="spell">
<xs:sequence>
<xs:choice>
<xs:element type="xs:string" name="refid"/>
<xs:element type="xs:string" name="name"/>
</xs:choice>
<xs:element type="xs:int" name="value"/>
<xs:element type="xs:int" name="initial" minOccurs="0" maxOccurs="1"/>
<xs:element type="xs:float" name="initialcost" minOccurs="0" maxOccurs="1"/>
<xs:element type="xs:float" name="additionalcost" minOccurs="0" maxOccurs="1"/>
<xs:element type="xs:string" name="variation" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>