Return value#
| Type | Meaning |
|---|---|
none (MD action) |
Types describe the declared interface, not proof of a successful game effect. |
XML attributes#
libraries/aiscripts.xsd
| Attribute | Schema type | Required | Default / fixed |
|---|---|---|---|
sinceversion |
xs:positiveInteger |
yes | not declared |
state |
orderstatelookup |
no | not declared |
early |
boolean |
no | not declared |
setvariable |
boolean |
no | not declared |
condition |
expression |
no | not declared |
value |
expression |
yes | not declared |
comment |
comment |
no | not declared |
libraries/aiscripts.xsd
| Attribute | Schema type | Required | Default / fixed |
|---|---|---|---|
sinceversion |
xs:positiveInteger |
yes | not declared |
early |
boolean |
no | not declared |
comment |
comment |
no | not declared |
libraries/md.xsd
| Attribute | Schema type | Required | Default / fixed |
|---|---|---|---|
sinceversion |
xs:positiveInteger |
yes | not declared |
state |
inline:patch@state |
no | not declared |
comment |
comment |
no | 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.