mr:maze_shadow_mob
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| mr:maze_shadow_mob [2025/12/25 18:23] – auto lint fix Mikhael | mr:maze_shadow_mob [2026/03/24 04:23] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Maze Shadow Mob - Code References ====== | ||
| + | |||
| + | {{ rpd: | ||
| + | |||
| + | **Maze Shadow** is a mob entity implemented primarily through Lua scripting with JSON configuration. | ||
| + | |||
| + | ===== Entity Kind ===== | ||
| + | The entity kind for this mob is: < | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | Configuration file: [[https:// | ||
| + | |||
| + | Key configuration properties: | ||
| + | * **defenseSkill**: | ||
| + | * **attackSkill**: | ||
| + | * **experience**: | ||
| + | * **maxLevel**: | ||
| + | * **damageMin**: | ||
| + | * **damageMax**: | ||
| + | * **baseSpeed**: | ||
| + | * **attackDelay**: | ||
| + | * **hitPoints**: | ||
| + | * **name**: Shadow_Name (string resource key) | ||
| + | * **description**: | ||
| + | * **spriteDesc**: | ||
| + | * **canBePet**: | ||
| + | * **walkingType**: | ||
| + | * **scriptFile**: | ||
| + | * **aiState**: | ||
| + | |||
| + | ===== Lua Script Implementation ===== | ||
| + | Script file: [[https:// | ||
| + | |||
| + | The mob uses a custom interact function that swaps positions with the player: | ||
| + | <code lua> | ||
| + | local RPD = require " | ||
| + | local mob = require" | ||
| + | |||
| + | return mob.init({ | ||
| + | interact = function(self, | ||
| + | local ownPos | ||
| + | local newPos | ||
| + | |||
| + | self: | ||
| + | self: | ||
| + | |||
| + | chr: | ||
| + | chr: | ||
| + | end | ||
| + | }) | ||
| + | </ | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | String resource keys used: | ||
| + | * <code xml> | ||
| + | * <code xml> | ||
| + | * <code xml> | ||
| + | * <code xml> | ||
| + | |||
| + | Example English strings (from values/ | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Sprite Configuration ===== | ||
| + | Sprite description: | ||
| + | |||
| + | Wiki image: < | ||
| + | |||
| + | ===== Related Entities ===== | ||
| + | * Similar mob: [[mr: | ||
| + | * Similar mob: [[mr: | ||
| + | |||
| + | {{tag> mr mob lua_script json_config}} | ||
