Files
dsrc/sku.0/sys.server/compiled/game/script/conversation/legacy_naboo_sabe.script
T
2013-09-10 23:17:15 -07:00

857 lines
27 KiB
Plaintext

// ======================================================================
//
// legacy_naboo_sabe.script
// Copyright 2004, Sony Online Entertainment
// All Rights Reserved.
//
// Created with SwgConversationEditor 1.35 - 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/legacy_naboo_sabe";
// ======================================================================
// Script Conditions
// ======================================================================
boolean legacy_naboo_sabe_condition__defaultCondition (obj_id player, obj_id npc)
{
return true;
}
// ----------------------------------------------------------------------
boolean legacy_naboo_sabe_condition_hasDonePanakasQuest (obj_id player, obj_id npc)
{
return true;
}
// ----------------------------------------------------------------------
boolean legacy_naboo_sabe_condition_isStillDoingQuests (obj_id player, obj_id npc)
{
if (groundquests.isQuestActive(player, "quest/legacy_naboo_helping_the_handmaidens"))
{
return true;
}
return false;
}
// ----------------------------------------------------------------------
boolean legacy_naboo_sabe_condition_completedEirtaesQuest (obj_id player, obj_id npc)
{
if (groundquests.hasCompletedTask(player, "quest/legacy_naboo_helping_the_handmaidens", "finishedEirtaesQuest"))
{
return true;
}
return false;
}
// ----------------------------------------------------------------------
boolean legacy_naboo_sabe_condition_foundSache (obj_id player, obj_id npc)
{
if (groundquests.hasCompletedTask(player, "quest/legacy_naboo_helping_the_handmaidens", "spokeWithSache"))
{
return true;
}
return false;
}
// ======================================================================
// Script Actions
// ======================================================================
void legacy_naboo_sabe_action_sendKidnappingSignal (obj_id player, obj_id npc)
{
groundquests.sendSignal(player, "SpokenToSabeAboutKidnapping");
return;
}
// ----------------------------------------------------------------------
void legacy_naboo_sabe_action_finishHandMaidenQuest (obj_id player, obj_id npc)
{
groundquests.sendSignal(player, "completedHandmaidenQuestsForSabe");
}
// ----------------------------------------------------------------------
void legacy_naboo_sabe_action_startHandmaidenQuest (obj_id player, obj_id npc)
{
groundquests.grantQuest (player, "quest/legacy_naboo_helping_the_handmaidens");
}
// ======================================================================
// Script %TO Tokens
// ======================================================================
// ======================================================================
// Script %DI Tokens
// ======================================================================
// ======================================================================
// Script %DF Tokens
// ======================================================================
// ======================================================================
// handleBranch<n> Functions
// ======================================================================
int legacy_naboo_sabe_handleBranch1 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: So, this was Sache's plan all along? It's very like her. She has always been the brave one. Very well, you have proven yourself to me. I shall now answer your questions.
//-- [RESPONSE NOTE]
//-- PLAYER: What happened to the lightsaber?
if (response == "s_22")
{
//-- [NOTE]
if (legacy_naboo_sabe_condition__defaultCondition (player, npc))
{
//-- NPC: I was afraid that would be your question. In fact, I knew it would. The answer Panaka wouldn't give you is still not mine to give, though he was right to indicate that it was more freely to be given by me then by him.
string_id message = new string_id (c_stringFile, "s_23");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Uh...what?
boolean hasResponse0 = false;
if (legacy_naboo_sabe_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_26");
utils.setScriptVar (player, "conversation.legacy_naboo_sabe.branchId", 2);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.legacy_naboo_sabe.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int legacy_naboo_sabe_handleBranch2 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: I was afraid that would be your question. In fact, I knew it would. The answer Panaka wouldn't give you is still not mine to give, though he was right to indicate that it was more freely to be given by me then by him.
//-- [RESPONSE NOTE]
//-- PLAYER: Uh...what?
if (response == "s_26")
{
//-- [NOTE]
if (legacy_naboo_sabe_condition__defaultCondition (player, npc))
{
//-- NPC: I can't tell you the answer, but I can tell you who will. No tricks, no more secrets. The answer given to you by this person will be the truth, and not just another name of another person who won't answer your question. Your question will be answered.
string_id message = new string_id (c_stringFile, "s_27");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: By whom?
boolean hasResponse0 = false;
if (legacy_naboo_sabe_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_28");
utils.setScriptVar (player, "conversation.legacy_naboo_sabe.branchId", 3);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.legacy_naboo_sabe.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int legacy_naboo_sabe_handleBranch3 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: I can't tell you the answer, but I can tell you who will. No tricks, no more secrets. The answer given to you by this person will be the truth, and not just another name of another person who won't answer your question. Your question will be answered.
//-- [RESPONSE NOTE]
//-- PLAYER: By whom?
if (response == "s_28")
{
//-- [NOTE]
if (legacy_naboo_sabe_condition__defaultCondition (player, npc))
{
legacy_naboo_sabe_action_finishHandMaidenQuest (player, npc);
//-- NPC: Senator Poo'ja Naberrie. You can find her in Theed. She has the answer you seek, and will give it to you if you but ask.
string_id message = new string_id (c_stringFile, "s_29");
utils.removeScriptVar (player, "conversation.legacy_naboo_sabe.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int legacy_naboo_sabe_handleBranch5 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: I am very concerned about Sache. I have heard reports that she was kidnapped by a group called the Maulers. These are followers of the so-called teachings of Darth Maul. They believe that might makes right, and in this case, they believe that the capture of a former handmaiden will allow them to attain something of value.
//-- [RESPONSE NOTE]
//-- PLAYER: What do they want?
if (response == "s_14")
{
//-- [NOTE]
if (legacy_naboo_sabe_condition__defaultCondition (player, npc))
{
//-- NPC: Their motives are unclear right now. I am unconcerned with what they want. What I am concerned with is the safety of my sister, Sache. You will have my faith if you can find her and make sure that she is safe.
string_id message = new string_id (c_stringFile, "s_15");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Then that is what I will do.
boolean hasResponse0 = false;
if (legacy_naboo_sabe_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_18");
utils.setScriptVar (player, "conversation.legacy_naboo_sabe.branchId", 6);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.legacy_naboo_sabe.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: What shall I do?
if (response == "s_24")
{
//-- [NOTE]
if (legacy_naboo_sabe_condition__defaultCondition (player, npc))
{
//-- NPC: Find her and return to me with news of her safety. If she needs your help you are to give it, freely. Is that understood?
string_id message = new string_id (c_stringFile, "s_30");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Understood.
boolean hasResponse0 = false;
if (legacy_naboo_sabe_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_32");
utils.setScriptVar (player, "conversation.legacy_naboo_sabe.branchId", 8);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.legacy_naboo_sabe.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int legacy_naboo_sabe_handleBranch6 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Their motives are unclear right now. I am unconcerned with what they want. What I am concerned with is the safety of my sister, Sache. You will have my faith if you can find her and make sure that she is safe.
//-- [RESPONSE NOTE]
//-- PLAYER: Then that is what I will do.
if (response == "s_18")
{
//-- [NOTE]
if (legacy_naboo_sabe_condition__defaultCondition (player, npc))
{
legacy_naboo_sabe_action_sendKidnappingSignal (player, npc);
//-- NPC: Return to me with good news, friend, and I shall give you what you came here for. Information pointing you in the right direction.
string_id message = new string_id (c_stringFile, "s_19");
utils.removeScriptVar (player, "conversation.legacy_naboo_sabe.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int legacy_naboo_sabe_handleBranch8 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Find her and return to me with news of her safety. If she needs your help you are to give it, freely. Is that understood?
//-- [RESPONSE NOTE]
//-- PLAYER: Understood.
if (response == "s_32")
{
//-- [NOTE]
if (legacy_naboo_sabe_condition__defaultCondition (player, npc))
{
legacy_naboo_sabe_action_sendKidnappingSignal (player, npc);
//-- NPC: Return to me with good news, friend, and I shall give you what you came here for. Information pointing you in the right direction.
string_id message = new string_id (c_stringFile, "s_19");
utils.removeScriptVar (player, "conversation.legacy_naboo_sabe.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int legacy_naboo_sabe_handleBranch10 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Panaka speaks highly of you, but I'm not as trusting as he is. When I was a young handmaiden my sisters and I were charged with the protection of the queen. You learn very quickly that people's motives are not always clear.
//-- [RESPONSE NOTE]
//-- PLAYER: Your sisters?
if (response == "s_38")
{
//-- [NOTE]
if (legacy_naboo_sabe_condition__defaultCondition (player, npc))
{
//-- NPC: Not true sisters, but a sisterhood no less powerful than that familial bond. The other handmaidens and I are still very protective of each other. We still maintain contact with each other, and help each other when we can.
string_id message = new string_id (c_stringFile, "s_40");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: How can I prove my motives?
boolean hasResponse0 = false;
if (legacy_naboo_sabe_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_42");
utils.setScriptVar (player, "conversation.legacy_naboo_sabe.branchId", 11);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.legacy_naboo_sabe.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: My motives are pure.
if (response == "s_44")
{
//-- [NOTE]
if (legacy_naboo_sabe_condition__defaultCondition (player, npc))
{
//-- NPC: I'm sure they are, or at least you think they are. However, I'm not so easily swayed as by words. Actions are far more important. If you're really interested in getting information from me, as I'm sure you are, then you will perhaps take on the burden of my sister handmaidens.
string_id message = new string_id (c_stringFile, "s_46");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I will gladly help the other handmaidens.
boolean hasResponse0 = false;
if (legacy_naboo_sabe_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_48");
utils.setScriptVar (player, "conversation.legacy_naboo_sabe.branchId", 12);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.legacy_naboo_sabe.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int legacy_naboo_sabe_handleBranch11 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Not true sisters, but a sisterhood no less powerful than that familial bond. The other handmaidens and I are still very protective of each other. We still maintain contact with each other, and help each other when we can.
//-- [RESPONSE NOTE]
//-- PLAYER: How can I prove my motives?
if (response == "s_42")
{
//-- [NOTE]
if (legacy_naboo_sabe_condition__defaultCondition (player, npc))
{
legacy_naboo_sabe_action_startHandmaidenQuest (player, npc);
//-- NPC: Very well. Handmaiden Rabe has informed me that there is a task with which she requires assistance. Go forth and speak to Rabe. Do what she tells you, and if she asks then speak to whom she tells you. When you have satisfied my sisters then I shall point you in the right direction.
string_id message = new string_id (c_stringFile, "s_50");
utils.removeScriptVar (player, "conversation.legacy_naboo_sabe.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int legacy_naboo_sabe_handleBranch12 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: I'm sure they are, or at least you think they are. However, I'm not so easily swayed as by words. Actions are far more important. If you're really interested in getting information from me, as I'm sure you are, then you will perhaps take on the burden of my sister handmaidens.
//-- [RESPONSE NOTE]
//-- PLAYER: I will gladly help the other handmaidens.
if (response == "s_48")
{
//-- [NOTE]
if (legacy_naboo_sabe_condition__defaultCondition (player, npc))
{
legacy_naboo_sabe_action_startHandmaidenQuest (player, npc);
//-- NPC: Very well. Handmaiden Rabe has informed me that there is a task with which she requires assistance. Go forth and speak to Rabe. Do what she tells you, and if she asks then speak to whom she tells you. When you have satisfied my sisters then I shall point you in the right direction.
string_id message = new string_id (c_stringFile, "s_50");
utils.removeScriptVar (player, "conversation.legacy_naboo_sabe.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
// ======================================================================
// User Script Triggers
// ======================================================================
trigger OnInitialize ()
{
if ((!isMob (self)) || (isPlayer (self)))
detachScript(self, "conversation.legacy_naboo_sabe");
setCondition (self, CONDITION_CONVERSABLE);
return SCRIPT_CONTINUE;
}
trigger OnAttach ()
{
setCondition (self, CONDITION_CONVERSABLE);
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.legacy_naboo_sabe");
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 (legacy_naboo_sabe_condition_foundSache (player, npc))
{
//-- NPC: So, this was Sache's plan all along? It's very like her. She has always been the brave one. Very well, you have proven yourself to me. I shall now answer your questions.
string_id message = new string_id (c_stringFile, "s_21");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: What happened to the lightsaber?
boolean hasResponse0 = false;
if (legacy_naboo_sabe_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_22");
utils.setScriptVar (player, "conversation.legacy_naboo_sabe.branchId", 1);
npcStartConversation (player, npc, "legacy_naboo_sabe", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (legacy_naboo_sabe_condition_completedEirtaesQuest (player, npc))
{
//-- NPC: I am very concerned about Sache. I have heard reports that she was kidnapped by a group called the Maulers. These are followers of the so-called teachings of Darth Maul. They believe that might makes right, and in this case, they believe that the capture of a former handmaiden will allow them to attain something of value.
string_id message = new string_id (c_stringFile, "s_13");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: What do they want?
boolean hasResponse0 = false;
if (legacy_naboo_sabe_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: What shall I do?
boolean hasResponse1 = false;
if (legacy_naboo_sabe_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_14");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_24");
utils.setScriptVar (player, "conversation.legacy_naboo_sabe.branchId", 5);
npcStartConversation (player, npc, "legacy_naboo_sabe", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (legacy_naboo_sabe_condition_isStillDoingQuests (player, npc))
{
//-- NPC: I can't help you until you've done what I asked.
string_id message = new string_id (c_stringFile, "s_34");
chat.chat (npc, player, message);
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (legacy_naboo_sabe_condition_hasDonePanakasQuest (player, npc))
{
//-- NPC: Panaka speaks highly of you, but I'm not as trusting as he is. When I was a young handmaiden my sisters and I were charged with the protection of the queen. You learn very quickly that people's motives are not always clear.
string_id message = new string_id (c_stringFile, "s_36");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Your sisters?
boolean hasResponse0 = false;
if (legacy_naboo_sabe_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: My motives are pure.
boolean hasResponse1 = false;
if (legacy_naboo_sabe_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_38");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_44");
utils.setScriptVar (player, "conversation.legacy_naboo_sabe.branchId", 10);
npcStartConversation (player, npc, "legacy_naboo_sabe", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (legacy_naboo_sabe_condition__defaultCondition (player, npc))
{
//-- NPC: I'm very sorry, and please don't think me rude, but I can not speak with you right now. If there is something you need, perhaps you could speak with Colonel Panaka?
string_id message = new string_id (c_stringFile, "s_52");
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 != "legacy_naboo_sabe")
return SCRIPT_CONTINUE;
obj_id npc = self;
int branchId = utils.getIntScriptVar (player, "conversation.legacy_naboo_sabe.branchId");
if (branchId == 1 && legacy_naboo_sabe_handleBranch1 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 2 && legacy_naboo_sabe_handleBranch2 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 3 && legacy_naboo_sabe_handleBranch3 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 5 && legacy_naboo_sabe_handleBranch5 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 6 && legacy_naboo_sabe_handleBranch6 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 8 && legacy_naboo_sabe_handleBranch8 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 10 && legacy_naboo_sabe_handleBranch10 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 11 && legacy_naboo_sabe_handleBranch11 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 12 && legacy_naboo_sabe_handleBranch12 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
chat.chat (npc, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
utils.removeScriptVar (player, "conversation.legacy_naboo_sabe.branchId");
return SCRIPT_CONTINUE;
}
// ======================================================================