A Proposal for a Shadowrun XML Standard

draincode

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.


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>