Skip to content

Interactive Looting

A comprehensive looting system that creates searchable container entities throughout the world. Features dynamic entity registration, skill-based access requirements (strength/luck attributes), multi-tiered rarity system (Common/Uncommon/Rare/Legendary/Unique) with weighted probability distribution, intelligent reward allocation with inventory management, customizable container types (cardboard boxes, crates, barrels, lockers, safes), cooldown timers for respawn prevention, audio feedback systems, and seamless integration with the Lilia framework


Generator

Unique identifier passed to lia.loot.registerLoot.
Shown to players for this loot container type.
World model for the loot container entity.
Played when the container is opened/searched.
Base chance value used by the looting system (module-defined meaning; commonly treated as a percent or weight).
Additional timing/chance configuration used by the module (schema/module-defined; keep consistent with other loot definitions).
Each row becomes one entry in skillRequirements ([attribKey] = requiredValue).
Attribute: character attribute key (e.g. strength, luck).
Required: minimum value required to search this container.
Add tiers like Common/Uncommon/Rare/etc with an overall chance and item list.

Generated Code


Changelog

Version 1.0
  • Initial Release