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 |
|---|---|---|---|
chance |
expression |
no | not declared |
weight |
expression |
no | not declared |
comment |
comment |
no | not declared |
name |
lvaluename |
no | not declared |
groupname |
groupname |
no | not declared |
macro |
macro |
yes | not declared |
constructionplan |
expression |
no | not declared |
zone |
expression |
no | not declared |
sector |
expression |
no | not declared |
owner |
faction |
yes | not declared |
state |
componentstateexprlookup |
no | not declared |
missioncue |
expression |
no | not declared |
rawname |
expression |
no | not declared |
rawdescription |
expression |
no | not declared |
method |
buildmethodlookup |
no | not declared |
encyclopedia |
booleanexpression |
no | not declared |
originalproduct |
expression |
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.