Attributes¶
Attribute helpers for loading, registering, and setting up character attributes.
Overview
The attributes library centralizes shared attribute behavior under `lia.attribs`. It stores registered attribute definitions, loads attribute files from a directory, registers attribute metadata, resolves localized names and descriptions, and runs server-side setup callbacks for character attributes.
lia.attribs.loadFromDir(directory)View Source
lia.attribs.register(uniqueID, data)View Source
Purpose
Registers an attribute definition and stores it in the attribute list.
Realm
Shared
Parameters
string uniqueID The unique identifier used to store and reference the attribute.
table data The attribute data to merge into the registered attribute definition.
Returns
table The registered attribute table.
Example Usage
lia.attribs.register("strength", {
name = "strength",
desc = "strengthDesc"
})