rpd:lua_scripts
Table of Contents
Lua Scripts
Overview
Lua scripts provide a way to implement custom mechanics, behaviors, and content in Remixed Dungeon without requiring Java code changes.
Script Locations
RemixedDungeon/src/main/assets/scripts/actors/- Actor behavior scriptsRemixedDungeon/src/main/assets/scripts/ai/- AI behavior scriptsRemixedDungeon/src/main/assets/scripts/buffs/- Status effect scriptsRemixedDungeon/src/main/assets/scripts/items/- Custom item functionalityRemixedDungeon/src/main/assets/scripts/lib/- Utility librariesRemixedDungeon/src/main/assets/scripts/mobs/- Custom mob behaviorsRemixedDungeon/src/main/assets/scripts/npc/- NPC scriptsRemixedDungeon/src/main/assets/scripts/objects/- Level objects and featuresRemixedDungeon/src/main/assets/scripts/services/- Game servicesRemixedDungeon/src/main/assets/scripts/spells/- Spell mechanicsRemixedDungeon/src/main/assets/scripts/startup/- Initialization scriptsRemixedDungeon/src/main/assets/scripts/stats/- Equipment statsRemixedDungeon/src/main/assets/scripts/stuff/- Various game componentsRemixedDungeon/src/main/assets/scripts/traps/- Trap mechanicsRemixedDungeon/src/main/assets/scripts/userServices/- User service implementations
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:
desc()function to define the script's propertiescast()or other action functions to implement behavior- 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
rpd/lua_scripts.txt · Last modified: by 127.0.0.1
