kLoOge.Werks Definition File Documentation v3.3.3 | Generated using Liquid XML Studio by Liquid Technologies Ltd |
Tuesday, April 07, 2009 |
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 |
![]() ![]() |
|
![]() |
|
![]() ![]() |
|
<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 "throw." For example, you could set up a die called "3d6" and set the number of sides to six and "how-many" 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 "how-many" 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 "$L/2" to its expression. You can use "add-to-roll" to do this. When expanded, the net result might look something like "d20$L/2" wherever the die is referenced.</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> |
![]() ![]() |
|||||||||
|
|||||||||
![]() ![]() |
|||||||||
[No Sub Types] dice [No Super Types] |
|||||||||
Generated using Liquid XML Studio by Liquid Technologies Ltd |