Entity type
An Entity type is an NPC’s personality / appearance template — the broad-strokes character archetype. Each NPC has a .type of one of these. Used by Entity role and Control post configs to constrain who can fill what.
Inheritance: dbdata → entitytype.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
.name | string | Display name |
.rawname | string | Raw text entry reference |
.description | string | Description |
.icon | string | Icon id |
Minimal datatype — just localization + icon.
Vanilla entity types
Section titled “Vanilla entity types”(Verified types vary by DLC; check vanilla libraries/entitytypes.xml for the full list.) Common examples include:
entitytype.civilianentitytype.militaryentitytype.aipilotentitytype.engineerentitytype.shadyguyentitytype.passenger
Common patterns
Section titled “Common patterns””Read an NPC’s entity type”
Section titled “”Read an NPC’s entity type””<do_if value="$npc.type == entitytype.military"> <!-- this NPC is military — treat differently --></do_if>.type is on Entity / NPC.
”Filter NPCs by type”
Section titled “”Filter NPCs by type””<do_for_each name="$npc" in="$Station.crew"> <do_if value="$npc.type == entitytype.civilian"> <!-- civilian NPC --> </do_if></do_for_each>Common gotchas
Section titled “Common gotchas”- ⚠ Entity type is not the same as entity role. Type is the broad archetype (military / civilian); role is the specific job (engineer / pilot / passenger). One NPC has one type but may have a role.
- ⚠ Entity types are db-defined. Mods extending NPCs add types via data files.
Related
Section titled “Related”- NPC —
.typeaccessor. - Entity role —
.typeof role points to entity type. - Control post —
.typeaccessor for compatible NPCs.