User Tools

Site Tools


en:rpd:servant_npc

Servant NPC

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

See Also

en/rpd/servant_npc.txt · Last modified: by 127.0.0.1