Lua scripts provide a way to implement custom mechanics, behaviors, and content in Remixed Dungeon without requiring Java code changes.
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 implementationsLua scripts typically follow a specific structure with required functions:
desc() function to define the script's propertiescast() or other action functions to implement behaviorScripts are integrated into the game engine and can interact with Java classes through the RPD library.