Variable; ObjectiveState - HWRM/KarosGraveyard GitHub Wiki

ObjectiveState is a number type under the hood.

A collection of variables representing the possible 'states' an objective may have. These states are represented by integer values.

Examples

-- Creates a new objective, stores its id in 'my_objective_id'
local my_objective_id = Objective_Add("my-objective", OT_Primary);

Objective_SetState(my_objective_id, OS_Complete);

Variables

Variable Value Notes
OS_Off 0 Hides the objective, effectively disabling it.
OS_Incomplete 1 Objective shows in the 'Objectives' pane unchecked.
OS_Complete 2 Objective shows in the 'Objectives' pane greyed out with a blue cross.
OS_Failed 3 Objective shows in the 'Objectives' pane in red with a larger red cross.

Related Pages