Difference between revisions of "Scenario Editing"
Jump to navigation
Jump to search
(Created page with "= Maia Scenario XML Reference = Unofficial documentation of the scenario XML format in Maia (Machine Studios), based on the scenario files shipped with the game. Work in prog...") |
|||
| Line 4: | Line 4: | ||
== Scenario structure == | == Scenario structure == | ||
| − | + | <pre> | |
| − | < | + | <syntax highlight lang="xml"> |
<?xml version="1.0" ?> | <?xml version="1.0" ?> | ||
<scenario> | <scenario> | ||
| Line 15: | Line 15: | ||
</scenario> | </scenario> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| + | </pre> | ||
=== Title === | === Title === | ||
Latest revision as of 11:19, 3 December 2026
Maia Scenario XML Reference
Unofficial documentation of the scenario XML format in Maia (Machine Studios), based on the scenario files shipped with the game. Work in progress.
Scenario structure
<syntax highlight lang="xml">
<?xml version="1.0" ?>
<scenario>
<title><en>Scenario name</en></title>
<world seed="1572" climate="megathermal" size="150" baseName="Base name" colonists="3" type="Standalone" />
<brief><en>Short description.</en></brief>
<info><en></en></info>
<event id="..." ...>...</event>
</scenario>
</syntaxhighlight>
Title
The title of the scenario.
World
| Attribute | Type | Notes |
|---|---|---|
seed
|
integer | Map seed. |
climate
|
megathermal, mesothermal, polar
|
Only climates seen in shipped scenarios; others likely exist. |
size
|
integer | Map size. |
baseName
|
string | Name shown for the base. |
colonists
|
integer | Starting colonist count. |
type
|
Standalone, Campaign
|
Scenario category. |
dayNightKeyframeSet
|
polarNight, volcano, polarTwilight
|
|
lockCapsules
|
boolean | Locks capsules |
tectonics
|
Integer |
Requires
Won't be active before the scenario has passed
<requires>
<en>Chapter Three: Consolidation</en>
</requires>
Research
<research bias="energy">
<lock id="33"/>
</research>
I assume this makes sure you don't research these lock id's. What are the possibilities?
Base
<base>
<room type="11"/>
</base>
Chooses what rooms are in the base? What are those room types?
Room types
| Id | Type |
|---|---|
| 1 | Generic casing but not really |
| 2 | Generic Casing |
| 3 | Living Area |
| 4 | Storage Area |
| 5 | Workshop |
| 6 | Research Lab |
| 7 | Hydroponics |
| 8 | Livestock Containment |
| 9 | Medical |
| 10 | Radiation Containment |
| 11 | Command & Control |
| 12+ | Generic casing but not really. Deleting these makes the game crash. |
Events
| Field | type | Description |
|---|---|---|
id
|
String | Chosen identifier string. Referenced by other events' triggers/failureTrigger attributes. Not interpreted by the engine itself.
|
time
|
Integer | In-game time (seconds) after scenario start when the event fires. Optional; events without time fire only when triggered.
|
Optional fields (all types)
| Field | Type | Description |
|---|---|---|
delay
|
Decimal | Extra delay (seconds) before the event fires, stacked on time or on a trigger.
|
duration
|
Integer | Length of the effect in seconds; only meaningful for timed effect types (weather, earthquakes, meteors). |
triggers
|
String | Fires this event when the referenced event id completes. |
Event types
| Type | Notes |
|---|---|
missionWin
|
Ends the mission in victory. |
missionFail
|
Ends the mission in failure. |
earthquake
|
Starts an earthquake. |
landing
|
Triggers a landing event. |
meteor
|
Meteor shower |
impact
|
Meteor impact; Not sure what the difference is with meteor. |
snow
|
Snow weather. |
ash
|
Ash fall weather. |
hurricane
|
Hurricane weather. |
flare
|
Solar flare. |
migration
|
Triggers a fauna migration event. |
colonistFall
|
A colonist falls (accident/injury); For some reason the colonist falls at exactly X:129 and Y:881.
|
enableLanders
|
Re-enables landing capsules. |
disableLanders
|
Disables landing capsules. |
buildAll
|
Builds something automatically. |
fadeOut
|
Screen fade. |
endChoice
|
Ends a choice sequence. |
Tutorial types
These appear only in the tutorial and control UI highlighting/camera:
| Type | Notes |
|---|---|
enableUI
|
Re-enables the player UI. |
disableUI
|
Disables the player UI (with time).
|
highlightInfoModeSelection
|
Highlights an info mode button. |
highlightIMPSelection
|
Highlights the IMP button. |
highlightRoomPlacement
|
Highlights room placement mode. |
highlightObjectPlacement
|
Highlights object placement |
highlightColonistSelection
|
Highlights colonist selection. |
highlightWarningSelection
|
Highlights the warning panel. |
moveTutorialCamera
|
Moves the camera; often chained in sequences. |
createTutorialDigOrders
|
Creates scripted dig orders. |
Event details
Generic
| Detail | Used with |
|---|---|
<email><en>…</en></email>
|
Puts an email icon on the screen with the text in en
|
<narration soundPath="" textSound="True"><en>…</en></narration>
|
Shows the text immediately on screen |
Objectives
Fields
| Field | Type | Description |
|---|---|---|
type
|
String | Objective behaviour; see below. |
item
|
Integer | Item/room/research id: see below. |
amount
|
Integer | Quantity required. |
timeLimit
|
Integer | Seconds allowed before failureTrigger fires.
|
triggers
|
String | Event id to fire on completion. |
triggersAdditional
|
String | A second event id to fire on completion. |
failureTrigger
|
String | Event id (usually missionFail) to fire on timeout.
|
requirePreviousObjective
|
Boolean | Must complete after the previous objective. |
requiresPrevious
|
Boolean | What's the difference with requirePreviousObjective
|
hidden
|
Boolean | Objective not shown to the player? |
positionX, positionZ
|
Integer | Constrains where the item must be built. |
Objective types
Mechanical / campaign types:
| Type | Description |
|---|---|
buildItem
|
Build an item. |
buildRoom
|
Build a room. |
placeItem
|
Place an item. What's the difference with buildItem?
|
placeRoom
|
Place a room. What's the difference with buildRoom?
|
moveItem
|
Move an item. |
haveFood
|
Reach amount of stored food.
|
haveStoredEnergy
|
Reach amount of stored energy.
|
haveResearch
|
Reach amount of completed research.
|
haveResearchPerk
|
Research the perk with id item.
|
haveDataEcological
|
Collect amount MB of ecological data.
|
waitTimer
|
Wait timeLimit seconds.
|
sampleMeteor
|
Sample amount meteor debris.
|
annoyPlayer
|
Nudge the player (used before missionWin events).
|
Tutorial-only types:
| Type | Description |
|---|---|
cameraMove
|
Move the camera. |
middleButtonRotate
|
Middle-button camera rotation. |
mouseScroll
|
Mouse wheel zoom. |
selectInfoMode
|
Open info mode. |
selectIMP
|
Open the IMP. |
selectRoomMode
|
Open room build mode. |
selectItemMode
|
Open item build mode. |
selectManifest
|
Open the manifest. |
selectColonist
|
Select a colonist. |
selectWarning
|
Select a warning. |
cycleItem
|
Cycle between buildable items. |
placeDigOrder
|
Place amount dig orders.
|
annoyUser
|
Attention-getter that nudges the player until they act; usually paired with a triggers pointing at a highlight/enableUI event, plus requirePreviousObjective.
|
Object Id's
Retrieved from "http://maiawiki.com/index.php?title=Console&oldid=1221"