root/spelldeflist/spelldef/draincode
Back
Namespace:
Filename:
Content: forcemod (Type: byte) ?, ( basedrain (Type: string) | basedrainother (Type: string) )
Description: The draincode tag defines the drain code
of a spell.
forcemod defines a numeric modifer to the base target number. If
neither this tag is not provided, no modifier applies.basedrain defines the base drain code of the spell: either L, M, S, or D.
Either this tag or basedrainother must be present, but not both.basedrainother indicates that some other method is used to determine
the base drain (e.g. "Toxin Damage Level"). The contents of the tag decscribe how the
drain is determined.Code Fragment
<xs:elementtype name="draincode">
<xs:model>
<xs:sequence>
<xs:element type="xs:byte" name="forcemod" occurs="?"/>
<choice>
<xs:element name="basedrain">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[DLMS]"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element type="xs:string" name="basedrainother"/>
</choice>
</xs:sequence>
</xs:model>
</xs:elementtype>