rpd:drunkard_npc
Table of Contents
Drunkard NPC
Overview
The Drunkard is an NPC found in the Inn level of Remixed Dungeon. The NPC is a regular customer at the inn, perpetually in a state of intoxication.
Description
- Name: Drunkard
- Gender: Masculine
- Description: Regular inn customer in natural state
- Faction: Neutral
- Status: Immortal and passive - does not engage in combat
- Mobility: Immovable (stationary)
- AI State: Passive
- Base Speed: 0 (immobile)
- Sprite: town_townsfolk_drunkard.png (16×16 pixels)
Behavior
When interacted with, the Drunkard randomly says one of four possible phrases:
- “MOR BOOZ PLEAS!”
- “Who neids water when yau hav beir”
- “This beir tastes lik dirt”
- “Zzzzzz…”
The NPC automatically enters a sleeping state when active.
Location
- Found in the Inn level (Inn_2021_03.json)
- Also referenced in Tiled map (Inn.tmx)
Implementation
- Script: Drunkard NPC is controlled by a Lua script (scripts/npc/Drunkard.lua)
- Configuration: Mob properties defined in mobsDesc/DrunkardNPC.json
- Sprite: Animated with 9 frames for idle state, with a 5 FPS animation speed
- Sprite Configuration: spritesDesc/DrunkardNPC.json
Notes
- The Drunkard NPC is unique in that it has no combat function and is purely for flavor
- Other NPCs, such as the Inn Servant, may comment about the Drunkard with the phrase: “This drunkard drives me mad!”
- The NPC cannot be moved or removed from the game once placed
rpd/drunkard_npc.txt · Last modified: by 127.0.0.1
