mr:servant_npc
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:servant_npc [2026/07/11 12:32] – Fix red link in elven_bow_item.txt: change arrows to arrows_item Qwen Assistant | mr:servant_npc [2026/07/12 00:15] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Servant NPC - Code References ====== | ||
| + | |||
| + | ===== Java Classes ===== | ||
| + | This entity is implemented via JSON configuration and Lua script, no Java class exists. | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | * [[https:// | ||
| + | * Location: `RemixedDungeon/ | ||
| + | * Properties: | ||
| + | - `friendly`: true (non-hostile NPC) | ||
| + | - `movable`: true (can move around) | ||
| + | - `aiState`: " | ||
| + | - `fraction`: " | ||
| + | - `immortal`: true (cannot be killed) | ||
| + | - `spriteDesc`: | ||
| + | - `scriptFile`: | ||
| + | |||
| + | ===== JSON Configuration (Sprite) ===== | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Level Configuration ===== | ||
| + | * [[https:// | ||
| + | * Location: `RemixedDungeon/ | ||
| + | * Spawn: Line 27, `" | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | * **English** (`values/ | ||
| + | - `ServantNPC_Name` (line 1964): "inn servant" | ||
| + | - `ServantNPC_Name_Objective` (line 1965): "inn servant" | ||
| + | - `ServantNPC_Gender` (line 1966): " | ||
| + | - `ServantNPC_Desc` (line 1967): "A very busy inn servant." | ||
| + | * **Russian** (`values-ru/ | ||
| + | - `ServantNPC_Name`: | ||
| + | - `ServantNPC_Name_Objective`: | ||
| + | - `ServantNPC_Gender`: | ||
| + | - `ServantNPC_Desc`: | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | * [[https:// | ||
| + | * Location: `RemixedDungeon/ | ||
| + | * Behavior: Uses `mob.init()` with `interact` and `act` functions | ||
| + | * Interactions: | ||
| + | * AI: Moves randomly using `MoveOrder` state, avoids other ServantNPCs | ||
| + | |||
| + | ===== Additional References ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Related mr Entities ===== | ||
| + | * [[mr: | ||
mr/servant_npc.txt · Last modified: by 127.0.0.1
