mr:drunkard_npc
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:drunkard_npc [2026/08/23 08:45] – Wiki maintenance: fix issues on 5 random pages (spirit_of_pain, drunkard, mage_class ru, blacksmith, paralysis_arrow) Bot | mr:drunkard_npc [2026/08/23 08:47] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Drunkard NPC - Code References ====== | ||
| + | |||
| + | {{ rpd: | ||
| + | |||
| + | ===== Entity Kind ===== | ||
| + | drunkard | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | * Mob Config: [[https:// | ||
| + | * Sprite Config: [[https:// | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Code Implementation ===== | ||
| + | This NPC is defined through JSON configuration and Lua script: | ||
| + | |||
| + | * **baseSpeed**: | ||
| + | * **sprite**: mobs/ | ||
| + | * **friendly**: | ||
| + | * **movable**: | ||
| + | * **aiState**: | ||
| + | * **immortal**: | ||
| + | * **fraction**: | ||
| + | |||
| + | ===== Sprite Animation ===== | ||
| + | * **idle**: 5 FPS, looped, frames [0, | ||
| + | * **run**: 1 FPS, looped, frames [0,0,0] (not used) | ||
| + | * **attack**: 1 FPS, not looped, frames [0,0,0] (not used) | ||
| + | * **die**: 1 FPS, not looped, frames [0,0,0] (not used) | ||
| + | * **bloodColor**: | ||
| + | |||
| + | ===== Lua Script Behavior ===== | ||
| + | * **interact**: | ||
| + | * **act**: Sets state to " | ||
| + | |||
| + | ===== Location ===== | ||
| + | * Found in the [[en: | ||
| + | * Also referenced in Tiled map (Inn.tmx) | ||
| + | |||
| + | {{tag> mr npcs inn neutral}} | ||
mr/drunkard_npc.txt · Last modified: by 127.0.0.1
