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

1799 lines
50 KiB
Plaintext

// ======================================================================
//
// tatooine_entha_draknus.script
//
//
//
// 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/tatooine_entha_draknus";
// ======================================================================
// Script Conditions
// ======================================================================
boolean tatooine_entha_draknus_condition__defaultCondition (obj_id player, obj_id npc)
{
return true;
}
// ----------------------------------------------------------------------
boolean tatooine_entha_draknus_condition_onTalkedAnKwee (obj_id player, obj_id npc)
{
return groundquests.isTaskActive(player, "tatooine_espa_pod_retrieval_v2", "tat_espa_pod_retrieval_e2");
}
// ----------------------------------------------------------------------
boolean tatooine_entha_draknus_condition_completedQuest (obj_id player, obj_id npc)
{
return groundquests.hasCompletedQuest(player, "talus_nashal_rescue_operation");
}
// ----------------------------------------------------------------------
boolean tatooine_entha_draknus_condition_onRace1 (obj_id player, obj_id npc)
{
return groundquests.isQuestActive(player, "tatooine_entha_podracers_race1");
}
// ----------------------------------------------------------------------
boolean tatooine_entha_draknus_condition_completedRace1 (obj_id player, obj_id npc)
{
return groundquests.hasCompletedQuest(player, "tatooine_entha_podracers_race1");
}
// ----------------------------------------------------------------------
boolean tatooine_entha_draknus_condition_completedRace2 (obj_id player, obj_id npc)
{
return groundquests.hasCompletedQuest(player, "tatooine_entha_podracers_race2");
}
// ----------------------------------------------------------------------
boolean tatooine_entha_draknus_condition_completedRace3 (obj_id player, obj_id npc)
{
return groundquests.hasCompletedQuest(player, "tatooine_entha_podracers_race3");
}
// ----------------------------------------------------------------------
boolean tatooine_entha_draknus_condition_onRace2 (obj_id player, obj_id npc)
{
return groundquests.isQuestActive(player, "tatooine_entha_podracers_race2");
}
// ----------------------------------------------------------------------
boolean tatooine_entha_draknus_condition_onRace3 (obj_id player, obj_id npc)
{
return groundquests.isQuestActive(player, "tatooine_entha_podracers_race3");
}
// ----------------------------------------------------------------------
boolean tatooine_entha_draknus_condition_completedPod (obj_id player, obj_id npc)
{
return groundquests.hasCompletedQuest(player, "tatooine_espa_pod_retrieval_v2");
}
// ----------------------------------------------------------------------
boolean tatooine_entha_draknus_condition_skip3 (obj_id player, obj_id npc)
{
return false;
}
// ----------------------------------------------------------------------
boolean tatooine_entha_draknus_condition_skip2 (obj_id player, obj_id npc)
{
return false;
}
// ----------------------------------------------------------------------
boolean tatooine_entha_draknus_condition_skip1 (obj_id player, obj_id npc)
{
return false;
}
// ======================================================================
// Script Actions
// ======================================================================
void tatooine_entha_draknus_action_grantRace1 (obj_id player, obj_id npc)
{
groundquests.grantQuest(player, "tatooine_entha_podracers_race1");
}
// ----------------------------------------------------------------------
void tatooine_entha_draknus_action_grantRace2 (obj_id player, obj_id npc)
{
groundquests.grantQuest(player, "tatooine_entha_podracers_race2");
}
// ----------------------------------------------------------------------
void tatooine_entha_draknus_action_grantRace3 (obj_id player, obj_id npc)
{
groundquests.grantQuest(player, "tatooine_entha_podracers_race3");
}
// ----------------------------------------------------------------------
void tatooine_entha_draknus_action_clearRace1 (obj_id player, obj_id npc)
{
groundquests.clearQuest(player, "tatooine_entha_podracers_race1");
}
// ----------------------------------------------------------------------
void tatooine_entha_draknus_action_clearRace2 (obj_id player, obj_id npc)
{
groundquests.clearQuest(player, "tatooine_entha_podracers_race2");
}
// ----------------------------------------------------------------------
void tatooine_entha_draknus_action_clearRace3 (obj_id player, obj_id npc)
{
groundquests.clearQuest(player, "tatooine_entha_podracers_race3");
}
// ----------------------------------------------------------------------
void tatooine_entha_draknus_action_signalGotoDraknus (obj_id player, obj_id npc)
{
groundquests.sendSignal(player, "tat_entha_goto_draknus_e1");
}
// ----------------------------------------------------------------------
void tatooine_entha_draknus_action_signalReturnDraknus (obj_id player, obj_id npc)
{
groundquests.sendSignal(player, "tatooine_entha_return_draknus_e1");
}
// ======================================================================
// Script %TO Tokens
// ======================================================================
// ======================================================================
// Script %DI Tokens
// ======================================================================
// ======================================================================
// Script %DF Tokens
// ======================================================================
// ======================================================================
// handleBranch<n> Functions
// ======================================================================
int tatooine_entha_draknus_handleBranch1 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE] RETURNED
//-- NPC: No more races, %TU.
//-- [RESPONSE NOTE]
//-- PLAYER: Why not?
if (response == "s_71")
{
//-- [NOTE]
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
//-- NPC: Most of the racers were arrested by the Empire in a podracer sting operation. We're going to have to start all over again with fresh meat.
string_id message = new string_id (c_stringFile, "s_72");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Never say die?
boolean hasResponse0 = false;
if (tatooine_entha_draknus_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_73");
utils.setScriptVar (player, "conversation.tatooine_entha_draknus.branchId", 2);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int tatooine_entha_draknus_handleBranch2 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Most of the racers were arrested by the Empire in a podracer sting operation. We're going to have to start all over again with fresh meat.
//-- [RESPONSE NOTE]
//-- PLAYER: Never say die?
if (response == "s_73")
{
//-- [NOTE]
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
//-- NPC: How can we? Racing is what we do best.
string_id message = new string_id (c_stringFile, "s_74");
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int tatooine_entha_draknus_handleBranch4 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE] REWARD
//-- NPC: It appears you are quite the racer after all. Please return to An'Kwee with my compliments. Your tests were quite entertaining.
//-- [RESPONSE NOTE]
//-- PLAYER: So you will tell her I'm a good racer?
if (response == "s_75")
{
//-- [NOTE]
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
//-- NPC: I will, and more. You have done well today, %TU.
string_id message = new string_id (c_stringFile, "s_76");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Great. I will head back to her.
boolean hasResponse0 = false;
if (tatooine_entha_draknus_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_77");
utils.setScriptVar (player, "conversation.tatooine_entha_draknus.branchId", 5);
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
npcSpeak (player, pp);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
npcEndConversationWithMessage (player, pp);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int tatooine_entha_draknus_handleBranch5 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: I will, and more. You have done well today, %TU.
//-- [RESPONSE NOTE]
//-- PLAYER: Great. I will head back to her.
if (response == "s_77")
{
//-- [NOTE]
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
//-- NPC: I will comm her that you are going to be arriving, and tell her how much I enjoyed your exciting races.
string_id message = new string_id (c_stringFile, "s_78");
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int tatooine_entha_draknus_handleBranch7 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE] FAILED RACE 3
//-- NPC: As I said; quite the challenging race, don't you think?
//-- [RESPONSE NOTE]
//-- PLAYER: Yes it is, but that's not going to stop me.
if (response == "s_81")
{
tatooine_entha_draknus_action_clearRace3 (player, npc);
//-- [NOTE]
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
tatooine_entha_draknus_action_grantRace3 (player, npc);
//-- NPC: Outstanding, %TU. Your indomitable spirit is admirable.
string_id message = new string_id (c_stringFile, "s_82");
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
npcEndConversationWithMessage (player, pp);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int tatooine_entha_draknus_handleBranch9 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE] FINISHED RACE 2
//-- NPC: Well done. That was fine work.
//-- [RESPONSE NOTE]
//-- PLAYER: Thank you. Do you have any other challenges for me?
if (response == "s_83")
{
//-- [NOTE]
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
//-- NPC: Indeed I do. One final race. It will test you more than either of the first two races. You would do well to complete it on your first try.
string_id message = new string_id (c_stringFile, "s_84");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: No problem, just point me to the race timer.
boolean hasResponse0 = false;
if (tatooine_entha_draknus_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_85");
utils.setScriptVar (player, "conversation.tatooine_entha_draknus.branchId", 10);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int tatooine_entha_draknus_handleBranch10 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Indeed I do. One final race. It will test you more than either of the first two races. You would do well to complete it on your first try.
//-- [RESPONSE NOTE]
//-- PLAYER: No problem, just point me to the race timer.
if (response == "s_85")
{
//-- [NOTE]
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
tatooine_entha_draknus_action_grantRace3 (player, npc);
//-- NPC: One with such bravado has no need of luck, but I wish it yours regardless.
string_id message = new string_id (c_stringFile, "s_86");
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int tatooine_entha_draknus_handleBranch12 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE] FAILED RACE 2
//-- NPC: It is as I thought. You will need more practice with this race.
//-- [RESPONSE NOTE]
//-- PLAYER: Just one more run. I can beat this.
if (response == "s_91")
{
tatooine_entha_draknus_action_clearRace2 (player, npc);
//-- [NOTE]
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
tatooine_entha_draknus_action_grantRace2 (player, npc);
//-- NPC: Good Luck, %TU.
string_id message = new string_id (c_stringFile, "s_92");
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
npcEndConversationWithMessage (player, pp);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int tatooine_entha_draknus_handleBranch14 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE] FINISHED RACE 1
//-- NPC: Congratulations, %TU. You have completed the first race. As I indicated earlier, the race was only a beginner's test.
//-- [RESPONSE NOTE]
//-- PLAYER: I'm guessing you have more races in store for me.
if (response == "s_42")
{
//-- [NOTE]
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
//-- NPC: At least one more.
string_id message = new string_id (c_stringFile, "s_44");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Another test? Why don't we get to the real thing?
boolean hasResponse0 = false;
if (tatooine_entha_draknus_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_46");
utils.setScriptVar (player, "conversation.tatooine_entha_draknus.branchId", 15);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int tatooine_entha_draknus_handleBranch15 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: At least one more.
//-- [RESPONSE NOTE]
//-- PLAYER: Another test? Why don't we get to the real thing?
if (response == "s_46")
{
//-- [NOTE]
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
tatooine_entha_draknus_action_grantRace2 (player, npc);
//-- NPC: This race is a bit more difficult than the first. You may need to repeat it.
string_id message = new string_id (c_stringFile, "s_48");
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int tatooine_entha_draknus_handleBranch17 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE] FAILED RACE 1
//-- NPC: An'Kwee is usually a good judge of pilots. A rare mistake on her part.
//-- [RESPONSE NOTE]
//-- PLAYER: I can win that race. Give me another chance!
if (response == "s_62")
{
//-- [NOTE]
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
tatooine_entha_draknus_action_clearRace1 (player, npc);
//-- NPC: You may attempt these races as many times as it takes you to complete them, %TU. I am sure you will experience better luck this time.
string_id message = new string_id (c_stringFile, "s_64");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Thank you. I am ready.
boolean hasResponse0 = false;
if (tatooine_entha_draknus_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_66");
utils.setScriptVar (player, "conversation.tatooine_entha_draknus.branchId", 18);
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
npcSpeak (player, pp);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
npcEndConversationWithMessage (player, pp);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int tatooine_entha_draknus_handleBranch18 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: You may attempt these races as many times as it takes you to complete them, %TU. I am sure you will experience better luck this time.
//-- [RESPONSE NOTE]
//-- PLAYER: Thank you. I am ready.
if (response == "s_66")
{
//-- [NOTE]
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
tatooine_entha_draknus_action_grantRace1 (player, npc);
//-- NPC: May luck forgive your mistakes, %TU.
string_id message = new string_id (c_stringFile, "s_68");
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
npcEndConversationWithMessage (player, pp);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int tatooine_entha_draknus_handleBranch20 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE] INTRODUCTION
//-- NPC: An'Kwee says you can race, %TU. I will have to see for myself. I don't know you so I am going to give you an easy race. It will not take long, and we will see soon enough if you can follow a course.
//-- [RESPONSE NOTE]
//-- PLAYER: That won't be a problem.
if (response == "s_94")
{
//-- [NOTE]
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
//-- NPC: Excellent. At least you talk as if you were a speeder pilot. We shall soon see, no?
string_id message = new string_id (c_stringFile, "s_96");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Let's go Draknus, I want to race now.
boolean hasResponse0 = false;
if (tatooine_entha_draknus_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_98");
utils.setScriptVar (player, "conversation.tatooine_entha_draknus.branchId", 21);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: I don't have a speeder.
if (response == "s_102")
{
//-- [NOTE]
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
//-- NPC: Why would you come to a speeder race without a speeder?
string_id message = new string_id (c_stringFile, "s_104");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I thought I could get one here.
boolean hasResponse0 = false;
if (tatooine_entha_draknus_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_106");
utils.setScriptVar (player, "conversation.tatooine_entha_draknus.branchId", 23);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int tatooine_entha_draknus_handleBranch21 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Excellent. At least you talk as if you were a speeder pilot. We shall soon see, no?
//-- [RESPONSE NOTE]
//-- PLAYER: Let's go Draknus, I want to race now.
if (response == "s_98")
{
//-- [NOTE]
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
tatooine_entha_draknus_action_grantRace1 (player, npc);
//-- NPC: As you wish, %TU.
string_id message = new string_id (c_stringFile, "s_100");
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
npcEndConversationWithMessage (player, pp);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int tatooine_entha_draknus_handleBranch23 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Why would you come to a speeder race without a speeder?
//-- [RESPONSE NOTE]
//-- PLAYER: I thought I could get one here.
if (response == "s_106")
{
//-- [NOTE]
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
//-- NPC: You should check the bazaar, %TU. We do not sell speeders here.
string_id message = new string_id (c_stringFile, "s_108");
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
npcEndConversationWithMessage (player, pp);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int tatooine_entha_draknus_handleBranch25 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE] DEFAULT
//-- NPC: Hey. Why don't you go pick me up a couple of chewy chuba combos from Byxle's in Mos Eisley?
//-- [RESPONSE NOTE]
//-- PLAYER: Why would I want to do that?
if (response == "s_112")
{
//-- [NOTE]
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
//-- NPC: You could get you some too.
string_id message = new string_id (c_stringFile, "s_114");
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int tatooine_entha_draknus_handleBranch27 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE] OFF COURSE RACE 3
//-- NPC: This is far too important of a race to have you waste your time talking to me.
//-- [RESPONSE NOTE]
//-- PLAYER: Good point. I'll get back in the race.
if (response == "s_79")
{
//-- [NOTE]
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
//-- NPC: Indeed.
string_id message = new string_id (c_stringFile, "s_80");
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int tatooine_entha_draknus_handleBranch29 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE] OFF COURSE RACE 2
//-- NPC: Why are you talking to me?
//-- [RESPONSE NOTE]
//-- PLAYER: Why wouldn't I talk to you?
if (response == "s_87")
{
//-- [NOTE]
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
//-- NPC: Because you are in a race, %TU.
string_id message = new string_id (c_stringFile, "s_88");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I knew that.
boolean hasResponse0 = false;
if (tatooine_entha_draknus_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_89");
utils.setScriptVar (player, "conversation.tatooine_entha_draknus.branchId", 30);
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
npcSpeak (player, pp);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
npcEndConversationWithMessage (player, pp);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int tatooine_entha_draknus_handleBranch30 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: Because you are in a race, %TU.
//-- [RESPONSE NOTE]
//-- PLAYER: I knew that.
if (response == "s_89")
{
//-- [NOTE]
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
//-- NPC: Of course. Please finish the race.
string_id message = new string_id (c_stringFile, "s_93");
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int tatooine_entha_draknus_handleBranch32 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE] OFF COURSE RACE 1
//-- NPC: I am thinking you are off-course, %TU. There are no waypoints in the vicinity.
//-- [RESPONSE NOTE]
//-- PLAYER: What do you mean, Draknus?
if (response == "s_101")
{
//-- [NOTE]
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
//-- NPC: You are currently involved in a speeder race.
string_id message = new string_id (c_stringFile, "s_105");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Oh really?
boolean hasResponse0 = false;
if (tatooine_entha_draknus_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_109");
utils.setScriptVar (player, "conversation.tatooine_entha_draknus.branchId", 33);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int tatooine_entha_draknus_handleBranch33 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: You are currently involved in a speeder race.
//-- [RESPONSE NOTE]
//-- PLAYER: Oh really?
if (response == "s_109")
{
//-- [NOTE]
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
//-- NPC: Indeed. Please resume the race.
string_id message = new string_id (c_stringFile, "s_113");
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
// ======================================================================
// User Script Triggers
// ======================================================================
trigger OnInitialize ()
{
if ((!isTangible (self)) || (isPlayer (self)))
detachScript(self, "conversation.tatooine_entha_draknus");
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.tatooine_entha_draknus");
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] RETURNED
if (tatooine_entha_draknus_condition_completedPod (player, npc))
{
//-- NPC: No more races, %TU.
string_id message = new string_id (c_stringFile, "s_4");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Why not?
boolean hasResponse0 = false;
if (tatooine_entha_draknus_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_71");
utils.setScriptVar (player, "conversation.tatooine_entha_draknus.branchId", 1);
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
npcStartConversation (player, npc, "tatooine_entha_draknus", null, pp, responses);
}
else
{
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
chat.chat (npc, player, null, null, pp);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE] REWARD
if (tatooine_entha_draknus_condition_completedRace3 (player, npc))
{
tatooine_entha_draknus_action_signalReturnDraknus (player, npc);
//-- NPC: It appears you are quite the racer after all. Please return to An'Kwee with my compliments. Your tests were quite entertaining.
string_id message = new string_id (c_stringFile, "s_10");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: So you will tell her I'm a good racer?
boolean hasResponse0 = false;
if (tatooine_entha_draknus_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_75");
utils.setScriptVar (player, "conversation.tatooine_entha_draknus.branchId", 4);
npcStartConversation (player, npc, "tatooine_entha_draknus", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE] FAILED RACE 3
if (tatooine_entha_draknus_condition_onRace3 (player, npc))
{
//-- NPC: As I said; quite the challenging race, don't you think?
string_id message = new string_id (c_stringFile, "s_20");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Yes it is, but that's not going to stop me.
boolean hasResponse0 = false;
if (tatooine_entha_draknus_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_81");
utils.setScriptVar (player, "conversation.tatooine_entha_draknus.branchId", 7);
npcStartConversation (player, npc, "tatooine_entha_draknus", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE] FINISHED RACE 2
if (tatooine_entha_draknus_condition_completedRace2 (player, npc))
{
tatooine_entha_draknus_action_signalReturnDraknus (player, npc);
//-- NPC: Well done. That was fine work.
string_id message = new string_id (c_stringFile, "s_24");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Thank you. Do you have any other challenges for me?
boolean hasResponse0 = false;
if (tatooine_entha_draknus_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_83");
utils.setScriptVar (player, "conversation.tatooine_entha_draknus.branchId", 9);
npcStartConversation (player, npc, "tatooine_entha_draknus", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE] FAILED RACE 2
if (tatooine_entha_draknus_condition_onRace2 (player, npc))
{
//-- NPC: It is as I thought. You will need more practice with this race.
string_id message = new string_id (c_stringFile, "s_36");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Just one more run. I can beat this.
boolean hasResponse0 = false;
if (tatooine_entha_draknus_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_91");
utils.setScriptVar (player, "conversation.tatooine_entha_draknus.branchId", 12);
npcStartConversation (player, npc, "tatooine_entha_draknus", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE] FINISHED RACE 1
if (tatooine_entha_draknus_condition_completedRace1 (player, npc))
{
tatooine_entha_draknus_action_signalReturnDraknus (player, npc);
//-- NPC: Congratulations, %TU. You have completed the first race. As I indicated earlier, the race was only a beginner's test.
string_id message = new string_id (c_stringFile, "s_40");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I'm guessing you have more races in store for me.
boolean hasResponse0 = false;
if (tatooine_entha_draknus_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.tatooine_entha_draknus.branchId", 14);
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
npcStartConversation (player, npc, "tatooine_entha_draknus", null, pp, responses);
}
else
{
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
chat.chat (npc, player, null, null, pp);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE] FAILED RACE 1
if (tatooine_entha_draknus_condition_onRace1 (player, npc))
{
//-- NPC: An'Kwee is usually a good judge of pilots. A rare mistake on her part.
string_id message = new string_id (c_stringFile, "s_60");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: I can win that race. Give me another chance!
boolean hasResponse0 = false;
if (tatooine_entha_draknus_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_62");
utils.setScriptVar (player, "conversation.tatooine_entha_draknus.branchId", 17);
npcStartConversation (player, npc, "tatooine_entha_draknus", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE] INTRODUCTION
if (tatooine_entha_draknus_condition_onTalkedAnKwee (player, npc))
{
doAnimationAction (npc, "explain");
tatooine_entha_draknus_action_signalGotoDraknus (player, npc);
//-- NPC: An'Kwee says you can race, %TU. I will have to see for myself. I don't know you so I am going to give you an easy race. It will not take long, and we will see soon enough if you can follow a course.
string_id message = new string_id (c_stringFile, "s_70");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: That won't be a problem.
boolean hasResponse0 = false;
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I don't have a speeder.
boolean hasResponse1 = false;
if (tatooine_entha_draknus_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_94");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_102");
utils.setScriptVar (player, "conversation.tatooine_entha_draknus.branchId", 20);
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
npcStartConversation (player, npc, "tatooine_entha_draknus", null, pp, responses);
}
else
{
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
chat.chat (npc, player, null, null, pp);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE] DEFAULT
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
//-- NPC: Hey. Why don't you go pick me up a couple of chewy chuba combos from Byxle's in Mos Eisley?
string_id message = new string_id (c_stringFile, "s_110");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Why would I want to do that?
boolean hasResponse0 = false;
if (tatooine_entha_draknus_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_112");
utils.setScriptVar (player, "conversation.tatooine_entha_draknus.branchId", 25);
npcStartConversation (player, npc, "tatooine_entha_draknus", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE] OFF COURSE RACE 3
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
//-- NPC: This is far too important of a race to have you waste your time talking to me.
string_id message = new string_id (c_stringFile, "s_57");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Good point. I'll get back in the race.
boolean hasResponse0 = false;
if (tatooine_entha_draknus_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_79");
utils.setScriptVar (player, "conversation.tatooine_entha_draknus.branchId", 27);
npcStartConversation (player, npc, "tatooine_entha_draknus", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE] OFF COURSE RACE 2
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
//-- NPC: Why are you talking to me?
string_id message = new string_id (c_stringFile, "s_63");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Why wouldn't I talk to you?
boolean hasResponse0 = false;
if (tatooine_entha_draknus_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_87");
utils.setScriptVar (player, "conversation.tatooine_entha_draknus.branchId", 29);
npcStartConversation (player, npc, "tatooine_entha_draknus", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE] OFF COURSE RACE 1
if (tatooine_entha_draknus_condition__defaultCondition (player, npc))
{
//-- NPC: I am thinking you are off-course, %TU. There are no waypoints in the vicinity.
string_id message = new string_id (c_stringFile, "s_97");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: What do you mean, Draknus?
boolean hasResponse0 = false;
if (tatooine_entha_draknus_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_101");
utils.setScriptVar (player, "conversation.tatooine_entha_draknus.branchId", 32);
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
npcStartConversation (player, npc, "tatooine_entha_draknus", null, pp, responses);
}
else
{
prose_package pp = new prose_package ();
pp.stringId = message;
pp.actor.set (player);
pp.target.set (npc);
chat.chat (npc, player, null, null, pp);
}
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 != "tatooine_entha_draknus")
return SCRIPT_CONTINUE;
obj_id npc = self;
int branchId = utils.getIntScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
if (branchId == 1 && tatooine_entha_draknus_handleBranch1 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 2 && tatooine_entha_draknus_handleBranch2 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 4 && tatooine_entha_draknus_handleBranch4 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 5 && tatooine_entha_draknus_handleBranch5 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 7 && tatooine_entha_draknus_handleBranch7 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 9 && tatooine_entha_draknus_handleBranch9 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 10 && tatooine_entha_draknus_handleBranch10 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 12 && tatooine_entha_draknus_handleBranch12 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 14 && tatooine_entha_draknus_handleBranch14 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 15 && tatooine_entha_draknus_handleBranch15 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 17 && tatooine_entha_draknus_handleBranch17 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 18 && tatooine_entha_draknus_handleBranch18 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 20 && tatooine_entha_draknus_handleBranch20 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 21 && tatooine_entha_draknus_handleBranch21 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 23 && tatooine_entha_draknus_handleBranch23 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 25 && tatooine_entha_draknus_handleBranch25 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 27 && tatooine_entha_draknus_handleBranch27 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 29 && tatooine_entha_draknus_handleBranch29 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 30 && tatooine_entha_draknus_handleBranch30 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 32 && tatooine_entha_draknus_handleBranch32 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 33 && tatooine_entha_draknus_handleBranch33 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
chat.chat (npc, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
utils.removeScriptVar (player, "conversation.tatooine_entha_draknus.branchId");
return SCRIPT_CONTINUE;
}
// ======================================================================