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

PerkInfo

Defined in: client/api.d.ts:568

One perk, as the game’s own perk tables describe it.

autolearnable: boolean

Defined in: client/api.d.ts:612

Whether the game grants it on its own once its requirements are met, rather than on the perk screen.


id: string

Defined in: client/api.d.ts:577

The perk’s GUID.


kinds: string[]

Defined in: client/api.d.ts:607

What the perk does when owned, from the game’s side tables: buff (a real status effect), script, technique (a combat move), ability, param (rewrites a game rule), companion (the dog), recipe, codex. Empty for a perk that only gates others.


level: number

Defined in: client/api.d.ts:592

The level that track has to reach before the perk can be learnt. 0 for none.


name: string

Defined in: client/api.d.ts:572

The perk’s perk_name, unique across the tables, and the spelling every perk verb takes alongside its GUID.


parent: string | null

Defined in: client/api.d.ts:597

The perk that has to be owned first, or null.


track: string | null

Defined in: client/api.d.ts:587

The track whose points pay for it: a track name, main for the main-level bank, or null for a perk no player’s tree carries.


uiName: string

Defined in: client/api.d.ts:582

The localisation key the perk screen shows, or empty for a perk it never shows.


visibility: "hidden" | "system" | "visible" | "obsolete"

Defined in: client/api.d.ts:602

visible perks are the ones on the perk screen and the only ones a player can learn; hidden ones appear once something grants them; system ones implement game features and are never shown.