en:rpd:lua_scripts
Differences
This shows you the differences between two versions of the page.
| en:rpd:lua_scripts [2026/01/01 19:45] – namespace move Mike | en:rpd:lua_scripts [2026/01/01 19:47] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Lua Scripts ====== | ||
| + | {{ rpd: | ||
| + | |||
| + | Lua Scripts are used in Remixed Dungeon to implement custom game logic and behaviors. | ||
| + | |||
| + | ==== Overview ==== | ||
| + | Lua scripts provide a way to implement custom mechanics, behaviors, and content in Remixed Dungeon without requiring Java code changes. | ||
| + | |||
| + | ==== Script Locations ==== | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | ==== Script Capabilities ==== | ||
| + | * Custom item functionality and effects | ||
| + | * New mob AI behaviors and mechanics | ||
| + | * Spell implementations | ||
| + | * Buff and debuff logic | ||
| + | * Trap effects and triggers | ||
| + | * NPC dialogues and behaviors | ||
| + | * Level object interactions | ||
| + | |||
| + | ==== Script Structure ==== | ||
| + | Lua scripts typically follow a specific structure with required functions: | ||
| + | * '' | ||
| + | * '' | ||
| + | * Resource loading and initialization | ||
| + | |||
| + | ==== Integration ==== | ||
| + | Scripts are integrated into the game engine and can interact with Java classes through the RPD library. | ||
| + | |||
| + | ==== Benefits ==== | ||
| + | * Rapid prototyping without Java compilation | ||
| + | * Easier modding support | ||
| + | * Dynamic behavior changes | ||
| + | * Simplified custom content creation | ||
| + | |||
| + | {{tag> rpd system lua scripts modding}} | ||
