Mission group
A Mission group is a grouping for related missions — used by the mission framework to bundle thematically related content. Each group has a primary and enemy faction.
Inheritance: dbdata → missiongroup.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
.id | string | Group id |
.name | string | Display name |
.rawname | string | Raw text entry reference |
.description | string | Group description |
.faction | faction | Primary faction (the “giver” side) |
.enemy | faction | Enemy faction (the “target” side) |
That’s the complete datatype. Mission groups are thin db references — modders interact with them when their custom missions need a thematic bucket.
Common patterns
Section titled “Common patterns””Filter missions by group"
Section titled “”Filter missions by group"”<do_if value="$cue.missiongroup == missiongroup.argonbuccaneers"> <!-- mission belongs to that group --></do_if>"Read enemy faction for combat context”
Section titled “"Read enemy faction for combat context””<set_value name="$enemy" exact="$group.enemy"/>
<find_ship_by_true_owner name="$Targets" space="player.galaxy" faction="$enemy" multiple="true"/>Common gotchas
Section titled “Common gotchas”- ⚠ Mission groups are db-defined. Add new groups via data files; modders can’t create them at runtime.
- ⚠
.enemymay be null. Some groups are positive-only (rescue, transport) without an enemy. Always null-check before dereferencing. - ⚠ Group ID is the canonical reference. Use
missiongroup.Xrather than ad-hoc string comparison.
Related
Section titled “Related”- Faction —
.factionand.enemyaccessors. - Mission framework —
gm_*andrml_*cues use mission groups for thematic clustering.