Meaning#

xs:integer: An XML Schema integer without a fractional part. Engine ranges depend on the attribute.

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
Base type xs:decimal
Constraint Value
fractionDigits 0

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#

TEXT
12

What happens: 12 is an integer; 1.5 is not.

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 budget libraries/gamestarts.xsd
select weight libraries/sound_library.xsd
select index libraries/sound_library.xsd
speak priority libraries/voicesequences.xsd

All schema types · Lua / MD value types