Class: Quest#

Hierarchy#

Constructors#

constructor#

new Quest(): Quest

bug Do not use this in a global initialisation as it crashes the game there.

Returns: Quest

Defined in: handles/quest.ts:27

Properties#

handle#

• Readonly handle: quest

Inherited from: Handle.handle

Defined in: handles/handle.ts:6

Accessors#

completed#

completed(): boolean

Returns: boolean

Defined in: handles/quest.ts:35

completed(completed: boolean): void

Parameters:#

NameType
completedboolean

Returns: void

Defined in: handles/quest.ts:39


discovered#

discovered(): boolean

Returns: boolean

Defined in: handles/quest.ts:43

discovered(discovered: boolean): void

Parameters:#

NameType
discoveredboolean

Returns: void

Defined in: handles/quest.ts:47


enabled#

enabled(): boolean

Returns: boolean

Defined in: handles/quest.ts:51

enabled(enabled: boolean): void

Parameters:#

NameType
enabledboolean

Returns: void

Defined in: handles/quest.ts:55


failed#

failed(): boolean

Returns: boolean

Defined in: handles/quest.ts:59

failed(failed: boolean): void

Parameters:#

NameType
failedboolean

Returns: void

Defined in: handles/quest.ts:63


id#

id(): number

Get the unique ID of the handle. The ID is recycled once you destroy the object.

Returns: number

The unique ID of a handle object.

Defined in: handles/handle.ts:18


required#

required(): boolean

Returns: boolean

Defined in: handles/quest.ts:67

required(required: boolean): void

Parameters:#

NameType
requiredboolean

Returns: void

Defined in: handles/quest.ts:71

Methods#

addItem#

addItem(description: string): QuestItem

Parameters:#

NameType
descriptionstring

Returns: QuestItem

Defined in: handles/quest.ts:75


destroy#

destroy(): void

Returns: void

Defined in: handles/quest.ts:83


setDescription#

setDescription(description: string): void

Parameters:#

NameType
descriptionstring

Returns: void

Defined in: handles/quest.ts:87


setIcon#

setIcon(iconPath: string): void

Parameters:#

NameType
iconPathstring

Returns: void

Defined in: handles/quest.ts:91


setTitle#

setTitle(title: string): void

Parameters:#

NameType
titlestring

Returns: void

Defined in: handles/quest.ts:95


flashQuestDialogButton#

static flashQuestDialogButton(): void

Returns: void

Defined in: handles/quest.ts:99


forceQuestDialogUpdate#

static forceQuestDialogUpdate(): void

Returns: void

Defined in: handles/quest.ts:103


fromHandle#

static fromHandle(handle: quest): Quest

Parameters:#

NameType
handlequest

Returns: Quest

Defined in: handles/quest.ts:107