====== Servant NPC ====== {{ rpd:images:servant_npc_mob.png|Servant NPC }} The **Servant NPC** is an immortal, friendly NPC found in the inn. She is a busy inn servant who wanders around and offers brief dialogue when interacted with. ==== Description ==== The Servant NPC works at the inn and can be found moving around the area. She is immortal and cannot be harmed or killed. When interacted with, she shares one of several phrases about her busy work at the inn. ==== Properties ==== * **Immortal**: Cannot be killed or damaged (`"immortal": true`) * **Mobile**: Moves around with base speed 1 (`"movable": true`, `"baseSpeed": 1`) * **Friendly**: Neutral faction, friendly to the player (`"fraction": "NEUTRAL"`, `"friendly": true`) * **Passive AI**: Non-aggressive behavior (`"aiState": "Passive"`) * **Humanoid**: Uses humanoid sprite and behaviors (`"isHumanoid": true`) ==== Behavior ==== * **Wandering**: Moves randomly around the inn area, selecting new targets periodically * **Dialogue**: When interacted with, says one of four random phrases about inn work * **Immortal**: Cannot be damaged or killed by any means * **Reset Behavior**: Persists through level resets (`"persistOnReset": true` inherited from immortal config) ==== Location ==== * **Inn**: Found in the inn/town area (spawned via Inn_2021_03.json level configuration) ==== Implementation ==== * **JSON Configuration**: `RemixedDungeon/src/main/assets/mobsDesc/ServantNPC.json` * Key properties: `"immortal": true`, `"movable": true`, `"baseSpeed": 1`, `"aiState": "Passive"`, `"fraction": "NEUTRAL"`, `"friendly": true`, `"isHumanoid": true` * **Lua Script**: `scripts/npc/Servant.lua` - Handles dialogue and wandering behavior * **Sprite**: `spritesDesc/ServantNPC.json` * **String Resources**: `ServantNPC_Name` ("inn servant"), `ServantNPC_Desc` ("A very busy inn servant."), `InnServant_Phrase_1` through `InnServant_Phrase_4` ==== Source Code ==== * JSON Config: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/mobsDesc/ServantNPC.json|ServantNPC.json]] * Lua Script: [[https://github.com/NYRDS/remixed-dungeon/blob/master/scripts/npc/Servant.lua|Servant.lua]] * String Resources: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/res/values/strings_all.xml|strings_all.xml]] (ServantNPC_*) ==== See Also ==== * [[en:rpd:immortal_npc|Immortal NPCs]] - Overview of all immortal NPCs * [[en:rpd:innkeeper_npc|Innkeeper NPC]] - The innkeeper who runs the inn * [[en:rpd:npcs|NPCs]] - List of all NPCs in the game {{tag> rpd npcs immortal inn }}