Definition Type Element
Name die
Abstract False
MinOccurs 0
MaxOccurs unbounded
Documentation A die that can be referenced elsewhere.
XSD Schema Character Sheet Definition.xsd
XSD Schema Diagram
XSD Schema Code
<xs:element minOccurs="0" maxOccurs="unbounded" name="die" >
  <xs:annotation>
    <xs:documentation>A die that can be referenced elsewhere.</xs:documentation>
  </xs:annotation>

  <xs:complexType>
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="1" name="id" type="xs:string">
        <xs:annotation>
          <xs:documentation>The ID of this die, which can be referenced elsewhere.</xs:documentation>
        </xs:annotation>

      </xs:element>

      <xs:element minOccurs="1" maxOccurs="1" name="sides">
        <xs:annotation>
          <xs:documentation>The number of sides that this die has.</xs:documentation>
        </xs:annotation>

        <xs:simpleType>
          <xs:restriction base="xs:integer">
            <xs:minExclusive value="1"/>
          </xs:restriction>

        </xs:simpleType>

      </xs:element>

      <xs:element minOccurs="0" name="how-many" type="xs:integer">
        <xs:annotation>
          <xs:documentation>How many of this die each reference will &quot;throw.&quot;

For example, you could set up a die called &quot;3d6&quot; and set the number of sides to six and &quot;how-many&quot; to three.
</xs:documentation>
        </xs:annotation>

      </xs:element>

      <xs:element minOccurs="0" maxOccurs="1" name="parse-script" type="xs:string">
        <xs:annotation>
          <xs:documentation>The name of a script file to be executed whenever this die is  evaluated.

If this script returns a value, that value will be used in the enclosing expression instead of what the die's sides and &quot;how-many&quot; indicates.
</xs:documentation>
        </xs:annotation>

      </xs:element>

      <xs:element minOccurs="0" maxOccurs="1" name="post-script" type="xs:string">
        <xs:annotation>
          <xs:documentation>The name of a script file to execute after this die is evaluated.</xs:documentation>
        </xs:annotation>

      </xs:element>

      <xs:element minOccurs="0" maxOccurs="1" name="add-to-roll" type="xs:string">
        <xs:annotation>
          <xs:documentation>Specifies something that should be added to this die.

For example, you might want to define a die that always adds &quot;$L/2&quot; to its expression.  You can use &quot;add-to-roll&quot; to do this.  When expanded, the net result might look something like &quot;d20$L/2&quot; wherever the die is referenced.
</xs:documentation>
        </xs:annotation>

      </xs:element>

    </xs:sequence>

  </xs:complexType>

</xs:element>
Child Elements
Name Type Min Occurs Max Occurs
Derivation Tree
[No Sub Types]
die
    [No Super Types]
Generated using Liquid XML Studio by Liquid Technologies Ltd