Deprecated: str_replace(): Passing null to parameter #1 ($search) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /var/www/vhosts/gamedevstudiogame.com/httpdocs/classes/client.php on line 124
Game dev studio

Classes

Concepts

Libraries

Objects

contractor »

conversationAnswerData »

engineStatData »

issueData »

playerPlatformSpecialistData »

projectReviewConclusion »

projectReviewRemark »

randomEventData »

statusIcon »

getAnswers

Description

Returns the list of answers.

Arguments

1 dialogue object

the current dialogue.

Returns

1 table

answers

Example

dialogueHandler.registerQuestion({
	id = "developer_rival_studio_post_match_offer",
	textAccepted = _T("DEVELOPER_RIVAL_STUDIO_POST_MATCH_OFFER_ACCEPTED", "Alright, I'm staying."),
	textDeclined = _T("DEVELOPER_RIVAL_STUDIO_POST_MATCH_OFFER_DECLINED", "Sorry boss, it's not just about the money, I've wanted to try something new for a long time now, so I'm staying by my decision."),
	answersAccepted = {"developer_rival_studio_steal_accepted_match"},
	answersDeclined = {"developer_rival_studio_steal_offer_bonus", "developer_rival_studio_steal_attempt_farewell_3"},
	getAnswers = function(self, dialogueObject)
		if dialogueObject:getFact("agreed_to_match") then
			dialogueObject:getEmployee():setFact(rivalGameCompany.STEAL_DIALOGUE_FACT, false)
			return self.answersAccepted
		end
		
		dialogueObject:getEmployee():setFact(rivalGameCompany.STEAL_DIALOGUE_FACT, false)
		return self.answersDeclined
	end,
	
	getText = function(self, dialogueObject)
		if dialogueObject:getFact("agreed_to_match") then
			return self.textAccepted
		end
		
		return self.textDeclined
	end
})