Classes

Concepts

Libraries

Objects

contractor »

conversationAnswerData »

engineStatData »

issueData »

playerPlatformSpecialistData »

projectReviewConclusion »

projectReviewRemark »

randomEventData »

statusIcon »

onPick

Description

Called when picking this answer. Abstract.

Arguments

1 string questionID

the question ID that the answer was picked for.

2 number index

the numerical key index of the answer.

Example

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
})