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 |
|---|---|---|---|
killed |
lvalueexpression |
no | not declared |
module |
lvalueexpression |
no | not declared |
surfaceelement |
lvalueexpression |
no | not declared |
libraries/common.xsd
| Attribute | Schema type | Required | Default / fixed |
|---|---|---|---|
sequence |
lvalueexpression |
yes | not declared |
removed |
lvalueexpression |
no | not declared |
cost |
lvalueexpression |
no | not declared |
libraries/common.xsd
| Attribute | Schema type | Required | Default / fixed |
|---|---|---|---|
context |
lvalueexpression |
yes | not declared |
position |
lvalueexpression |
yes | not declared |
room |
lvalueexpression |
no | not declared |
tags |
lvalueexpression |
no | not declared |
libraries/common.xsd
| Attribute | Schema type | Required | Default / fixed |
|---|---|---|---|
total |
lvalueexpression |
no | not declared |
hullshield |
lvalueexpression |
no | not declared |
hullonly |
lvalueexpression |
no | not declared |
shieldonly |
lvalueexpression |
no | not declared |
hullnoshield |
lvalueexpression |
no | not declared |
shielddisruption |
lvalueexpression |
no | not declared |
libraries/common.xsd
| Attribute | Schema type | Required | Default / fixed |
|---|---|---|---|
trader |
lvalueexpression |
no | not declared |
tradepartner |
lvalueexpression |
no | not declared |
libraries/diplomacy.xsd
| Attribute | Schema type | Required | Default / fixed |
|---|---|---|---|
text |
xs:string |
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.