Skip to content
KCKingdoms Connected Scripting APIScripting guides and API
Data shapeServer APIGenerated

CustomBuffDefinition

Defined in: server/api.d.ts:8213

Immutable custom effect, with an existing native buff supplying its icon.

optional description?: string

Defined in: server/api.d.ts:8222

Optional description, up to 4096 UTF-8 bytes.


optional duration?: number

Defined in: server/api.d.ts:8232

Positive real seconds up to seven days, or -1 for permanent; default -1.


optional maxStacks?: number

Defined in: server/api.d.ts:8247

Integer 1 to 16; default 1.


optional modifiers?: Record<string, number | { operation: "set" | "add" | "multiply"; value: number; }>

Defined in: server/api.d.ts:8257

Optional native modifiers. A number adds points. Buffs.modifiers lists supported names. healthRegeneration adds health per second. Effective stat changes do not change earned XP.


name: string

Defined in: server/api.d.ts:8217

Display name; 1 to 256 UTF-8 bytes.


optional refresh?: boolean

Defined in: server/api.d.ts:8252

Default true. At the stack limit, replaces the oldest instance with a full-duration instance; false ignores applications at the limit.


optional stackable?: boolean

Defined in: server/api.d.ts:8242

Default false. When true, each application has its own native timer and modifiers.


optional tickInterval?: number

Defined in: server/api.d.ts:8237

Server lifecycle callback interval in seconds; zero disables, otherwise 0.1 to 86400. Default zero.


visual: string

Defined in: server/api.d.ts:8227

Existing game buff name or GUID; only presentation is borrowed.