User Tools

Site Tools


en:rpd:drunkard_npc

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:rpd:drunkard_npc [2026/02/22 22:34] – Wiki standards compliance: Fix broken links, incorrect stats, and missing references Qwen Assistanten:rpd:drunkard_npc [2026/02/22 22:35] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Drunkard NPC ======
 +
 +{{ rpd:images:drunkard_npc_mob.png|Drunkard NPC Sprite }}
 +
 +==== Overview ====
 +
 +The Drunkard is an NPC found in the [[en: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 from the string resources:
 +
 +  * `Drunkard_Phrase_1` - "MOR BOOZ PLEAS!"
 +  * `Drunkard_Phrase_2` - "Who neids water when yau hav beir"
 +  * `Drunkard_Phrase_3` - "This beir tastes lik dirt"
 +  * `Drunkard_Phrase_4` - "Zzzzzz..."
 +
 +The NPC automatically enters a sleeping state when active.
 +
 +==== Location ====
 +
 +  * Found in the [[en:rpd:inn|Inn]] level (Inn_2021_03.json)
 +  * Also referenced in Tiled map (Inn.tmx)
 +
 +==== Implementation ====
 +
 +  * **Lua Script**: Drunkard NPC behavior is controlled by `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`
 +
 +==== Code References ====
 +
 +  * Lua Script: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/scripts/npc/Drunkard.lua|Drunkard.lua]]
 +  * JSON Config: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/mobsDesc/DrunkardNPC.json|DrunkardNPC.json]]
 +  * Sprite Config: [[https://github.com/NYRDS/remixed-dungeon/blob/master/RemixedDungeon/src/main/assets/spritesDesc/DrunkardNPC.json|DrunkardNPC.json (sprite)]]
 +
 +==== 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
 +
 +{{tag> rpd npcs inn neutral }}