Skip to main content
Server Optional module. Proxied to ug-core. ug-core stores and loads characters. A multicharacter resource such as ug-multicharacter shows the menu and calls this API.
Without this module, players are loaded at join and there is no character data.

GetAll

UgCharacter[]
Ordered by creation.

Create

string
required
1 to 64 characters.
table
JSON data, up to 16 KB encoded.
Invalid input returns invalid_args instead of raising, since it usually comes from a player. Returns no_permission when maxCharacters is reached or Characters:BeforeCreate cancelled.

Load

Loads an owned character. A loaded character is unloaded first. Sets ug-core:Loaded, restores death state when persisted, and loads accounts, job and gang.

Unload

Saves and unloads. The player goes back to not loaded and alive.

Delete

Soft delete. The loaded character cannot be deleted. Characters:BeforeDelete MAY cancel.

GetActive

Example