Variable; ObjectiveState
Novaras edited this page Feb 14, 2024
·
1 revision
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.
-- 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);
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. |
| Home | Search | Recent Changes | Revision History | About | User Help | Contributor Help | Discussion |