Definition Type Element
Name dice
Abstract False
MinOccurs 0
MaxOccurs (1)
Documentation This clause allows you to identify dice sequences that can be accessed in expressions.

Essentially, this is short-hand so you can avoid repetatively entering dice sequences in expressions.  Also, should you decide to change the meaning of a die defined here, you would only need to change it in one place (instead of having to locate every reference to the sequence throughout the deifnition file).
XSD Schema Character Sheet Definition.xsd
XSD Schema Diagram
XSD Schema Code
<xs:element minOccurs="0" name="dice" >
  <xs:annotation>
    <xs:documentation>This clause allows you to identify dice sequences that can be accessed in expressions.

Essentially, this is short-hand so you can avoid repetatively entering dice sequences in expressions.  Also, should you decide to change the meaning of a die defined here, you would only need to change it in one place (instead of having to locate every reference to the sequence throughout the deifnition file).
</xs:documentation>
  </xs:annotation>

  <xs:complexType>
    <xs:sequence>
      <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>

    </xs:sequence>

  </xs:complexType>

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