Returns the returning text (text override for displaying). Refer to the 'returnText' variable in the answerData documentation for more info.
Returns the returning text (text override for displaying). Refer to the 'returnText' variable in the answerData documentation for more info.
1 dialogue object
the dialogue object.
1 string
the text.
dialogueHandler.registerAnswer({ id = "call_ceo_initial_answer", getText = function(self, dialogueObject) return _format(_T("INITIAL_CEO_CALL_INTRODUCE_PLAYER", "Hello, this is the CEO of 'COMPANY' calling."), "COMPANY", studio:getName()) end, question = "call_ceo_main", onPick = function(self, dialogueObject) local rgc = dialogueObject:getFact(rivalGameCompany.COMPANY_REFERENCE_DIALOGUE_FACT) dialogueObject:setFact("had_been_introduced", rgc:wasPlayerIntroduced()) rgc:markPlayerIntroduced() end, getReturnText = function(self, dialogueObject) if dialogueObject:setFact("had_been_introduced") then local rgc = dialogueObject:getFact(rivalGameCompany.COMPANY_REFERENCE_DIALOGUE_FACT) if rgc:getRelationship() < 0 or rgc:getHadCalledPlayer() then return _T("INITIAL_CEO_CALL_ALREADY_KNOWN", "Yeah, I know who you are. What do you want?") end end return _T("INITIAL_CEO_CALL_NOT_KNOWN_YET", "Ah, hello, is there something you need?") end })