API ReferenceGE ExtensionseditormissionEditor
Mission Editor - Conditions
Sub-editor module for configuring mission start and visibility conditions. Supports nested boolean logic trees with mission-based, progress-based, and custom condition types.
Sub-editor module for configuring mission start and visibility conditions. Supports nested boolean logic trees with mission-based, progress-based, and custom condition types.
Class Methods
| Method | Signature | Description |
|---|---|---|
C:init | (missionEditor, field, name) | Loads all condition types from filesystem |
C:setMission | (mission) | Binds to a mission |
C:getMissionIssues | (m) → issues[] | Validates conditions (missing, set to "never") |
C:draw | () | Renders the condition tree ImGui UI |
Condition Types
Loaded dynamically from /lua/ge/extensions/gameplay/missions/unlocks/conditions/*.lua:
| Display Type | Description |
|---|---|
| Mission-based | Requires another mission to be completed |
| Mission + Progress Key | Requires specific progress key from another mission |
| Nested (and/or/not) | Boolean combinators for complex logic |
| Custom types | Extensible via condition Lua files |
Condition Tree Structure
{
type = "and", -- or "or", "not", "missionComplete", "never", etc.
nested = { -- for combinators
{ type = "missionComplete", missionId = "..." },
{ type = "progressKey", missionId = "...", progressKey = "default" },
}
}Used For
startCondition- When the mission becomes startablevisibleCondition- When the mission appears in the mission list
UI Features
- Searchable mission ID dropdown
- Nested depth indentation with add/remove buttons
- Progress key text input with tooltip hints
-- Two instances are created: one for startCondition, one for visibleCondition
local startCond = require('conditions')('missionEditor', 'startCondition', 'Start Condition')
local visCond = require('conditions')('missionEditor', 'visibleCondition', 'Visible Condition')Dependencies
gameplay/missions/unlocks/conditions/*.lua- Condition implementationsgameplay_missions_missions- Mission ID listeditor/util/searchUtil- Searchable combo widget
See Also
- Mission Editor - Additional Attributes - Related reference
- Mission Editor - Career Setup - Related reference
- Mission Editor - Dev Notes - Related reference
- World Editor Guide - Guide
Mission Editor - Career Setup
Sub-editor module for configuring mission career integration: career/freeroam visibility, star rewards, attribute rewards (money, vouchers, branch XP), and skill requirements.
Mission Editor - Dev Notes
Minimal sub-editor module for mission developer notes and the dev-only mission flag.