Definition Type Element
Name apply-damage
Abstract False
MinOccurs 0
MaxOccurs unbounded
Documentation This clause tells the program where to look when an expression of type "damage" is evaluated.
XSD Schema Character Sheet Definition.xsd
XSD Schema Diagram
XSD Schema Code
<xs:element minOccurs="0" maxOccurs="unbounded" name="apply-damage" >
  <xs:annotation>
    <xs:documentation>This clause tells the program where to look when an expression of type &quot;damage&quot; is evaluated.</xs:documentation>
  </xs:annotation>

  <xs:complexType>
    <xs:sequence>
      <xs:element minOccurs="0" name="hp-type" type="xs:string">
        <xs:annotation>
          <xs:documentation>The ID of the field whose value will be adjusted when an expression of type &quot;damage&quot; is evaluated.</xs:documentation>
        </xs:annotation>

      </xs:element>

      <xs:element minOccurs="0" maxOccurs="unbounded" name="reduced-by">
        <xs:annotation>
          <xs:documentation>This clause allows you to tell the program where to look for information that might reduce the overall amount of adjustment applied to the &quot;hp-type&quot; field.</xs:documentation>
        </xs:annotation>

        <xs:complexType>
          <xs:sequence>
            <xs:element minOccurs="0" name="field" type="xs:string">
              <xs:annotation>
                <xs:documentation>The ID of the field that contains information about reducing the amount of damage potentially applied.</xs:documentation>
              </xs:annotation>

            </xs:element>

            <xs:element minOccurs="0" default="false" name="reduce-on-use" type="xs:boolean">
              <xs:annotation>
                <xs:documentation>Flag indicating that the value retrieved from the &quot;field&quot; field should, itself, be reduced by the amount of reduction applied.

For example, let's imagine that an Icon has a magical item that absorbs up to one hundred points of damage before turning to ash.  Every time this item is used, the &quot;reduce-on-use&quot; flag indicates to the program that it should subtract the amount of reduced damage from the value contained in the &quot;field&quot; field.
</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]
apply-damage
    [No Super Types]
Generated using Liquid XML Studio by Liquid Technologies Ltd