CfgMissionConversations
From Arma Projects
Subject to change!
/*
Afraid, Insulted, Cold, Warm, Friendly, Flattered, Informant, Liar
*/
class cfgMissionConversations {
debugMode = 1;
startPoints[] = {"StartUnknown"};
/* NPC Init Conversation */
class StartUnknown {
displayText = "Hi, who are you?";
options[] = {"action_introduce"};
};
/* NPC Responses to Player */
class StartConversation {
displayText[] = {"Hi %1, How can I help?","What do you want?"}; // Random Response
action = "";
arguments = "name player";
options[] = {"action_compliment","action_insult","action_ask","action_interrogate","action_farewell"};
sound = "";
resumeFromHere = 1;
};
class RecieveCompliment: StartConversation {
displayText = "Thank you. What can I do for you?";
};
class RecieveInsult: StartConversation {
displayText = "Fuck you. But what can I do for you?";
};
class RecieveQuery: StartConversation {
displayText = "What? You think I would know that?";
};
class RecieveFarewell: StartConversation {
displayText = "Farewell %1";
arguments = "name player";
endConversation = 1; // End the Conversation
options[] = {}; // No Reponses available to the player
};
/* Player Responses/Actions */
class action_introduce {
displayText = "Introduce yourself";
effect = 1;
responses[] = {"StartConversation"};
};
class action_compliment {
displayText = "Compliment Civilian";
action = "";
effect = 1;
responses[] = {"RecieveCompliment"};
condition = "true";
};
class action_insult: action_compliment {
displayText = "Insult Civilian";
responses[] = {"RecieveInsult"};
};
class action_apologise: action_compliment {
displayText[] = {"Apologise to %1"};
responses[] = {"StartConversation"};
arguments[] = {"name _npc"};
};
class action_ask: action_compliment {
displayText = "Ask Civilian about any enemies nearby";
responses[] = {"RecieveQuery"};
};
class action_interrogate: action_compliment {
displayText = "Interrogate Civilian for intel";
responses[] = {"RecieveQuery"};
};
class action_farewell: action_compliment {
displayText = "Farewell %1";
responses[] = {"RecieveFarewell"};
arguments[] = {"name _npc"};
};
};