QuestState

Where a quest stands: QuestState.FINISHED.

Methods
7
Fields
3

Getting one

QuestState.valueOf(…)
QuestState.IN_PROGRESS
QuestState.NOT_STARTED

Methods

MethodReturnsDescription
name()stringThe constant's name as declared.
ordinal()numberThe constant's 0-based position in values().
toString()stringname(); tostring(c) answers the same.
compareTo(QuestState)numberThis ordinal less other's.
equals(any)booleanWhether other is this constant. == answers the same.
values(){QuestState}Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it.
valueOf(string)QuestStatevalueOf(name): the constant named name; any other name is an error.

Fields

FieldTypeDescription
IN_PROGRESSQuestStateIN_PROGRESS: ordinal 0.
NOT_STARTEDQuestStateNOT_STARTED: ordinal 1.
FINISHEDQuestStateFINISHED: ordinal 2.

Returned by

MethodReturnsDescription
Quest.getStateQuestStateThe quest's state as the game's quest list shows it (script 4029's thresholds over the quest's varp or varbit). Pass the client global; i…
Quests.allProgress{ { quest: Quest, state: QuestState?, value: number? } }Every quest with a Quest constant, with its state and progress value; state and value are nil while its var is unread.
Quests.stateQuestState?A quest's state: not started, in progress, or finished.
QuestStateClass.valueOfQuestStatevalueOf(name): the constant named name; any other name is an error.
QuestStateClass.values{QuestState}Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it.

Method details

equals

equals: (QuestState, any) -> boolean

Whether other is this constant. == answers the same.

values

values: () -> {QuestState}

Every constant in ordinal order, as a 1-based array: the same frozen array every values() call, so table.clone it before changing it.

valueOf

valueOf: (string) -> QuestState

valueOf(name): the constant named name; any other name is an error.