Registers a new objective. These are used for scenarios.
Registers a new objective. These are used for scenarios.
1 table data
the objective structure.
objectiveHandler.registerNewObjective({ id = "back_in_the_game_finish", autoClaim = true, name = _T("BACK_IN_THE_GAME_NAME", "Back in the Game"), description = _format(_T("BACK_IN_THE_GAME_DESCRIPTION", "Hire EMPLOYEES employees and reach REP in reputation"), "EMPLOYEES", gameTypeData.employeeCount, "REP", string.comma(gameTypeData.targetReputation)), icon = "objective_back_in_the_game", requirements = { completedObjectives = {"back_in_the_game"} }, task = { id = "sequence", tasks = { { id = "finish_dialogue", dialogueID = "back_in_the_game_2", startDialogue = "back_in_the_game_2_1" }, { id = "wait_for_event", event = frameController.EVENTS.CLEARED_FRAMES }, } } })