Definition Reference¶
Use this section as the API-style reference for Lilia definition files. Each page follows the same pattern: overview, reference entries, callback details, and complete examples where available.
Lilia Reference
Schema, item, module, and UI definitions in one browseable tree
Start with the definition type you are editing, then use the field and callback entries as a checklist while writing Lua.
Core¶
Attributes
Character stats, creation limits, maximum values, and setup callbacks.
GroupsFactions
Top-level playable organizations, models, loadouts, restrictions, limits, and spawn behavior.
RolesClasses
Faction sub-roles with inherited defaults, whitelist rules, loadouts, and lifecycle callbacks.
ModulesModule Metadata
Author info, dependencies, privileges, network strings, Workshop content, and module lifecycle.
Items¶
Weapons
Weapon class binding, equip state, ammo persistence, and drop behavior.
Outfits
Wearable item metadata, inventory sizing, outfit categories, and PAC data.
PAC3 Outfits
PAC part setup, removal, loadout behavior, and transfer checks.
ArcCW Attachments
Attachment item metadata, equip state, inventory protection, and ArcCW sync behavior.
Stackables
Quantity limits, splitting behavior, and stack metadata.
Aid Items
Medical and support item structure.
Ammo
Ammunition item metadata and inventory presentation.
Books and Notes
Readable item content, descriptions, and models.
Entity Items
World entity bindings and item entity behavior.
Grenades
Throwable weapon item fields, class binding, and death-drop behavior.
URL Items
External URL metadata for web-backed items.
Interface¶
Authoring Pattern¶
| Section | What it answers |
|---|---|
| Overview | What this definition controls and where it fits in the framework. |
| Purpose | What a field or callback changes. |
| When Called | When Lilia reads the field or invokes the callback. |
| Realm | Whether the callback is server, client, or shared. |
| Parameters | The values passed into callbacks. |
| Returns | Expected callback return values. |
| Example | Minimal Lua showing the field or callback in context. |