Return value#
| Type | Meaning |
|---|---|
none (MD action) |
Types describe the declared interface, not proof of a successful game effect. |
XML attributes#
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:select@scale |
no | not declared |
seed |
fixedrandomseed |
no | not declared |
autoadvanceseed |
autoadvancerandomseed |
no | not declared |
weight |
selectionweight |
no | not declared |
comment |
comment |
no | not declared |
libraries/common.xsd
| Attribute | Schema type | Required | Default / fixed |
|---|---|---|---|
faction |
factionexprlookup |
no | not declared |
tags |
expression |
no | not declared |
size |
shipsizeclasslookup |
no | not declared |
required |
boolean |
no | not declared |
comment |
comment |
no | not declared |
libraries/common.xsd
| Attribute | Schema type | Required | Default / fixed |
|---|---|---|---|
faction |
factionexprlookup |
no | not declared |
tags |
expression |
no | not declared |
race |
raceexprlookup |
no | not declared |
required |
boolean |
no | not declared |
comment |
comment |
no | not declared |
libraries/common.xsd
| Attribute | Schema type | Required | Default / fixed |
|---|---|---|---|
faction |
factionexprlookup |
no | not declared |
race |
raceexprlookup |
no | not declared |
tags |
expression |
no | not declared |
ware |
expression |
no | not declared |
required |
boolean |
no | not declared |
comment |
comment |
no | not declared |
libraries/drops.xsd
| Attribute | Schema type | Required | Default / fixed |
|---|---|---|---|
weight |
selectionweight |
no | not declared |
libraries/drops.xsd
| Attribute | Schema type | Required | Default / fixed |
|---|---|---|---|
macro |
namestring |
yes | not declared |
min |
xs:nonNegativeInteger |
no | not declared |
max |
xs:positiveInteger |
no | not declared |
exact |
xs:positiveInteger |
no | not declared |
weight |
selectionweight |
no | not declared |
libraries/drops.xsd
| Attribute | Schema type | Required | Default / fixed |
|---|---|---|---|
timeline |
namestring |
no | not declared |
audiolog |
namestring |
no | not declared |
weight |
selectionweight |
no | not declared |
libraries/effects.xsd
| Attribute | Schema type | Required | Default / fixed |
|---|
libraries/effects.xsd
| Attribute | Schema type | Required | Default / fixed |
|---|---|---|---|
selection |
selectionlookup |
no | not declared |
libraries/objectspawnrules.xsd
| Attribute | Schema type | Required | Default / fixed |
|---|---|---|---|
macro |
objectmacro |
no | not declared |
drop |
drop |
no | not declared |
weight |
xs:nonNegativeInteger |
no | not declared |
cooldown |
xs:float |
no | not declared |
libraries/regionobjectgroups.xsd
| Attribute | Schema type | Required | Default / fixed |
|---|---|---|---|
macro |
unknown |
yes | not declared |
weight |
unknown |
no | not declared |
libraries/sound_library.xsd
| Attribute | Schema type | Required | Default / fixed |
|---|---|---|---|
start |
unknown |
no | not declared |
loop |
unknown |
no | not declared |
end |
unknown |
no | not declared |
startduration |
unknown |
no | not declared |
loopduration |
unknown |
no | not declared |
endduration |
unknown |
no | not declared |
weight |
xs:integer |
no | not declared |
index |
xs:integer |
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.