name
name: (QuestState) -> stringThe constant's name as declared.
Where a quest stands: QuestState.FINISHED.
QuestState.valueOf(…)
QuestState.IN_PROGRESS
QuestState.NOT_STARTED| Method | Returns | Description |
|---|---|---|
name() | string | The constant's name as declared. |
ordinal() | number | The constant's 0-based position in values(). |
toString() | string | name(); tostring(c) answers the same. |
compareTo(QuestState) | number | This ordinal less other's. |
equals(any) | boolean | Whether 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) | QuestState | valueOf(name): the constant named name; any other name is an error. |
| Field | Type | Description |
|---|---|---|
IN_PROGRESS | QuestState | IN_PROGRESS: ordinal 0. |
NOT_STARTED | QuestState | NOT_STARTED: ordinal 1. |
FINISHED | QuestState | FINISHED: ordinal 2. |
| Method | Returns | Description |
|---|---|---|
Quest.getState | QuestState | The 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.state | QuestState? | A quest's state: not started, in progress, or finished. |
QuestStateClass.valueOf | QuestState | valueOf(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. |
namename: (QuestState) -> stringThe constant's name as declared.
ordinalordinal: (QuestState) -> numberThe constant's 0-based position in values().
toStringtoString: (QuestState) -> stringname(); tostring(c) answers the same.
compareTocompareTo: (QuestState, QuestState) -> numberThis ordinal less other's.
equalsequals: (QuestState, any) -> booleanWhether other is this constant. == answers the same.
valuesvalues: () -> {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.
valueOfvalueOf: (string) -> QuestStatevalueOf(name): the constant named name; any other name is an error.