Return value#

Type Meaning
none (MD action) Types describe the declared interface, not proof of a successful game effect.

Types and methods

XML attributes#

How schema types work

libraries/common.xsd

Attribute Schema type Required Default / fixed
exact expression no not declared
list expression no not declared
min expression no not declared
max expression no not declared
profile profilelookup no not declared
scale inline:level@scale no not declared
seed fixedrandomseed no not declared
autoadvanceseed autoadvancerandomseed no not declared
faction factionexprlookup no not declared
comment comment no not declared

libraries/diplomacy.xsd

Attribute Schema type Required Default / fixed
value xs:int yes not declared
name xs:string yes not declared
comment comment no not declared

libraries/diplomacy.xsd

Attribute Schema type Required Default / fixed
value xs:int yes not declared
name xs:string yes not declared
icon xs:string yes not declared
eventbonus xs:float yes not declared
comment comment no not declared

libraries/gamestarts.xsd

Attribute Schema type Required Default / fixed
score xs:float no not declared
budget xs:integer no not declared
comment comment no not declared

libraries/parameters.xsd

Attribute Schema type Required Default / fixed
value xs:unsignedInt yes not declared
name xs:string yes not declared

An MD action can write to a named variable or change the world. This is not a Lua return value. The output variable depends on the action and its attributes.

Example and context#

See language basics, types and methods and Lua / MD events. Examples there are independent learning examples. No project source files or private implementation fragments are distributed with this reference.