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

BuffInfo

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

What the game’s own tables say about one status effect.

aiTag: string | null

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

The family player.clearBuffs would take it off with, or null for the majority that belong to none.


class: string

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

The kind of effect it is – poison, alcohol, injury, potion. Buffs.classes lists the ones a server can take over.


custom: boolean

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

Whether this definition was registered with Buffs.register.


description: string | null

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

Registered description for a custom effect; null for a native effect.


displayName: string | null

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

Registered display text for a custom effect; null for a native effect.


duration: number

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

How long the effect runs from start to finish, in real seconds, and negative for one with no end.


name: string

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

The name the game’s own buff tables give the effect, and the spelling every buff verb takes.