User Tools

Site Tools


rpd:drunkard_npc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

rpd:drunkard_npc [2025/12/24 14:39] – Enhance wiki documentation and fix naming inconsistencies mikerpd:drunkard_npc [2025/12/24 14:42] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Drunkard NPC ======
 +
 +{{ rpd:images:drunkardnpc_sprite.png|Drunkard NPC Sprite }}
 +
 +==== Overview ====
 +
 +The Drunkard is an NPC found in the [[rpd:inn|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 (16x16 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 [[rpd:inn|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