Files
dsrc/sku.0/sys.server/compiled/game/script/conversation/ephant_mon.script
T

917 lines
26 KiB
Plaintext

// ======================================================================
//
// ephant_mon.script
//
//
//
// Created with SwgConversationEditor 1.36 - DO NOT EDIT THIS AUTO-GENERATED FILE!
//
// ======================================================================
// ======================================================================
// Library Includes
// ======================================================================
include library.ai_lib;
include library.chat;
include library.groundquests;
include library.utils;
// ======================================================================
// Script Constants
// ======================================================================
string c_stringFile = "conversation/ephant_mon";
// ======================================================================
// Script Conditions
// ======================================================================
boolean ephant_mon_condition__defaultCondition (obj_id player, obj_id npc)
{
return true;
}
// ----------------------------------------------------------------------
boolean ephant_mon_condition_finishedReeYees (obj_id player, obj_id npc)
{
if (groundquests.hasCompletedQuest (player, "quest/jabba_ree_yees_v2"))
{
return true;
}
return false;
}
// ----------------------------------------------------------------------
boolean ephant_mon_condition_killingTheSennex (obj_id player, obj_id npc)
{
if (groundquests.isTaskActive (player, "quest/jabba_ephant_mon", "killingTheSennex"))
{
return true;
}
return false;
}
// ----------------------------------------------------------------------
boolean ephant_mon_condition_killingTheSlaveMasters (obj_id player, obj_id npc)
{
if (groundquests.isTaskActive (player, "quest/jabba_ephant_mon", "killingTheSlaveMasters"))
{
return true;
}
return false;
}
// ----------------------------------------------------------------------
boolean ephant_mon_condition_collectingKeyChips (obj_id player, obj_id npc)
{
if (groundquests.isTaskActive (player, "quest/jabba_ephant_mon", "collectingKeyChips"))
{
return true;
}
return false;
}
// ----------------------------------------------------------------------
boolean ephant_mon_condition_wipingTheDatabank (obj_id player, obj_id npc)
{
if (groundquests.isTaskActive (player, "quest/jabba_ephant_mon", "wipingTheDatabank"))
{
return true;
}
return false;
}
// ----------------------------------------------------------------------
boolean ephant_mon_condition_returnToEphantMon (obj_id player, obj_id npc)
{
if (groundquests.isTaskActive (player, "quest/jabba_ephant_mon", "returnToEphantMon"))
{
return true;
}
return false;
}
// ----------------------------------------------------------------------
boolean ephant_mon_condition_finishedEphantMon (obj_id player, obj_id npc)
{
if (groundquests.hasCompletedQuest (player, "quest/jabba_ephant_mon"))
{
return true;
}
return false;
}
// ======================================================================
// Script Actions
// ======================================================================
void ephant_mon_action_grantEphantMonQuest (obj_id player, obj_id npc)
{
groundquests.requestGrantQuest (player, "quest/jabba_ephant_mon");
}
// ----------------------------------------------------------------------
void ephant_mon_action_endEphantMonQuest (obj_id player, obj_id npc)
{
faceTo(npc, player);
groundquests.sendSignal (player, "ephantMonSignal");
groundquests.grantQuest(player, "pointer_porcellus");
}
// ----------------------------------------------------------------------
void ephant_mon_action_clearPointer (obj_id player, obj_id npc)
{
groundquests.sendSignal(player, "found_ephant");
faceTo(npc, player);
}
// ----------------------------------------------------------------------
void ephant_mon_action_facePlayer (obj_id player, obj_id npc)
{
faceTo(npc, player);
}
// ======================================================================
// Script %TO Tokens
// ======================================================================
// ======================================================================
// Script %DI Tokens
// ======================================================================
// ======================================================================
// Script %DF Tokens
// ======================================================================
// ======================================================================
// handleBranch<n> Functions
// ======================================================================
int ephant_mon_handleBranch7 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: I heard you had no trouble taking care of those Sand Splitters for Ree-Yees?
//-- [RESPONSE NOTE]
//-- PLAYER: That's right. What about it?
if (response == "s_18")
{
//-- [NOTE]
if (ephant_mon_condition__defaultCondition (player, npc))
{
//-- NPC: Just mentioning it is all. Have you ever heard of the Sennex? They're a bad lot, worse than the Hutts, and I say that with all due respect. They're slave traders and slave trading's been outlawed on Tatooine. Got it?
string_id message = new string_id (c_stringFile, "s_20");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just tell me about the Sennex.
boolean hasResponse0 = false;
if (ephant_mon_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Is there some history with Jabba and slave trading?
boolean hasResponse1 = false;
if (ephant_mon_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses [] = new string_id [numberOfResponses];
if (hasResponse0)
responses [responseIndex++] = new string_id (c_stringFile, "s_22");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_27");
utils.setScriptVar (player, "conversation.ephant_mon.branchId", 8);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.ephant_mon.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: Just give me some work.
if (response == "s_42")
{
//-- [NOTE]
if (ephant_mon_condition__defaultCondition (player, npc))
{
ephant_mon_action_grantEphantMonQuest (player, npc);
//-- NPC: Sennex are causing trouble, bringing heat to the planet, and Jabba doesn't like it. Start thinning the Sennex herd, will you?
string_id message = new string_id (c_stringFile, "s_50");
utils.removeScriptVar (player, "conversation.ephant_mon.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: Sorry, I don't have time for this right now.
if (response == "s_52")
{
//-- [NOTE]
if (ephant_mon_condition__defaultCondition (player, npc))
{
//-- NPC: Time? That's all I seem to have these days. If you find any, time that is, then come back and see me again.
string_id message = new string_id (c_stringFile, "s_54");
utils.removeScriptVar (player, "conversation.ephant_mon.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int ephant_mon_handleBranch8 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Just mentioning it is all. Have you ever heard of the Sennex? They're a bad lot, worse than the Hutts, and I say that with all due respect. They're slave traders and slave trading's been outlawed on Tatooine. Got it?
//-- [RESPONSE NOTE]
//-- PLAYER: Just tell me about the Sennex.
if (response == "s_22")
{
//-- [NOTE]
if (ephant_mon_condition__defaultCondition (player, npc))
{
//-- NPC: Slavers, criminals, crooks. They're making Jabba upset, and no one likes it when Jabba is upset. You want to help us?
string_id message = new string_id (c_stringFile, "s_41");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Sure.
boolean hasResponse0 = false;
if (ephant_mon_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: No thanks.
boolean hasResponse1 = false;
if (ephant_mon_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses [] = new string_id [numberOfResponses];
if (hasResponse0)
responses [responseIndex++] = new string_id (c_stringFile, "s_55");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_56");
utils.setScriptVar (player, "conversation.ephant_mon.branchId", 9);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.ephant_mon.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: Is there some history with Jabba and slave trading?
if (response == "s_27")
{
//-- [NOTE]
if (ephant_mon_condition__defaultCondition (player, npc))
{
//-- NPC: Jabba's a little more clever than most people realize, which is one of the reasons he's stayed in business for so long. Not long ago, Jabba ran the slave trade on Tatooine.
string_id message = new string_id (c_stringFile, "s_29");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Before it was outlawed?
boolean hasResponse0 = false;
if (ephant_mon_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses [] = new string_id [numberOfResponses];
if (hasResponse0)
responses [responseIndex++] = new string_id (c_stringFile, "s_31");
utils.setScriptVar (player, "conversation.ephant_mon.branchId", 10);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.ephant_mon.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int ephant_mon_handleBranch9 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Slavers, criminals, crooks. They're making Jabba upset, and no one likes it when Jabba is upset. You want to help us?
//-- [RESPONSE NOTE]
//-- PLAYER: Sure.
if (response == "s_55")
{
//-- [NOTE]
if (ephant_mon_condition__defaultCondition (player, npc))
{
ephant_mon_action_grantEphantMonQuest (player, npc);
//-- NPC: Sennex are causing trouble, bringing heat to the planet, and Jabba doesn't like it. Start thinning the Sennex herd, will you?
string_id message = new string_id (c_stringFile, "s_50");
utils.removeScriptVar (player, "conversation.ephant_mon.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: No thanks.
if (response == "s_56")
{
//-- [NOTE]
if (ephant_mon_condition__defaultCondition (player, npc))
{
//-- NPC: Time? That's all I seem to have these days. If you find any, time that is, then come back and see me again.
string_id message = new string_id (c_stringFile, "s_54");
utils.removeScriptVar (player, "conversation.ephant_mon.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int ephant_mon_handleBranch10 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Jabba's a little more clever than most people realize, which is one of the reasons he's stayed in business for so long. Not long ago, Jabba ran the slave trade on Tatooine.
//-- [RESPONSE NOTE]
//-- PLAYER: Before it was outlawed?
if (response == "s_31")
{
//-- [NOTE]
if (ephant_mon_condition__defaultCondition (player, npc))
{
//-- NPC: Right. He cut a deal with another Hutt, Gardulla. Gardulla got all slave trading, Jabba got all other illegal activities.
string_id message = new string_id (c_stringFile, "s_33");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: And?
boolean hasResponse0 = false;
if (ephant_mon_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses [] = new string_id [numberOfResponses];
if (hasResponse0)
responses [responseIndex++] = new string_id (c_stringFile, "s_43");
utils.setScriptVar (player, "conversation.ephant_mon.branchId", 11);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.ephant_mon.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int ephant_mon_handleBranch11 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Right. He cut a deal with another Hutt, Gardulla. Gardulla got all slave trading, Jabba got all other illegal activities.
//-- [RESPONSE NOTE]
//-- PLAYER: And?
if (response == "s_43")
{
//-- [NOTE]
if (ephant_mon_condition__defaultCondition (player, npc))
{
//-- NPC: Jabba knew the outlaw of slave trading was coming. Shortly thereafter Gardulla was arrested and disappeared. Jabba's been running things ever since.
string_id message = new string_id (c_stringFile, "s_44");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Interesting story.
boolean hasResponse0 = false;
if (ephant_mon_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses [] = new string_id [numberOfResponses];
if (hasResponse0)
responses [responseIndex++] = new string_id (c_stringFile, "s_45");
utils.setScriptVar (player, "conversation.ephant_mon.branchId", 12);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.ephant_mon.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int ephant_mon_handleBranch12 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Jabba knew the outlaw of slave trading was coming. Shortly thereafter Gardulla was arrested and disappeared. Jabba's been running things ever since.
//-- [RESPONSE NOTE]
//-- PLAYER: Interesting story.
if (response == "s_45")
{
//-- [NOTE]
if (ephant_mon_condition__defaultCondition (player, npc))
{
//-- NPC: Not really, but now you know it anyway. You want some work, or not?
string_id message = new string_id (c_stringFile, "s_46");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: No thanks.
boolean hasResponse0 = false;
if (ephant_mon_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Whatever you got.
boolean hasResponse1 = false;
if (ephant_mon_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses [] = new string_id [numberOfResponses];
if (hasResponse0)
responses [responseIndex++] = new string_id (c_stringFile, "s_47");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_48");
utils.setScriptVar (player, "conversation.ephant_mon.branchId", 13);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.ephant_mon.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int ephant_mon_handleBranch13 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Not really, but now you know it anyway. You want some work, or not?
//-- [RESPONSE NOTE]
//-- PLAYER: No thanks.
if (response == "s_47")
{
//-- [NOTE]
if (ephant_mon_condition__defaultCondition (player, npc))
{
//-- NPC: Time? That's all I seem to have these days. If you find any, time that is, then come back and see me again.
string_id message = new string_id (c_stringFile, "s_54");
utils.removeScriptVar (player, "conversation.ephant_mon.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: Whatever you got.
if (response == "s_48")
{
//-- [NOTE]
if (ephant_mon_condition__defaultCondition (player, npc))
{
ephant_mon_action_grantEphantMonQuest (player, npc);
//-- NPC: Sennex are causing trouble, bringing heat to the planet, and Jabba doesn't like it. Start thinning the Sennex herd, will you?
string_id message = new string_id (c_stringFile, "s_50");
utils.removeScriptVar (player, "conversation.ephant_mon.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
// ======================================================================
// User Script Triggers
// ======================================================================
trigger OnInitialize ()
{
if ((!isMob (self)) || (isPlayer (self)))
detachScript(self, "conversation.ephant_mon");
setCondition (self, CONDITION_CONVERSABLE);
setCondition (self, CONDITION_INTERESTING);
return SCRIPT_CONTINUE;
}
trigger OnAttach ()
{
setCondition (self, CONDITION_CONVERSABLE);
setCondition (self, CONDITION_INTERESTING);
return SCRIPT_CONTINUE;
}
trigger OnObjectMenuRequest (obj_id player, menu_info menuInfo)
{
int menu = menuInfo.addRootMenu (menu_info_types.CONVERSE_START, null);
menu_info_data menuInfoData = menuInfo.getMenuItemById (menu);
menuInfoData.setServerNotify (false);
setCondition (self, CONDITION_CONVERSABLE);
return SCRIPT_CONTINUE;
}
trigger OnIncapacitated (obj_id killer)
{
clearCondition (self, CONDITION_CONVERSABLE);
detachScript (self, "conversation.ephant_mon");
return SCRIPT_CONTINUE;
}
// ======================================================================
// Script Triggers
// ======================================================================
//-- This function should move to base_class.java
boolean npcStartConversation(obj_id player, obj_id npc, string convoName, string_id greetingId, prose_package greetingProse, string_id[] responses)
{
Object[] objects = new Object[responses.length];
System.arraycopy(responses, 0, objects, 0, responses.length);
return npcStartConversation(player, npc, convoName, greetingId, greetingProse, objects);
}
// ----------------------------------------------------------------------
trigger OnStartNpcConversation (obj_id player)
{
obj_id npc = self;
if (ai_lib.isInCombat (npc) || ai_lib.isInCombat (player))
return SCRIPT_OVERRIDE;
//-- [NOTE]
if (ephant_mon_condition_finishedEphantMon (player, npc))
{
ephant_mon_action_facePlayer (player, npc);
//-- NPC: Thanks again for all your help. While we didn't rid the planet of the Sennex, we definitely put some hurt on them.
string_id message = new string_id (c_stringFile, "s_9");
chat.chat (npc, player, message);
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (ephant_mon_condition_returnToEphantMon (player, npc))
{
ephant_mon_action_endEphantMonQuest (player, npc);
//-- NPC: It's done? I had a feeling about you. These old bones never lie. I promised you a reward, and now here it is. Enjoy it. If you've got some time you might go see Porcellus in the kitchen. I hear he's having a hard time, and if you could use a good meal there's no place better on Tatooine to get one.
string_id message = new string_id (c_stringFile, "s_5");
chat.chat (npc, player, message);
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (ephant_mon_condition_wipingTheDatabank (player, npc))
{
ephant_mon_action_facePlayer (player, npc);
//-- NPC: I need you to wipe that databank as soon as possible.
string_id message = new string_id (c_stringFile, "s_7");
chat.chat (npc, player, message);
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (ephant_mon_condition_collectingKeyChips (player, npc))
{
ephant_mon_action_facePlayer (player, npc);
//-- NPC: If this is what you call collecting key-chips then perhaps you're not smart enough to be working for me after all.
string_id message = new string_id (c_stringFile, "s_10");
chat.chat (npc, player, message);
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (ephant_mon_condition_killingTheSlaveMasters (player, npc))
{
ephant_mon_action_facePlayer (player, npc);
//-- NPC: Those Slavemasters aren't going to take care of themselves, now are they?
string_id message = new string_id (c_stringFile, "s_12");
chat.chat (npc, player, message);
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (ephant_mon_condition_killingTheSennex (player, npc))
{
ephant_mon_action_facePlayer (player, npc);
//-- NPC: Have you done what I asked you to yet? You know, with the Sennex? You haven't have you?
string_id message = new string_id (c_stringFile, "s_14");
chat.chat (npc, player, message);
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (ephant_mon_condition_finishedReeYees (player, npc))
{
ephant_mon_action_clearPointer (player, npc);
//-- NPC: I heard you had no trouble taking care of those Sand Splitters for Ree-Yees?
string_id message = new string_id (c_stringFile, "s_16");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: That's right. What about it?
boolean hasResponse0 = false;
if (ephant_mon_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Just give me some work.
boolean hasResponse1 = false;
if (ephant_mon_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: Sorry, I don't have time for this right now.
boolean hasResponse2 = false;
if (ephant_mon_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses [] = new string_id [numberOfResponses];
if (hasResponse0)
responses [responseIndex++] = new string_id (c_stringFile, "s_18");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_42");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_52");
utils.setScriptVar (player, "conversation.ephant_mon.branchId", 7);
npcStartConversation (player, npc, "ephant_mon", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (ephant_mon_condition__defaultCondition (player, npc))
{
ephant_mon_action_facePlayer (player, npc);
//-- NPC: I'm not sure how you got up here, but if you want some work you should speak with Reelo, or perhaps Ree-Yees.
string_id message = new string_id (c_stringFile, "s_58");
chat.chat (npc, player, message);
return SCRIPT_CONTINUE;
}
chat.chat (npc, "Error: All conditions for OnStartNpcConversation were false.");
return SCRIPT_CONTINUE;
}
// ----------------------------------------------------------------------
trigger OnNpcConversationResponse (string conversationId, obj_id player, string_id response)
{
if (conversationId != "ephant_mon")
return SCRIPT_CONTINUE;
obj_id npc = self;
int branchId = utils.getIntScriptVar (player, "conversation.ephant_mon.branchId");
if (branchId == 7 && ephant_mon_handleBranch7 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 8 && ephant_mon_handleBranch8 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 9 && ephant_mon_handleBranch9 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 10 && ephant_mon_handleBranch10 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 11 && ephant_mon_handleBranch11 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 12 && ephant_mon_handleBranch12 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 13 && ephant_mon_handleBranch13 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
chat.chat (npc, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
utils.removeScriptVar (player, "conversation.ephant_mon.branchId");
return SCRIPT_CONTINUE;
}
// ======================================================================