Skip to content

sdk.profile

Per-character key/value store on game.storage, plus alarm predicates. Alarms log/callback as before and use the optional native alert sink.

lua
local M = require("sdk.profile")

character

function · character(): string

Returns shared when no character is available.

Returns

TypeSummary
string

path

function · path(name?: string): string

JSON-backed, per-character profile service. Encoded data is subject to the native 2 MiB storage limit and must not contain functions/userdata/threads.

Parameters

NameTypeSummary
namestring

Returns

TypeSummary
string

save

function · save(name: string, data: ProfileValue): Result?, ErrorMessage?

JSON-backed, per-character profile service. Encoded data is subject to the native 2 MiB storage limit and must not contain functions/userdata/threads.

Parameters

NameTypeSummary
namestring
dataProfileValue

Returns

TypeSummary
Result?, ErrorMessage?

load

function · load(name: string): ProfileValue?, ErrorMessage?

JSON-backed, per-character profile service. Encoded data is subject to the native 2 MiB storage limit and must not contain functions/userdata/threads.

Parameters

NameTypeSummary
namestring

Returns

TypeSummary
ProfileValue?, ErrorMessage?

remove

function · remove(name: string): boolean, ErrorMessage?

JSON-backed, per-character profile service. Encoded data is subject to the native 2 MiB storage limit and must not contain functions/userdata/threads.

Parameters

NameTypeSummary
namestring

Returns

TypeSummary
boolean, ErrorMessage?

clear_alarm

function · clear_alarm(name: string): Result

JSON-backed, per-character profile service. Encoded data is subject to the native 2 MiB storage limit and must not contain functions/userdata/threads.

Parameters

NameTypeSummary
namestring

Returns

TypeSummary
Result

reset

function · reset()

JSON-backed, per-character profile service. Encoded data is subject to the native 2 MiB storage limit and must not contain functions/userdata/threads.

check

function · check(snapshot?: table): table[]

JSON-backed, per-character profile service. Encoded data is subject to the native 2 MiB storage limit and must not contain functions/userdata/threads.

Parameters

NameTypeSummary
snapshottable

Returns

TypeSummary
table[]

alarm

function · alarm(name: string, options?: ProfileAlarmOptions): Result?, ErrorMessage?

JSON-backed, per-character profile service. Encoded data is subject to the native 2 MiB storage limit and must not contain functions/userdata/threads.

Parameters

NameTypeSummary
namestring
optionsProfileAlarmOptions

Returns

TypeSummary
Result?, ErrorMessage?

Arcane SDK catalog generated from scripts/sdk