Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

X2BattleField

Globals

NIBC_BUFF_LEFT_TIME

integer

NIBC_BUFF_STACK

integer

VS_DRAW

integer

VS_LOSE

integer

VS_WIN

integer

X2BattleField

X2BattleField

Aliases

NPC_INFORMATION_BROAD_CAST

NIBC_BUFF_LEFT_TIME|NIBC_BUFF_STACK

-- api/X2BattleField
NPC_INFORMATION_BROAD_CAST:
    | `NIBC_BUFF_LEFT_TIME`
    | `NIBC_BUFF_STACK`

VS

VS_DRAW|VS_LOSE|VS_WIN

-- api/X2BattleField
VS:
    | `VS_DRAW`
    | `VS_LOSE`
    | `VS_WIN`

Classes

Class: X2BattleField

Method: GetDetailInstanceInfo

(method) X2BattleField:GetDetailInstanceInfo(instanceType: number)
  -> detailInfo: DetailInstanceInfo|nil

Returns detailed information about a specific instance. Returns nil if the player does not meet the level requirements.

@param instanceType — The instance type to query.

@return detailInfo — The instance details, or nil if requirements not met.

See: DetailInstanceInfo

Method: GetInstanceName

(method) X2BattleField:GetInstanceName(instanceType: number)
  -> instanceName: string|nil

Returns the name of the specified instance.

@param instanceType — The instance type to query.

@return instanceName — The instance name, or nil if not found.

Method: GetInstanceListByKind

(method) X2BattleField:GetInstanceListByKind(kind: number)
  -> instanceList: InstanceByKind[]|nil

Returns a list of instances for the specified kind. Returns nil if the player does not meet the level requirements.

@param kind — The instance kind to query.

@return instanceList — The list of instances, or nil if requirements not met.

Method: GetInstanceUiKindList

(method) X2BattleField:GetInstanceUiKindList()
  -> instanceUiKindList: InstanceUiKind[]

Returns a list of available instance kinds for the UI.

@return instanceUiKindList — The list of instance UI kinds.

See: InstanceUiKind