StrSheet_Npc
Version support
Section titled “Version support”| Version | Status |
|---|---|
| v92 | Full |
| v90 | - |
| v86 | - |
StrSheet_Npc.xml stores player-facing strings: display names for NPCs shown in the game client.
DSL support
Section titled “DSL support”Entity: npcStrings
Operations: create, update, delete, upsert
Quick recipes
Section titled “Quick recipes”Create
Section titled “Create”spec: version: "1.0" schema: v92
npcStrings: create: - id: 1001 string: "Mysterious Merchant"Create multiple
Section titled “Create multiple”spec: version: "1.0" schema: v92
npcStrings: create: - id: 1001 string: "Mysterious Merchant" - id: 1002 string: "Guard Captain"Update
Section titled “Update”spec: version: "1.0" schema: v92
npcStrings: update: - id: 1001 changes: string: "Legendary Merchant"Upsert
Section titled “Upsert”Creates the entry if it doesn’t exist, or updates it if it does.
spec: version: "1.0" schema: v92
npcStrings: upsert: - id: 1003 string: "Village Elder"Delete
Section titled “Delete”spec: version: "1.0" schema: v92
npcStrings: delete: - 1001Properties reference
Section titled “Properties reference”| Property | Type | Since | Required | Description |
|---|---|---|---|---|
id | int | v92 | Yes | NPC template ID this string entry belongs to |
string | string | v92 | Yes (create/upsert) | Display name shown to players |
XML structure
Section titled “XML structure”StrSheet_Npc.xml└── StrSheet_Npc (root) └── String (0..∞) @id (required) @stringCommon pitfalls
Section titled “Common pitfalls”- ID matching: The
idhere should match an NPC templateidfrom the NpcTemplate schema to properly link strings to NPCs. - Required on create: The
stringproperty is required when creating or upserting entries. Updates can selectively modify the string value. - Single file: Unlike some other StrSheet types,
StrSheet_Npc.xmlis a single file with no regional variants.