Called when picking this answer. Abstract.
Called when picking this answer. Abstract.
1 string questionID
the question ID that the answer was picked for.
2 number index
the numerical key index of the answer.
dialogueHandler.registerAnswer({ id = "fire_employee_confirm", text = { _T("FIRE_EMPLOYEE_DIALOGUE_1", "[FIRE EMPLOYEE]") }, onPick = function(self, dialogueObject) local employee = dialogueObject:getEmployee() employee:getEmployer():fireEmployee(employee) dialogueHandler:killEmployeeInfoDisplay(dialogueObject) end })