SlashCo Wiki

Objective

Objective

Description

A single active round objective entry, stored in GameData.Objectives and managed through SlashCo.UpdateObjective.
Which objective names exist and whether they track a count is defined by the fixed registry SlashCo.Objectives (generator, helicopter, heliwait, trash, mop, trap, page).

Parameters

string name

The objective's name, matching a key in SlashCo.Objectives.

number status

The objective's current SlashCo.ObjStatus.

number totalCount (Optional)

How many steps are needed to complete the objective. Only present if SlashCo.Objectives[name].hasCount is true.

number doneCount (Optional)

How many steps have been completed so far. Only present if SlashCo.Objectives[name].hasCount is true.