Definition Type Element
Name modifier-script
Abstract False
MinOccurs 0
MaxOccurs unbounded
Documentation A clause that defines a script to be executed during the "parse" phase of expression evaluation.

This differs from the "parse-script" tag in that this extended clause allows you to define and pass variables to the script before it is executed.

This allows you to have more generic scripts whose functionality is tailored by data contained in the character sheet.
XSD Schema Character Sheet Definition.xsd
XSD Schema Diagram
XSD Schema Code
<xs:element minOccurs="0" maxOccurs="unbounded" name="modifier-script" >
  <xs:annotation>
    <xs:documentation>A clause that defines a script to be executed during the &quot;parse&quot; phase of expression evaluation.

This differs from the &quot;parse-script&quot; tag in that this extended clause allows you to define and pass variables to the script before it is executed.

This allows you to have more generic scripts whose functionality is tailored by data contained in the character sheet.
</xs:documentation>
  </xs:annotation>

  <xs:complexType>
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="1" name="script" type="xs:string">
        <xs:annotation>
          <xs:documentation>The script file name to execute.</xs:documentation>
        </xs:annotation>

      </xs:element>

      <xs:element minOccurs="0" maxOccurs="unbounded" name="args">
        <xs:annotation>
          <xs:documentation>List of arguments to define for the script.</xs:documentation>
        </xs:annotation>

        <xs:complexType>
          <xs:sequence>
            <xs:element minOccurs="0" maxOccurs="unbounded" name="arg">
              <xs:annotation>
                <xs:documentation>An individual script variable.</xs:documentation>
              </xs:annotation>

              <xs:complexType>
                <xs:sequence>
                  <xs:element minOccurs="1" name="name" type="xs:string">
                    <xs:annotation>
                      <xs:documentation>The name of the variable to be declared in the script's context.</xs:documentation>
                    </xs:annotation>

                  </xs:element>

                  <xs:element minOccurs="1" name="value" type="xs:string">
                    <xs:annotation>
                      <xs:documentation>The value of the declared varible.</xs:documentation>
                    </xs:annotation>

                  </xs:element>

                </xs:sequence>

              </xs:complexType>

            </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]
modifier-script
    [No Super Types]
Generated using Liquid XML Studio by Liquid Technologies Ltd