Meaning#
xs:float: An XML Schema single-precision number. An attribute may impose additional units or ranges.
An XSD type constrains XML, rather than declaring a Lua return or the payload type of event.param. A valid schema value does not prove a successful game effect.
Schema structure#
W3C XML Schema
| Property | Value |
|---|---|
| Construction | builtin |
restriction narrows a base type; union accepts one of its branches; list describes whitespace-separated items. Enumeration values in one restriction are alternatives. Pattern syntax is XML Schema regex, not Lua patterns or JavaScript RegExp. Constraints inherited from the base type still apply.
Example and result#
0.5What happens: 0.5 is a numeric literal; its suitability for a game action is a separate requirement.
Object and group variables must already exist in the correct MD / AI context. These are learning fragments, not a complete runnable mission.
Used by#
| Element | Attribute | Schema |
|---|---|---|
level |
eventbonus |
libraries/diplomacy.xsd |
level |
score |
libraries/gamestarts.xsd |
linear |
startvalue |
libraries/effects.xsd |
linear |
sustainvalue |
libraries/effects.xsd |
linear |
endvalue |
libraries/effects.xsd |
linear |
attackduration |
libraries/effects.xsd |
linear |
sustainduration |
libraries/effects.xsd |
linear |
releaseduration |
libraries/effects.xsd |
position |
x |
libraries/effects.xsd |
position |
y |
libraries/effects.xsd |
position |
z |
libraries/effects.xsd |
position |
x |
libraries/libraries.xsd |
position |
y |
libraries/libraries.xsd |
position |
z |
libraries/libraries.xsd |
position |
yaw |
libraries/libraries.xsd |
position |
pitch |
libraries/libraries.xsd |
position |
roll |
libraries/libraries.xsd |
position |
x |
libraries/objectspawnpoints.xsd |
position |
y |
libraries/objectspawnpoints.xsd |
position |
z |
libraries/objectspawnpoints.xsd |
position |
x |
libraries/parameters.xsd |
position |
y |
libraries/parameters.xsd |
position |
z |
libraries/parameters.xsd |
position |
x |
libraries/region_definitions.xsd |
position |
y |
libraries/region_definitions.xsd |
position |
z |
libraries/region_definitions.xsd |
position |
x |
libraries/regionyields.xsd |
position |
y |
libraries/regionyields.xsd |
position |
z |
libraries/regionyields.xsd |
rotation |
pitch |
libraries/effects.xsd |
rotation |
yaw |
libraries/effects.xsd |
rotation |
roll |
libraries/effects.xsd |
rotation |
yaw |
libraries/objectspawnpoints.xsd |
rotation |
pitch |
libraries/objectspawnpoints.xsd |
rotation |
roll |
libraries/objectspawnpoints.xsd |
rotation |
yaw |
libraries/parameters.xsd |
rotation |
pitch |
libraries/parameters.xsd |
rotation |
roll |
libraries/parameters.xsd |
rotation |
min |
libraries/parameters.xsd |
rotation |
max |
libraries/parameters.xsd |
rotation |
yaw |
libraries/region_definitions.xsd |
rotation |
pitch |
libraries/region_definitions.xsd |
rotation |
roll |
libraries/region_definitions.xsd |
rotation |
yaw |
libraries/regionyields.xsd |
rotation |
pitch |
libraries/regionyields.xsd |
rotation |
roll |
libraries/regionyields.xsd |
select |
cooldown |
libraries/objectspawnrules.xsd |
variation |
min |
libraries/parameters.xsd |
variation |
max |
libraries/parameters.xsd |