mr:drunkard_npc
Differences
This shows you the differences between two versions of the page.
| mr:drunkard_npc [2026/03/03 01:34] – Fix wiki standards compliance for 5 random pages Qwen Assistant | mr:drunkard_npc [2026/03/03 01:34] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Drunkard NPC - Code References ====== | ||
| + | |||
| + | ===== 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) | ||
mr/drunkard_npc.txt · Last modified: by 127.0.0.1
