mirror of
https://bitbucket.org/seefoe/dsrc.git
synced 2026-07-31 01:15:55 -04:00
8862 lines
244 KiB
Plaintext
8862 lines
244 KiB
Plaintext
// ======================================================================
|
|
//
|
|
// azure_cabal_hoolar.script
|
|
//
|
|
//
|
|
//
|
|
// Created with SwgConversationEditor 1.36 - DO NOT EDIT THIS AUTO-GENERATED FILE!
|
|
//
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Library Includes
|
|
// ======================================================================
|
|
|
|
include library.ai_lib;
|
|
include library.chat;
|
|
include library.combat;
|
|
include library.groundquests;
|
|
include library.money;
|
|
include library.utils;
|
|
|
|
// ======================================================================
|
|
// Script Constants
|
|
// ======================================================================
|
|
|
|
string c_stringFile = "conversation/azure_cabal_hoolar";
|
|
|
|
// ======================================================================
|
|
// Script Conditions
|
|
// ======================================================================
|
|
|
|
boolean azure_cabal_hoolar_condition__defaultCondition (obj_id player, obj_id npc)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean azure_cabal_hoolar_condition_onAssignment_30ENF_Q1B (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isTaskActive(player, "ac_repeater_loruna_enf_30_dnpc2_hoolar_01", "ac_30_hoolar_01_dm2");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean azure_cabal_hoolar_condition_onAssignment_30ENF_Q1C (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isTaskActive(player, "ac_repeater_loruna_enf_30_dnpc2_hoolar_01", "ac_30_hoolar_01_dml1");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean azure_cabal_hoolar_condition_onAssignment_30ENF_Q1D (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isTaskActive(player, "ac_repeater_loruna_enf_30_dnpc2_hoolar_01", "ac_30_hoolar_01_dml2");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean azure_cabal_hoolar_condition_onTask_30ENF_Q1_Return (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isTaskActive(player, "ac_repeater_loruna_enf_30_dnpc2_hoolar_01", "ac_30_hoolar_01_wfs_quest_complete");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean azure_cabal_hoolar_condition_onTask_30ENF_Repeater_Q1orQ2 (obj_id player, obj_id npc)
|
|
{
|
|
return (groundquests.isTaskActive(player, "ac_repeater_loruna_enf_30", "ac_repeater_loruna_enf_30_WFS_hoolar_01") ||
|
|
groundquests.isTaskActive(player, "ac_repeater_loruna_enf_30", "ac_repeater_loruna_enf_30_WFS_hoolar_02"));
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean azure_cabal_hoolar_condition_onQuest_30ENF_Q1 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isQuestActive(player, "ac_repeater_loruna_enf_30_dnpc2_hoolar_01");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean azure_cabal_hoolar_condition_onAssignment_30ENF_Q2A (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isTaskActive(player, "ac_repeater_loruna_enf_30_dnpc2_hoolar_02", "ac_30_hoolar_02_dm1");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean azure_cabal_hoolar_condition_onAssignment_30ENF_Q2B (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isTaskActive(player, "ac_repeater_loruna_enf_30_dnpc2_hoolar_02", "ac_30_hoolar_02_dm2");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean azure_cabal_hoolar_condition_onAssignment_30ENF_Q2C (obj_id player, obj_id npc)
|
|
{
|
|
return (groundquests.isTaskActive(player, "ac_repeater_loruna_enf_30_dnpc2_hoolar_02", "ac_30_hoolar_02_dml1") ||
|
|
groundquests.isTaskActive(player, "ac_repeater_loruna_enf_30_dnpc2_hoolar_02", "ac_30_hoolar_02_dml1_retrieve"));
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean azure_cabal_hoolar_condition_onAssignment_30ENF_Q2D (obj_id player, obj_id npc)
|
|
{
|
|
return (groundquests.isTaskActive(player, "ac_repeater_loruna_enf_30_dnpc2_hoolar_02", "ac_30_hoolar_02_dml2_retrieve") ||
|
|
groundquests.isTaskActive(player, "ac_repeater_loruna_enf_30_dnpc2_hoolar_02", "ac_30_hoolar_02_dml2"));
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean azure_cabal_hoolar_condition_onAssignment_30ENF_Q1A (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isTaskActive(player, "ac_repeater_loruna_enf_30_dnpc2_hoolar_01", "ac_30_hoolar_01_dm1");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean azure_cabal_hoolar_condition_onTask_30ENF_Q2_Return (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isTaskActive(player, "ac_repeater_loruna_enf_30_dnpc2_hoolar_02", "ac_30_hoolar_02_wfs_quest_complete");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean azure_cabal_hoolar_condition_onQuest_30ENF_Q2 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isQuestActive(player, "ac_repeater_loruna_enf_30_dnpc2_hoolar_02");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean azure_cabal_hoolar_condition_onTask_30ENF_Repeater_Q1 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isTaskActive(player, "ac_repeater_loruna_enf_30", "ac_repeater_loruna_enf_30_WFS_hoolar_01");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean azure_cabal_hoolar_condition_onTask_30ENF_Repeater_Q2 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isTaskActive(player, "ac_repeater_loruna_enf_30", "ac_repeater_loruna_enf_30_WFS_hoolar_02");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean azure_cabal_hoolar_condition_onQuest_30ENF_Q1orQ2 (obj_id player, obj_id npc)
|
|
{
|
|
return (groundquests.isQuestActive(player, "ac_repeater_loruna_enf_30_dnpc2_hoolar_01") ||
|
|
groundquests.isQuestActive(player, "ac_repeater_loruna_enf_30_dnpc2_hoolar_02"));
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Actions
|
|
// ======================================================================
|
|
|
|
void azure_cabal_hoolar_action_grant30Q1 (obj_id player, obj_id npc)
|
|
{
|
|
faceTo(npc, player);
|
|
groundquests.grantQuest(player, "quest/ac_repeater_loruna_enf_30_dnpc2_hoolar_01");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void azure_cabal_hoolar_action_signal_30ENF_ClearRepeaterQuest (obj_id player, obj_id npc)
|
|
{
|
|
faceTo(npc, player);
|
|
groundquests.sendSignal(player, "ac_repeater_loruna_enf_30_signal_clear_quest");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void azure_cabal_hoolar_action_facePlayer (obj_id player, obj_id npc)
|
|
{
|
|
faceTo(npc, player);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void azure_cabal_hoolar_action_grant30Q2 (obj_id player, obj_id npc)
|
|
{
|
|
faceTo(npc, player);
|
|
groundquests.grantQuest(player, "quest/ac_repeater_loruna_enf_30_dnpc2_hoolar_02");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void azure_cabal_hoolar_action_signal_30ENF_CompleteQuest (obj_id player, obj_id npc)
|
|
{
|
|
faceTo(npc, player);
|
|
groundquests.sendSignal(player, "ac_quest_complete");
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script %TO Tokens
|
|
// ======================================================================
|
|
|
|
string azure_cabal_hoolar_tokenTO_playerFirstName (obj_id player, obj_id npc)
|
|
{
|
|
string name = getFirstName(player);
|
|
return name;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
string azure_cabal_hoolar_tokenTO_playersProfession (obj_id player, obj_id npc)
|
|
{
|
|
return new string();
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script %DI Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Script %DF Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// handleBranch<n> Functions
|
|
// ======================================================================
|
|
|
|
int azure_cabal_hoolar_handleBranch1 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I have an assignment for you, if you're ready. Until you agree to help me, I can say no more. No more at all.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I accept the assignment
|
|
if (response == "s_170")
|
|
{
|
|
azure_cabal_hoolar_action_grant30Q1 (player, npc);
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Yes, good! I will upload all of the details. After you read your journal, I will give you answers.
|
|
string_id message = new string_id (c_stringFile, "s_172");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Not interested.
|
|
if (response == "s_171")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You run away like a youngling? You should know that if you abandon this assignment, the Cabal will throw you out.
|
|
string_id message = new string_id (c_stringFile, "s_181");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: On second thought, I will do it.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want out.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_182");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_183");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch3 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You run away like a youngling? You should know that if you abandon this assignment, the Cabal will throw you out.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: On second thought, I will do it.
|
|
if (response == "s_182")
|
|
{
|
|
azure_cabal_hoolar_action_grant30Q1 (player, npc);
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Yes, good! I will upload all of the details. After you read your journal, I will give you answers.
|
|
string_id message = new string_id (c_stringFile, "s_172");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I want out.
|
|
if (response == "s_183")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Then go away from me.
|
|
string_id message = new string_id (c_stringFile, "s_185");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch5 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Loruna likes you very much. Very much! You will help me earn the Cabal many credits. Perhaps I will even earn enough credits to once more visit my home. The blessed Mother Jungle!
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Just upload the data.
|
|
if (response == "s_175")
|
|
{
|
|
azure_cabal_hoolar_action_grant30Q2 (player, npc);
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: If we work together Frosch Industries will be ruined and I can go home!
|
|
string_id message = new string_id (c_stringFile, "s_180");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Not interested.
|
|
if (response == "s_176")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Are you sure? If you refuse this assignment, I will offer it not again.
|
|
string_id message = new string_id (c_stringFile, "s_177");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: On second thought, I'll take it.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm not interested.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_178");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_179");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 7);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch7 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Are you sure? If you refuse this assignment, I will offer it not again.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: On second thought, I'll take it.
|
|
if (response == "s_178")
|
|
{
|
|
azure_cabal_hoolar_action_grant30Q2 (player, npc);
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: If we work together Frosch Industries will be ruined and I can go home!
|
|
string_id message = new string_id (c_stringFile, "s_180");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm not interested.
|
|
if (response == "s_179")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Then go your way.
|
|
string_id message = new string_id (c_stringFile, "s_186");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch9 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The Frosch are reeling. Excellent work!
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Do you have any more assignments?
|
|
if (response == "s_196")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: I will contact Loruna and tell her you want more work. She'll comm you soon.
|
|
string_id message = new string_id (c_stringFile, "s_198");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch11 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You have done a great job. Great job..
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Anything else you need?
|
|
if (response == "s_200")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: I will contact Loruna and tell her you want more work. She'll comm you soon.
|
|
string_id message = new string_id (c_stringFile, "s_198");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch12 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Why are you still here? Do you need my help?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes.
|
|
if (response == "s_193")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1A (player, npc))
|
|
{
|
|
//-- NPC: What would you know?
|
|
string_id message = new string_id (c_stringFile, "s_197");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Frosch Industries.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Assignment specifics.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_216");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_217");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 13);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1B (player, npc))
|
|
{
|
|
//-- NPC: You are going to be part of a multiple-stage mission against the Frosch Research Station. Simply slip in, eliminate eight Frosch Guards and slip out.
|
|
string_id message = new string_id (c_stringFile, "s_199");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me more about Frosch Industries.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want more specifics about my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_239");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_240");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 20);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1C (player, npc))
|
|
{
|
|
//-- NPC: We are staging another sample-gathering operation against Frosch Industries. This time you've been tapped to lead the assault.
|
|
string_id message = new string_id (c_stringFile, "s_201");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Am I going into the Frosch Research Station?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want more specifics about the assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_108");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_109");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 26);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1D (player, npc))
|
|
{
|
|
//-- NPC: Our client has had a breakthrough of their own in the bacta research race. That changes our operation status slightly.
|
|
string_id message = new string_id (c_stringFile, "s_203");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: How?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Clarify my orders for me.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_87");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_106");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 34);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You should read your journal. Perhaps it holds the answers you seek.
|
|
string_id message = new string_id (c_stringFile, "s_167");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No, just checking in.
|
|
if (response == "s_194")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch13 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What would you know?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me about Frosch Industries.
|
|
if (response == "s_216")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: I can only tell you what I know. Our client wants us to stop their research. Research about healing.
|
|
string_id message = new string_id (c_stringFile, "s_218");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Why would they want that?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Actually, I want more information about my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_220");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_221");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 14);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Assignment specifics.
|
|
if (response == "s_217")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: If we kill a few Frosch employees, it disrupts their work and serves our client. Our client pays us and I like that very much.
|
|
string_id message = new string_id (c_stringFile, "s_219");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: How many do I kill?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have other questions.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_228");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_227");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 17);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch14 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I can only tell you what I know. Our client wants us to stop their research. Research about healing.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Why would they want that?
|
|
if (response == "s_220")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Perhaps our client is researching parallel technology. That makes sense, does it not? Why else prevent someone from learning a better way to heal.
|
|
string_id message = new string_id (c_stringFile, "s_222");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Why should we slow progress?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'd like more information about my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_223");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_224");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 15);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Actually, I want more information about my assignment.
|
|
if (response == "s_221")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1A (player, npc))
|
|
{
|
|
//-- NPC: What would you know?
|
|
string_id message = new string_id (c_stringFile, "s_197");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Frosch Industries.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Assignment specifics.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_216");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_217");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 13);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1B (player, npc))
|
|
{
|
|
//-- NPC: You are going to be part of a multiple-stage mission against the Frosch Research Station. Simply slip in, eliminate eight Frosch Guards and slip out.
|
|
string_id message = new string_id (c_stringFile, "s_199");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me more about Frosch Industries.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want more specifics about my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_239");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_240");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 20);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1C (player, npc))
|
|
{
|
|
//-- NPC: We are staging another sample-gathering operation against Frosch Industries. This time you've been tapped to lead the assault.
|
|
string_id message = new string_id (c_stringFile, "s_201");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Am I going into the Frosch Research Station?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want more specifics about the assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_108");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_109");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 26);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1D (player, npc))
|
|
{
|
|
//-- NPC: Our client has had a breakthrough of their own in the bacta research race. That changes our operation status slightly.
|
|
string_id message = new string_id (c_stringFile, "s_203");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: How?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Clarify my orders for me.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_87");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_106");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 34);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You should read your journal. Perhaps it holds the answers you seek.
|
|
string_id message = new string_id (c_stringFile, "s_167");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch15 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Perhaps our client is researching parallel technology. That makes sense, does it not? Why else prevent someone from learning a better way to heal.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Why should we slow progress?
|
|
if (response == "s_223")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: We perform a service. A service that helps our client helps us! Frosch or our client will eventually release better bacta technology. Until then, we profit from their research-race.
|
|
string_id message = new string_id (c_stringFile, "s_225");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: So what should I do?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_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_237");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 16);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'd like more information about my assignment.
|
|
if (response == "s_224")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1A (player, npc))
|
|
{
|
|
//-- NPC: What would you know?
|
|
string_id message = new string_id (c_stringFile, "s_197");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Frosch Industries.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Assignment specifics.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_216");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_217");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 13);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1B (player, npc))
|
|
{
|
|
//-- NPC: You are going to be part of a multiple-stage mission against the Frosch Research Station. Simply slip in, eliminate eight Frosch Guards and slip out.
|
|
string_id message = new string_id (c_stringFile, "s_199");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me more about Frosch Industries.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want more specifics about my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_239");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_240");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 20);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1C (player, npc))
|
|
{
|
|
//-- NPC: We are staging another sample-gathering operation against Frosch Industries. This time you've been tapped to lead the assault.
|
|
string_id message = new string_id (c_stringFile, "s_201");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Am I going into the Frosch Research Station?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want more specifics about the assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_108");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_109");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 26);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1D (player, npc))
|
|
{
|
|
//-- NPC: Our client has had a breakthrough of their own in the bacta research race. That changes our operation status slightly.
|
|
string_id message = new string_id (c_stringFile, "s_203");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: How?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Clarify my orders for me.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_87");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_106");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 34);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You should read your journal. Perhaps it holds the answers you seek.
|
|
string_id message = new string_id (c_stringFile, "s_167");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch16 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: We perform a service. A service that helps our client helps us! Frosch or our client will eventually release better bacta technology. Until then, we profit from their research-race.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: So what should I do?
|
|
if (response == "s_237")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: If we kill a few Frosch employees, it disrupts their work and serves our client. Our client pays us and I like that very much.
|
|
string_id message = new string_id (c_stringFile, "s_219");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: How many do I kill?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have other questions.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_228");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_227");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 17);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch17 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: If we kill a few Frosch employees, it disrupts their work and serves our client. Our client pays us and I like that very much.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: How many do I kill?
|
|
if (response == "s_228")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Only twelve. That is enough.
|
|
string_id message = new string_id (c_stringFile, "s_229");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Does it matter which Frosch employees I go after?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have other questions, too.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Sounds good to me. I'm on my way.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_230");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_231");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_233");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 18);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I have other questions.
|
|
if (response == "s_227")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1A (player, npc))
|
|
{
|
|
//-- NPC: What would you know?
|
|
string_id message = new string_id (c_stringFile, "s_197");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Frosch Industries.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Assignment specifics.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_216");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_217");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 13);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1B (player, npc))
|
|
{
|
|
//-- NPC: You are going to be part of a multiple-stage mission against the Frosch Research Station. Simply slip in, eliminate eight Frosch Guards and slip out.
|
|
string_id message = new string_id (c_stringFile, "s_199");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me more about Frosch Industries.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want more specifics about my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_239");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_240");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 20);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1C (player, npc))
|
|
{
|
|
//-- NPC: We are staging another sample-gathering operation against Frosch Industries. This time you've been tapped to lead the assault.
|
|
string_id message = new string_id (c_stringFile, "s_201");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Am I going into the Frosch Research Station?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want more specifics about the assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_108");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_109");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 26);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1D (player, npc))
|
|
{
|
|
//-- NPC: Our client has had a breakthrough of their own in the bacta research race. That changes our operation status slightly.
|
|
string_id message = new string_id (c_stringFile, "s_203");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: How?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Clarify my orders for me.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_87");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_106");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 34);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You should read your journal. Perhaps it holds the answers you seek.
|
|
string_id message = new string_id (c_stringFile, "s_167");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch18 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Only twelve. That is enough.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Does it matter which Frosch employees I go after?
|
|
if (response == "s_230")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Not at all, not at all!
|
|
string_id message = new string_id (c_stringFile, "s_232");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll take care of them.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I had another question.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_235");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_236");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 19);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I have other questions, too.
|
|
if (response == "s_231")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1A (player, npc))
|
|
{
|
|
//-- NPC: What would you know?
|
|
string_id message = new string_id (c_stringFile, "s_197");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Frosch Industries.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Assignment specifics.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_216");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_217");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 13);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1B (player, npc))
|
|
{
|
|
//-- NPC: You are going to be part of a multiple-stage mission against the Frosch Research Station. Simply slip in, eliminate eight Frosch Guards and slip out.
|
|
string_id message = new string_id (c_stringFile, "s_199");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me more about Frosch Industries.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want more specifics about my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_239");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_240");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 20);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1C (player, npc))
|
|
{
|
|
//-- NPC: We are staging another sample-gathering operation against Frosch Industries. This time you've been tapped to lead the assault.
|
|
string_id message = new string_id (c_stringFile, "s_201");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Am I going into the Frosch Research Station?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want more specifics about the assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_108");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_109");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 26);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1D (player, npc))
|
|
{
|
|
//-- NPC: Our client has had a breakthrough of their own in the bacta research race. That changes our operation status slightly.
|
|
string_id message = new string_id (c_stringFile, "s_203");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: How?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Clarify my orders for me.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_87");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_106");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 34);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You should read your journal. Perhaps it holds the answers you seek.
|
|
string_id message = new string_id (c_stringFile, "s_167");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Sounds good to me. I'm on my way.
|
|
if (response == "s_233")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch19 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Not at all, not at all!
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'll take care of them.
|
|
if (response == "s_235")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I had another question.
|
|
if (response == "s_236")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1A (player, npc))
|
|
{
|
|
//-- NPC: What would you know?
|
|
string_id message = new string_id (c_stringFile, "s_197");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Frosch Industries.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Assignment specifics.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_216");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_217");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 13);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1B (player, npc))
|
|
{
|
|
//-- NPC: You are going to be part of a multiple-stage mission against the Frosch Research Station. Simply slip in, eliminate eight Frosch Guards and slip out.
|
|
string_id message = new string_id (c_stringFile, "s_199");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me more about Frosch Industries.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want more specifics about my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_239");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_240");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 20);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1C (player, npc))
|
|
{
|
|
//-- NPC: We are staging another sample-gathering operation against Frosch Industries. This time you've been tapped to lead the assault.
|
|
string_id message = new string_id (c_stringFile, "s_201");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Am I going into the Frosch Research Station?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want more specifics about the assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_108");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_109");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 26);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1D (player, npc))
|
|
{
|
|
//-- NPC: Our client has had a breakthrough of their own in the bacta research race. That changes our operation status slightly.
|
|
string_id message = new string_id (c_stringFile, "s_203");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: How?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Clarify my orders for me.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_87");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_106");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 34);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You should read your journal. Perhaps it holds the answers you seek.
|
|
string_id message = new string_id (c_stringFile, "s_167");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch20 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You are going to be part of a multiple-stage mission against the Frosch Research Station. Simply slip in, eliminate eight Frosch Guards and slip out.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me more about Frosch Industries.
|
|
if (response == "s_239")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Beyond the basics, I know very little. They are researching a new form of bacta treatment, I know that. However, improving bacta technology is something our client is interested, too. Interested enough pay for interference with Frosch Industries.
|
|
string_id message = new string_id (c_stringFile, "s_241");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Industrial espionage?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want more information about the assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm ready to do the job.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_243");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_252");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_244");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 21);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I want more specifics about my assignment.
|
|
if (response == "s_240")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: This is as simple as an assignment can be. Locate five guards within the Frosch Research Station and eliminate them. Others will follow behind and complete the rest of the objectives.
|
|
string_id message = new string_id (c_stringFile, "s_242");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: That's it?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: That's all I need to know.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_245");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_246");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 23);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch21 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Beyond the basics, I know very little. They are researching a new form of bacta treatment, I know that. However, improving bacta technology is something our client is interested, too. Interested enough pay for interference with Frosch Industries.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Industrial espionage?
|
|
if (response == "s_243")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You could call it that. Your portion of the task is simple extermination. Others have been assigned to handle the espionage portions of the operation.
|
|
string_id message = new string_id (c_stringFile, "s_253");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I want a little more detail about the assignment.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm ready to go.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_254");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_255");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 22);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I want more information about the assignment.
|
|
if (response == "s_252")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: This is as simple as an assignment can be. Locate five guards within the Frosch Research Station and eliminate them. Others will follow behind and complete the rest of the objectives.
|
|
string_id message = new string_id (c_stringFile, "s_242");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: That's it?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: That's all I need to know.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_245");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_246");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 23);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm ready to do the job.
|
|
if (response == "s_244")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch22 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You could call it that. Your portion of the task is simple extermination. Others have been assigned to handle the espionage portions of the operation.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I want a little more detail about the assignment.
|
|
if (response == "s_254")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: This is as simple as an assignment can be. Locate five guards within the Frosch Research Station and eliminate them. Others will follow behind and complete the rest of the objectives.
|
|
string_id message = new string_id (c_stringFile, "s_242");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: That's it?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: That's all I need to know.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_245");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_246");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 23);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm ready to go.
|
|
if (response == "s_255")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch23 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: This is as simple as an assignment can be. Locate five guards within the Frosch Research Station and eliminate them. Others will follow behind and complete the rest of the objectives.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: That's it?
|
|
if (response == "s_245")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Why push for more? You will be paid handsomely for your efforts and are not responsible for anything beyond a little mayhem. Count the blessings the Mother Jungle bestows on you.
|
|
string_id message = new string_id (c_stringFile, "s_247");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Where can I find Frosch Guards?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: As good as done.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_248");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_249");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 24);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: That's all I need to know.
|
|
if (response == "s_246")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch24 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Why push for more? You will be paid handsomely for your efforts and are not responsible for anything beyond a little mayhem. Count the blessings the Mother Jungle bestows on you.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where can I find Frosch Guards?
|
|
if (response == "s_248")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: They are no doubt patrolling the corridors of the Frosch Research Station and the area around it.
|
|
string_id message = new string_id (c_stringFile, "s_250");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll go now.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_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_251");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 25);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: As good as done.
|
|
if (response == "s_249")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch25 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: They are no doubt patrolling the corridors of the Frosch Research Station and the area around it.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'll go now.
|
|
if (response == "s_251")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch26 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: We are staging another sample-gathering operation against Frosch Industries. This time you've been tapped to lead the assault.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Am I going into the Frosch Research Station?
|
|
if (response == "s_108")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Of course. But this is more than a simple search and destroy mission. Our client needs another sample of the bacta matter Frosch Industries is developing.
|
|
string_id message = new string_id (c_stringFile, "s_110");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Another sample?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want details about the assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_111");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_112");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 27);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I want more specifics about the assignment.
|
|
if (response == "s_109")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Your assignment is simple, really: first, acquire some security codes from Frosch Crypto-analysts.
|
|
string_id message = new string_id (c_stringFile, "s_120");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Is that all?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have another question.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_121");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_123");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 31);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch27 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Of course. But this is more than a simple search and destroy mission. Our client needs another sample of the bacta matter Frosch Industries is developing.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Another sample?
|
|
if (response == "s_111")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: As Frosch research progresses, our client wants to keep pace. The easiest way to do that is to send us... you in to acquire a sample.
|
|
string_id message = new string_id (c_stringFile, "s_113");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: This isn't a fight?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Tell me more about the assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_114");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_118");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 28);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I want details about the assignment.
|
|
if (response == "s_112")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Your assignment is simple, really: first, acquire some security codes from Frosch Crypto-analysts.
|
|
string_id message = new string_id (c_stringFile, "s_120");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Is that all?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have another question.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_121");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_123");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 31);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch28 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: As Frosch research progresses, our client wants to keep pace. The easiest way to do that is to send us... you in to acquire a sample.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: This isn't a fight?
|
|
if (response == "s_114")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Oh, you will have to kill to complete the mission, but that is only a secondary goal. The main point to remember is that you must acquire a sample of the bacta material that they are working on.
|
|
string_id message = new string_id (c_stringFile, "s_115");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I can figure it out from here.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want more assignment specifics.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_116");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_117");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 29);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me more about the assignment.
|
|
if (response == "s_118")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Your assignment is simple, really: first, acquire some security codes from Frosch Crypto-analysts.
|
|
string_id message = new string_id (c_stringFile, "s_120");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Is that all?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have another question.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_121");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_123");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 31);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch29 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Oh, you will have to kill to complete the mission, but that is only a secondary goal. The main point to remember is that you must acquire a sample of the bacta material that they are working on.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I can figure it out from here.
|
|
if (response == "s_116")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: May the Mother Jungle's blessing shower down on you.
|
|
string_id message = new string_id (c_stringFile, "s_119");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I want more assignment specifics.
|
|
if (response == "s_117")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Your assignment is simple, really: first, acquire some security codes from Frosch Crypto-analysts.
|
|
string_id message = new string_id (c_stringFile, "s_120");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Is that all?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have another question.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_121");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_123");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 31);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch31 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Your assignment is simple, really: first, acquire some security codes from Frosch Crypto-analysts.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Is that all?
|
|
if (response == "s_121")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: After you have the codes, you need to locate the bacta tanks in their lab. Use the code to override security on the tanks and take a sample.
|
|
string_id message = new string_id (c_stringFile, "s_122");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: No problem.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Yes, but I have another question first.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_124");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_125");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 32);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I have another question.
|
|
if (response == "s_123")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1A (player, npc))
|
|
{
|
|
//-- NPC: What would you know?
|
|
string_id message = new string_id (c_stringFile, "s_197");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Frosch Industries.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Assignment specifics.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_216");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_217");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 13);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1B (player, npc))
|
|
{
|
|
//-- NPC: You are going to be part of a multiple-stage mission against the Frosch Research Station. Simply slip in, eliminate eight Frosch Guards and slip out.
|
|
string_id message = new string_id (c_stringFile, "s_199");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me more about Frosch Industries.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want more specifics about my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_239");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_240");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 20);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1C (player, npc))
|
|
{
|
|
//-- NPC: We are staging another sample-gathering operation against Frosch Industries. This time you've been tapped to lead the assault.
|
|
string_id message = new string_id (c_stringFile, "s_201");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Am I going into the Frosch Research Station?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want more specifics about the assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_108");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_109");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 26);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1D (player, npc))
|
|
{
|
|
//-- NPC: Our client has had a breakthrough of their own in the bacta research race. That changes our operation status slightly.
|
|
string_id message = new string_id (c_stringFile, "s_203");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: How?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Clarify my orders for me.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_87");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_106");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 34);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You should read your journal. Perhaps it holds the answers you seek.
|
|
string_id message = new string_id (c_stringFile, "s_167");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch32 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: After you have the codes, you need to locate the bacta tanks in their lab. Use the code to override security on the tanks and take a sample.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No problem.
|
|
if (response == "s_124")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the Mother's blessings and hurry back.
|
|
string_id message = new string_id (c_stringFile, "s_126");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, but I have another question first.
|
|
if (response == "s_125")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1A (player, npc))
|
|
{
|
|
//-- NPC: What would you know?
|
|
string_id message = new string_id (c_stringFile, "s_197");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Frosch Industries.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Assignment specifics.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_216");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_217");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 13);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1B (player, npc))
|
|
{
|
|
//-- NPC: You are going to be part of a multiple-stage mission against the Frosch Research Station. Simply slip in, eliminate eight Frosch Guards and slip out.
|
|
string_id message = new string_id (c_stringFile, "s_199");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me more about Frosch Industries.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want more specifics about my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_239");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_240");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 20);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1C (player, npc))
|
|
{
|
|
//-- NPC: We are staging another sample-gathering operation against Frosch Industries. This time you've been tapped to lead the assault.
|
|
string_id message = new string_id (c_stringFile, "s_201");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Am I going into the Frosch Research Station?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want more specifics about the assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_108");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_109");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 26);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1D (player, npc))
|
|
{
|
|
//-- NPC: Our client has had a breakthrough of their own in the bacta research race. That changes our operation status slightly.
|
|
string_id message = new string_id (c_stringFile, "s_203");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: How?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Clarify my orders for me.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_87");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_106");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 34);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You should read your journal. Perhaps it holds the answers you seek.
|
|
string_id message = new string_id (c_stringFile, "s_167");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch34 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Our client has had a breakthrough of their own in the bacta research race. That changes our operation status slightly.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: How?
|
|
if (response == "s_87")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Frosch researchers appear to have fallen behind our client slightly in the race for a better bacta solution. Usually we are activated to obtain samples of Frosch Industries' progress. This time, though, we are to sabotage their research in an attempt to slow them down.
|
|
string_id message = new string_id (c_stringFile, "s_89");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What slowed Frosch down?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Enough said. Tell me about the assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_91");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_104");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 35);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Clarify my orders for me.
|
|
if (response == "s_106")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You must enter the Frosch Research Station and locate a bacta chemical structure diagram from a Frosch Researcher.
|
|
string_id message = new string_id (c_stringFile, "s_127");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Go on.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have other questions.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_132");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_164");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 39);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch35 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Frosch researchers appear to have fallen behind our client slightly in the race for a better bacta solution. Usually we are activated to obtain samples of Frosch Industries' progress. This time, though, we are to sabotage their research in an attempt to slow them down.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What slowed Frosch down?
|
|
if (response == "s_91")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Why, us! We've been staging continual operations against Frosch Industries for some time, now. This is further evidence that we are earning our credits.
|
|
string_id message = new string_id (c_stringFile, "s_93");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: So how do we proceed?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: So what am I supposed to do?
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_128");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_102");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 36);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Enough said. Tell me about the assignment.
|
|
if (response == "s_104")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You must enter the Frosch Research Station and locate a bacta chemical structure diagram from a Frosch Researcher.
|
|
string_id message = new string_id (c_stringFile, "s_127");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Go on.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have other questions.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_132");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_164");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 39);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch36 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Why, us! We've been staging continual operations against Frosch Industries for some time, now. This is further evidence that we are earning our credits.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: So how do we proceed?
|
|
if (response == "s_128")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: At least for now, our tactics become stalling measures. We find ways to hinder Frosch Industries' research.
|
|
string_id message = new string_id (c_stringFile, "s_129");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Bashing researchers' heads works.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_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_131");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 37);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: So what am I supposed to do?
|
|
if (response == "s_102")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You must enter the Frosch Research Station and locate a bacta chemical structure diagram from a Frosch Researcher.
|
|
string_id message = new string_id (c_stringFile, "s_127");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Go on.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have other questions.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_132");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_164");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 39);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch37 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: At least for now, our tactics become stalling measures. We find ways to hinder Frosch Industries' research.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Bashing researchers' heads works.
|
|
if (response == "s_131")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: True, but the effect is too limited in duration. We are planning something that will not only slow progress, but might actually result in the company firing some key personnel for incompetence. That would be a double victory.
|
|
string_id message = new string_id (c_stringFile, "s_133");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me more.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_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_139");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 38);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch38 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: True, but the effect is too limited in duration. We are planning something that will not only slow progress, but might actually result in the company firing some key personnel for incompetence. That would be a double victory.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me more.
|
|
if (response == "s_139")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You must enter the Frosch Research Station and locate a bacta chemical structure diagram from a Frosch Researcher.
|
|
string_id message = new string_id (c_stringFile, "s_127");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Go on.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I have other questions.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_132");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_164");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 39);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch39 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You must enter the Frosch Research Station and locate a bacta chemical structure diagram from a Frosch Researcher.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Go on.
|
|
if (response == "s_132")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Once you have the diagram, you must use a research terminal and modify the chemical formula just enough to render the molecule impossible to create. I will comm you with details when the time is right.
|
|
string_id message = new string_id (c_stringFile, "s_136");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I can do that.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Let me ask you about something else.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_140");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_162");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 40);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I have other questions.
|
|
if (response == "s_164")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1A (player, npc))
|
|
{
|
|
//-- NPC: What would you know?
|
|
string_id message = new string_id (c_stringFile, "s_197");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Frosch Industries.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Assignment specifics.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_216");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_217");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 13);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1B (player, npc))
|
|
{
|
|
//-- NPC: You are going to be part of a multiple-stage mission against the Frosch Research Station. Simply slip in, eliminate eight Frosch Guards and slip out.
|
|
string_id message = new string_id (c_stringFile, "s_199");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me more about Frosch Industries.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want more specifics about my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_239");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_240");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 20);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1C (player, npc))
|
|
{
|
|
//-- NPC: We are staging another sample-gathering operation against Frosch Industries. This time you've been tapped to lead the assault.
|
|
string_id message = new string_id (c_stringFile, "s_201");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Am I going into the Frosch Research Station?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want more specifics about the assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_108");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_109");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 26);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1D (player, npc))
|
|
{
|
|
//-- NPC: Our client has had a breakthrough of their own in the bacta research race. That changes our operation status slightly.
|
|
string_id message = new string_id (c_stringFile, "s_203");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: How?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Clarify my orders for me.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_87");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_106");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 34);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You should read your journal. Perhaps it holds the answers you seek.
|
|
string_id message = new string_id (c_stringFile, "s_167");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch40 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Once you have the diagram, you must use a research terminal and modify the chemical formula just enough to render the molecule impossible to create. I will comm you with details when the time is right.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I can do that.
|
|
if (response == "s_140")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Then go with the blessings of the Mother Jungle.
|
|
string_id message = new string_id (c_stringFile, "s_142");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Let me ask you about something else.
|
|
if (response == "s_162")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1A (player, npc))
|
|
{
|
|
//-- NPC: What would you know?
|
|
string_id message = new string_id (c_stringFile, "s_197");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Frosch Industries.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Assignment specifics.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_216");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_217");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 13);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1B (player, npc))
|
|
{
|
|
//-- NPC: You are going to be part of a multiple-stage mission against the Frosch Research Station. Simply slip in, eliminate eight Frosch Guards and slip out.
|
|
string_id message = new string_id (c_stringFile, "s_199");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me more about Frosch Industries.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want more specifics about my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_239");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_240");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 20);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1C (player, npc))
|
|
{
|
|
//-- NPC: We are staging another sample-gathering operation against Frosch Industries. This time you've been tapped to lead the assault.
|
|
string_id message = new string_id (c_stringFile, "s_201");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Am I going into the Frosch Research Station?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I want more specifics about the assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_108");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_109");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 26);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q1D (player, npc))
|
|
{
|
|
//-- NPC: Our client has had a breakthrough of their own in the bacta research race. That changes our operation status slightly.
|
|
string_id message = new string_id (c_stringFile, "s_203");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: How?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Clarify my orders for me.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_87");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_106");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 34);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You should read your journal. Perhaps it holds the answers you seek.
|
|
string_id message = new string_id (c_stringFile, "s_167");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch44 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Do you need additional information about your assignment?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes.
|
|
if (response == "s_283")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q2A (player, npc))
|
|
{
|
|
//-- NPC: Are you interested in information about Mon'Shallok or about your specific assignment?
|
|
string_id message = new string_id (c_stringFile, "s_358");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Mon'Shallok.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Tell me more about my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, that's all I needed.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_360");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_384");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_403");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 45);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q2B (player, npc))
|
|
{
|
|
//-- NPC: You've been instructed to hunt down Mon'Shallok Trainers. Do you need more information than that?
|
|
string_id message = new string_id (c_stringFile, "s_286");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, tell me more.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Yes, but where do I go?
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, that's all I needed.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_288");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_312");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_401");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 51);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q2C (player, npc))
|
|
{
|
|
//-- NPC: Did you hear about the blast near the Theed Palace on Naboo?
|
|
string_id message = new string_id (c_stringFile, "s_396");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: No, tell me more.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Tell me more about my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, that's all I needed.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_399");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_400");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_402");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 56);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q2D (player, npc))
|
|
{
|
|
//-- NPC: It is against my better judgement, but Loruna has decided to try a new tactic in dealing with the Mon'Shallok terrorists.
|
|
string_id message = new string_id (c_stringFile, "s_398");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Just tell me where to go.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Tell me more.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm ready to begin.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_417");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_418");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_419");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 61);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No, just checking in.
|
|
if (response == "s_328")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch45 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Are you interested in information about Mon'Shallok or about your specific assignment?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me about Mon'Shallok.
|
|
if (response == "s_360")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The Mon'Shallok are a group of Mon Calamari who have forsaken their peaceful, orderly ways in favor of chaos.
|
|
string_id message = new string_id (c_stringFile, "s_362");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'm ready to begin.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Chaos?
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: True. Tell me more about my assignment.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_364");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_366");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_382");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 46);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me more about my assignment.
|
|
if (response == "s_384")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Bring chaos to the chaotic. Kill 13 Mon'Shallak Cadets. Perhaps the ones who remain will change their mind and return home.
|
|
string_id message = new string_id (c_stringFile, "s_386");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Okay.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Did they do something to us?
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_388");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_390");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 49);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No, that's all I needed.
|
|
if (response == "s_403")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch46 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The Mon'Shallok are a group of Mon Calamari who have forsaken their peaceful, orderly ways in favor of chaos.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm ready to begin.
|
|
if (response == "s_364")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Chaos?
|
|
if (response == "s_366")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: They are anarchists who seek nothing but the disruption of order.
|
|
string_id message = new string_id (c_stringFile, "s_368");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'm ready to begin.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Did someone hire us to fight them?
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Tell me more about my assignment.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_370");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_372");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_380");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 47);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: True. Tell me more about my assignment.
|
|
if (response == "s_382")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Bring chaos to the chaotic. Kill 13 Mon'Shallak Cadets. Perhaps the ones who remain will change their mind and return home.
|
|
string_id message = new string_id (c_stringFile, "s_386");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Okay.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Did they do something to us?
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_388");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_390");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 49);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch47 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: They are anarchists who seek nothing but the disruption of order.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm ready to begin.
|
|
if (response == "s_370")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Did someone hire us to fight them?
|
|
if (response == "s_372")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Yes, but Loruna has not told me who it is. That is unusual. In most cases, she is very open with me about that sort of thing. Perhaps I will learn more later.
|
|
string_id message = new string_id (c_stringFile, "s_374");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'm ready to begin.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Tell me more about my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_376");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_378");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 48);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me more about my assignment.
|
|
if (response == "s_380")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Bring chaos to the chaotic. Kill 13 Mon'Shallak Cadets. Perhaps the ones who remain will change their mind and return home.
|
|
string_id message = new string_id (c_stringFile, "s_386");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Okay.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Did they do something to us?
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_388");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_390");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 49);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch48 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes, but Loruna has not told me who it is. That is unusual. In most cases, she is very open with me about that sort of thing. Perhaps I will learn more later.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm ready to begin.
|
|
if (response == "s_376")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me more about my assignment.
|
|
if (response == "s_378")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Bring chaos to the chaotic. Kill 13 Mon'Shallak Cadets. Perhaps the ones who remain will change their mind and return home.
|
|
string_id message = new string_id (c_stringFile, "s_386");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Okay.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Did they do something to us?
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_388");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_390");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 49);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch49 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Bring chaos to the chaotic. Kill 13 Mon'Shallak Cadets. Perhaps the ones who remain will change their mind and return home.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Okay.
|
|
if (response == "s_388")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Did they do something to us?
|
|
if (response == "s_390")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, we have a paying client, so we do as we're instructed. I personally favor a little chaos. It reminds me of the savage and beautiful Mother Jungle of home.
|
|
string_id message = new string_id (c_stringFile, "s_392");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Okay. Consider it done.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_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_394");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 50);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch50 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: No, we have a paying client, so we do as we're instructed. I personally favor a little chaos. It reminds me of the savage and beautiful Mother Jungle of home.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Okay. Consider it done.
|
|
if (response == "s_394")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch51 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You've been instructed to hunt down Mon'Shallok Trainers. Do you need more information than that?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, tell me more.
|
|
if (response == "s_288")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Mon'Shallok is a group of Mon Calamari who have forsaken their peaceful, orderly ways in favor of chaos. In an irony worthy of the savagely gentle Mother Jungle, these followers of chaos operate a training camp with a strict authoritarian power structure.
|
|
string_id message = new string_id (c_stringFile, "s_290");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I've heard enough.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: That IS a little strange.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Tell me more about my specific assignment.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_292");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_294");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_310");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 52);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, but where do I go?
|
|
if (response == "s_312")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Locate the Mon'Shallak Training Camp southeast of here. They continually bring in new Cadets. They are drilled in the use of weapons, explosives and close combat by expert Trainers.
|
|
string_id message = new string_id (c_stringFile, "s_314");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Okay, I'm going.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Tell me more.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_316");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_318");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 55);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No, that's all I needed.
|
|
if (response == "s_401")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch52 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Mon'Shallok is a group of Mon Calamari who have forsaken their peaceful, orderly ways in favor of chaos. In an irony worthy of the savagely gentle Mother Jungle, these followers of chaos operate a training camp with a strict authoritarian power structure.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I've heard enough.
|
|
if (response == "s_292")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: That IS a little strange.
|
|
if (response == "s_294")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Not if you consider their ultimate goal. From what we can determine, they do not seek to disrupt the local order. They are out to shatter wreak havoc on a galactic scale. That requires great personal discipline.
|
|
string_id message = new string_id (c_stringFile, "s_296");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'm ready to go.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: So our client is the Empire?
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Tell me about my assignment.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_298");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_300");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_308");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 53);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me more about my specific assignment.
|
|
if (response == "s_310")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q2A (player, npc))
|
|
{
|
|
//-- NPC: Are you interested in information about Mon'Shallok or about your specific assignment?
|
|
string_id message = new string_id (c_stringFile, "s_358");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Mon'Shallok.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Tell me more about my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, that's all I needed.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_360");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_384");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_403");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 45);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q2B (player, npc))
|
|
{
|
|
//-- NPC: You've been instructed to hunt down Mon'Shallok Trainers. Do you need more information than that?
|
|
string_id message = new string_id (c_stringFile, "s_286");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, tell me more.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Yes, but where do I go?
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, that's all I needed.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_288");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_312");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_401");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 51);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q2C (player, npc))
|
|
{
|
|
//-- NPC: Did you hear about the blast near the Theed Palace on Naboo?
|
|
string_id message = new string_id (c_stringFile, "s_396");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: No, tell me more.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Tell me more about my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, that's all I needed.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_399");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_400");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_402");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 56);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q2D (player, npc))
|
|
{
|
|
//-- NPC: It is against my better judgement, but Loruna has decided to try a new tactic in dealing with the Mon'Shallok terrorists.
|
|
string_id message = new string_id (c_stringFile, "s_398");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Just tell me where to go.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Tell me more.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm ready to begin.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_417");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_418");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_419");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 61);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch53 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Not if you consider their ultimate goal. From what we can determine, they do not seek to disrupt the local order. They are out to shatter wreak havoc on a galactic scale. That requires great personal discipline.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm ready to go.
|
|
if (response == "s_298")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: So our client is the Empire?
|
|
if (response == "s_300")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: I don't think it is either the Empire or the Rebellion. I believe that another force stands to profit from the current galaxy-wide conflict and seeks to eliminate random chance.
|
|
string_id message = new string_id (c_stringFile, "s_302");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Okay, I'm ready to go.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: So what do I do?
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_304");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_306");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 54);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me about my assignment.
|
|
if (response == "s_308")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q2A (player, npc))
|
|
{
|
|
//-- NPC: Are you interested in information about Mon'Shallok or about your specific assignment?
|
|
string_id message = new string_id (c_stringFile, "s_358");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Mon'Shallok.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Tell me more about my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, that's all I needed.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_360");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_384");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_403");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 45);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q2B (player, npc))
|
|
{
|
|
//-- NPC: You've been instructed to hunt down Mon'Shallok Trainers. Do you need more information than that?
|
|
string_id message = new string_id (c_stringFile, "s_286");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, tell me more.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Yes, but where do I go?
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, that's all I needed.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_288");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_312");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_401");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 51);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q2C (player, npc))
|
|
{
|
|
//-- NPC: Did you hear about the blast near the Theed Palace on Naboo?
|
|
string_id message = new string_id (c_stringFile, "s_396");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: No, tell me more.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Tell me more about my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, that's all I needed.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_399");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_400");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_402");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 56);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q2D (player, npc))
|
|
{
|
|
//-- NPC: It is against my better judgement, but Loruna has decided to try a new tactic in dealing with the Mon'Shallok terrorists.
|
|
string_id message = new string_id (c_stringFile, "s_398");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Just tell me where to go.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Tell me more.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm ready to begin.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_417");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_418");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_419");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 61);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch54 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I don't think it is either the Empire or the Rebellion. I believe that another force stands to profit from the current galaxy-wide conflict and seeks to eliminate random chance.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Okay, I'm ready to go.
|
|
if (response == "s_304")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: So what do I do?
|
|
if (response == "s_306")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q2A (player, npc))
|
|
{
|
|
//-- NPC: Are you interested in information about Mon'Shallok or about your specific assignment?
|
|
string_id message = new string_id (c_stringFile, "s_358");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Mon'Shallok.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Tell me more about my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, that's all I needed.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_360");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_384");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_403");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 45);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q2B (player, npc))
|
|
{
|
|
//-- NPC: You've been instructed to hunt down Mon'Shallok Trainers. Do you need more information than that?
|
|
string_id message = new string_id (c_stringFile, "s_286");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, tell me more.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Yes, but where do I go?
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, that's all I needed.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_288");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_312");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_401");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 51);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q2C (player, npc))
|
|
{
|
|
//-- NPC: Did you hear about the blast near the Theed Palace on Naboo?
|
|
string_id message = new string_id (c_stringFile, "s_396");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: No, tell me more.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Tell me more about my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, that's all I needed.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_399");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_400");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_402");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 56);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onAssignment_30ENF_Q2D (player, npc))
|
|
{
|
|
//-- NPC: It is against my better judgement, but Loruna has decided to try a new tactic in dealing with the Mon'Shallok terrorists.
|
|
string_id message = new string_id (c_stringFile, "s_398");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Just tell me where to go.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Tell me more.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm ready to begin.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_417");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_418");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_419");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 61);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch55 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Locate the Mon'Shallak Training Camp southeast of here. They continually bring in new Cadets. They are drilled in the use of weapons, explosives and close combat by expert Trainers.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Okay, I'm going.
|
|
if (response == "s_316")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me more.
|
|
if (response == "s_318")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Mon'Shallok is a group of Mon Calamari who have forsaken their peaceful, orderly ways in favor of chaos. In an irony worthy of the savagely gentle Mother Jungle, these followers of chaos operate a training camp with a strict authoritarian power structure.
|
|
string_id message = new string_id (c_stringFile, "s_290");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I've heard enough.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: That IS a little strange.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Tell me more about my specific assignment.
|
|
boolean hasResponse2 = false;
|
|
if (azure_cabal_hoolar_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_292");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_294");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_310");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 52);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch56 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Did you hear about the blast near the Theed Palace on Naboo?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No, tell me more.
|
|
if (response == "s_399")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: It appears that the Mon'Shallok have begun their attempts to spread chaos through the galaxy by striking at seats of government.
|
|
string_id message = new string_id (c_stringFile, "s_404");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: So are they my targets?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Fine. Tell me about my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_406");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_407");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 57);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me more about my assignment.
|
|
if (response == "s_400")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You will have to fight your way into the center of the Mon'Shallok Training Area and hunt down Supervisors until you have at least four of their signets..
|
|
string_id message = new string_id (c_stringFile, "s_411");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Then what?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Okay, thanks.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_413");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_414");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 59);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No, that's all I needed.
|
|
if (response == "s_402")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch57 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: It appears that the Mon'Shallok have begun their attempts to spread chaos through the galaxy by striking at seats of government.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: So are they my targets?
|
|
if (response == "s_406")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Yes, but this is not a slaughter mission. We need you to acquire proof that they were behind the attack.
|
|
string_id message = new string_id (c_stringFile, "s_408");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me more about my assignment.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: If you say so... I'm ready to begin my assignment.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_410");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_409");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 58);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Fine. Tell me about my assignment.
|
|
if (response == "s_407")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You will have to fight your way into the center of the Mon'Shallok Training Area and hunt down Supervisors until you have at least four of their signets..
|
|
string_id message = new string_id (c_stringFile, "s_411");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Then what?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Okay, thanks.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_413");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_414");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 59);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch58 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes, but this is not a slaughter mission. We need you to acquire proof that they were behind the attack.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me more about my assignment.
|
|
if (response == "s_410")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You will have to fight your way into the center of the Mon'Shallok Training Area and hunt down Supervisors until you have at least four of their signets..
|
|
string_id message = new string_id (c_stringFile, "s_411");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Then what?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Okay, thanks.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_413");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_414");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 59);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: If you say so... I'm ready to begin my assignment.
|
|
if (response == "s_409")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch59 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You will have to fight your way into the center of the Mon'Shallok Training Area and hunt down Supervisors until you have at least four of their signets..
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Then what?
|
|
if (response == "s_413")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Then you must place them on the Supervisors' Desk in their control center. as a warning to the replacements that will follow as inevitably as the rain falls in the Mother Jungle.
|
|
string_id message = new string_id (c_stringFile, "s_415");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Okay, I'm on my way.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_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_416");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 60);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Okay, thanks.
|
|
if (response == "s_414")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch60 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Then you must place them on the Supervisors' Desk in their control center. as a warning to the replacements that will follow as inevitably as the rain falls in the Mother Jungle.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Okay, I'm on my way.
|
|
if (response == "s_416")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch61 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: It is against my better judgement, but Loruna has decided to try a new tactic in dealing with the Mon'Shallok terrorists.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Just tell me where to go.
|
|
if (response == "s_417")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The Mon'Shallak Training Area is to the southeast. There is a control center in the middle.
|
|
string_id message = new string_id (c_stringFile, "s_420");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What are the specifics of my assignment?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm ready to go.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_421");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_422");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 62);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me more.
|
|
if (response == "s_418")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You are to fight terror with terror. To do that, you bring to them what they fear the most: true strength. Terrorists are cowards at heart, so they fear true courage. You must warn them that you are coming by uploading a challenge on one of their networked terminals. Then they cannot delude themselves into thinking you are as craven as they are/
|
|
string_id message = new string_id (c_stringFile, "s_423");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Okay. Go on.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: That's all I needed to know.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_424");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_425");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 63);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm ready to begin.
|
|
if (response == "s_419")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch62 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The Mon'Shallak Training Area is to the southeast. There is a control center in the middle.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What are the specifics of my assignment?
|
|
if (response == "s_421")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You are to fight terror with terror. To do that, you bring to them what they fear the most: true strength. Terrorists are cowards at heart, so they fear true courage. You must warn them that you are coming by uploading a challenge on one of their networked terminals. Then they cannot delude themselves into thinking you are as craven as they are/
|
|
string_id message = new string_id (c_stringFile, "s_423");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Okay. Go on.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: That's all I needed to know.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_424");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_425");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 63);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm ready to go.
|
|
if (response == "s_422")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch63 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You are to fight terror with terror. To do that, you bring to them what they fear the most: true strength. Terrorists are cowards at heart, so they fear true courage. You must warn them that you are coming by uploading a challenge on one of their networked terminals. Then they cannot delude themselves into thinking you are as craven as they are/
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Okay. Go on.
|
|
if (response == "s_424")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Then, you confront them in open combat. You keep killing them until you achieve within them a sense of terror.
|
|
string_id message = new string_id (c_stringFile, "s_426");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: You disagree?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Instill a sense of terror. That I can do!
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_427");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_428");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 64);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: That's all I needed to know.
|
|
if (response == "s_425")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch64 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Then, you confront them in open combat. You keep killing them until you achieve within them a sense of terror.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You disagree?
|
|
if (response == "s_427")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: I have learned to live with the slaughter our business entails, but fighting terror with terror is not something anyone in my herd could have imagines... I just can't wrap my mind around it.
|
|
string_id message = new string_id (c_stringFile, "s_429");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Should I refuse the mission?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Okay. I've got it now.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_430");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_431");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 65);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Instill a sense of terror. That I can do!
|
|
if (response == "s_428")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch65 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I have learned to live with the slaughter our business entails, but fighting terror with terror is not something anyone in my herd could have imagines... I just can't wrap my mind around it.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Should I refuse the mission?
|
|
if (response == "s_430")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Absolutely not! I only shared my qualms with you because... well, I guess my judgement is slipping. You have a job to do. Proceed.
|
|
string_id message = new string_id (c_stringFile, "s_432");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Got it.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_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_433");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 66);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Okay. I've got it now.
|
|
if (response == "s_431")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int azure_cabal_hoolar_handleBranch66 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Absolutely not! I only shared my qualms with you because... well, I guess my judgement is slipping. You have a job to do. Proceed.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Got it.
|
|
if (response == "s_433")
|
|
{
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Go with the blessing, then.
|
|
string_id message = new string_id (c_stringFile, "s_195");
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
// ======================================================================
|
|
// User Script Triggers
|
|
// ======================================================================
|
|
|
|
trigger OnInitialize ()
|
|
{
|
|
if ((!isTangible (self)) || (isPlayer (self)))
|
|
detachScript(self, "conversation.azure_cabal_hoolar");
|
|
|
|
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.azure_cabal_hoolar");
|
|
|
|
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 (azure_cabal_hoolar_condition_onTask_30ENF_Repeater_Q1 (player, npc))
|
|
{
|
|
azure_cabal_hoolar_action_signal_30ENF_ClearRepeaterQuest (player, npc);
|
|
|
|
//-- NPC: I have an assignment for you, if you're ready. Until you agree to help me, I can say no more. No more at all.
|
|
string_id message = new string_id (c_stringFile, "s_168");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I accept the assignment
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Not interested.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_170");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_171");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 1);
|
|
|
|
npcStartConversation (player, npc, "azure_cabal_hoolar", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onTask_30ENF_Repeater_Q2 (player, npc))
|
|
{
|
|
azure_cabal_hoolar_action_signal_30ENF_ClearRepeaterQuest (player, npc);
|
|
|
|
//-- NPC: Loruna likes you very much. Very much! You will help me earn the Cabal many credits. Perhaps I will even earn enough credits to once more visit my home. The blessed Mother Jungle!
|
|
string_id message = new string_id (c_stringFile, "s_174");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Just upload the data.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Not interested.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_175");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_176");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 5);
|
|
|
|
npcStartConversation (player, npc, "azure_cabal_hoolar", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onTask_30ENF_Q1_Return (player, npc))
|
|
{
|
|
azure_cabal_hoolar_action_signal_30ENF_CompleteQuest (player, npc);
|
|
|
|
//-- NPC: The Frosch are reeling. Excellent work!
|
|
string_id message = new string_id (c_stringFile, "s_189");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Do you have any more assignments?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_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_196");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 9);
|
|
|
|
npcStartConversation (player, npc, "azure_cabal_hoolar", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onTask_30ENF_Q2_Return (player, npc))
|
|
{
|
|
azure_cabal_hoolar_action_signal_30ENF_CompleteQuest (player, npc);
|
|
|
|
//-- NPC: You have done a great job. Great job..
|
|
string_id message = new string_id (c_stringFile, "s_191");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Anything else you need?
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_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_200");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 11);
|
|
|
|
npcStartConversation (player, npc, "azure_cabal_hoolar", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onQuest_30ENF_Q1 (player, npc))
|
|
{
|
|
//-- NPC: Why are you still here? Do you need my help?
|
|
string_id message = new string_id (c_stringFile, "s_192");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, just checking in.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_193");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_194");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 12);
|
|
|
|
npcStartConversation (player, npc, "azure_cabal_hoolar", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition_onQuest_30ENF_Q2 (player, npc))
|
|
{
|
|
//-- NPC: Do you need additional information about your assignment?
|
|
string_id message = new string_id (c_stringFile, "s_282");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes.
|
|
boolean hasResponse0 = false;
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, just checking in.
|
|
boolean hasResponse1 = false;
|
|
if (azure_cabal_hoolar_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_283");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_328");
|
|
|
|
utils.setScriptVar (player, "conversation.azure_cabal_hoolar.branchId", 44);
|
|
|
|
npcStartConversation (player, npc, "azure_cabal_hoolar", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (azure_cabal_hoolar_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Please do not bother me right now. I am contemplating the wonders of these tiny little trees. So unlike the Mother Jungle, yet also lovely.
|
|
string_id message = new string_id (c_stringFile, "s_330");
|
|
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 != "azure_cabal_hoolar")
|
|
return SCRIPT_CONTINUE;
|
|
|
|
obj_id npc = self;
|
|
|
|
int branchId = utils.getIntScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
if (branchId == 1 && azure_cabal_hoolar_handleBranch1 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 3 && azure_cabal_hoolar_handleBranch3 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 5 && azure_cabal_hoolar_handleBranch5 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 7 && azure_cabal_hoolar_handleBranch7 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 9 && azure_cabal_hoolar_handleBranch9 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 11 && azure_cabal_hoolar_handleBranch11 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 12 && azure_cabal_hoolar_handleBranch12 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 13 && azure_cabal_hoolar_handleBranch13 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 14 && azure_cabal_hoolar_handleBranch14 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 15 && azure_cabal_hoolar_handleBranch15 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 16 && azure_cabal_hoolar_handleBranch16 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 17 && azure_cabal_hoolar_handleBranch17 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 18 && azure_cabal_hoolar_handleBranch18 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 19 && azure_cabal_hoolar_handleBranch19 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 20 && azure_cabal_hoolar_handleBranch20 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 21 && azure_cabal_hoolar_handleBranch21 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 22 && azure_cabal_hoolar_handleBranch22 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 23 && azure_cabal_hoolar_handleBranch23 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 24 && azure_cabal_hoolar_handleBranch24 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 25 && azure_cabal_hoolar_handleBranch25 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 26 && azure_cabal_hoolar_handleBranch26 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 27 && azure_cabal_hoolar_handleBranch27 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 28 && azure_cabal_hoolar_handleBranch28 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 29 && azure_cabal_hoolar_handleBranch29 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 31 && azure_cabal_hoolar_handleBranch31 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 32 && azure_cabal_hoolar_handleBranch32 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 34 && azure_cabal_hoolar_handleBranch34 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 35 && azure_cabal_hoolar_handleBranch35 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 36 && azure_cabal_hoolar_handleBranch36 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 37 && azure_cabal_hoolar_handleBranch37 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 38 && azure_cabal_hoolar_handleBranch38 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 39 && azure_cabal_hoolar_handleBranch39 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 40 && azure_cabal_hoolar_handleBranch40 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 44 && azure_cabal_hoolar_handleBranch44 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 45 && azure_cabal_hoolar_handleBranch45 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 46 && azure_cabal_hoolar_handleBranch46 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 47 && azure_cabal_hoolar_handleBranch47 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 48 && azure_cabal_hoolar_handleBranch48 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 49 && azure_cabal_hoolar_handleBranch49 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 50 && azure_cabal_hoolar_handleBranch50 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 51 && azure_cabal_hoolar_handleBranch51 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 52 && azure_cabal_hoolar_handleBranch52 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 53 && azure_cabal_hoolar_handleBranch53 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 54 && azure_cabal_hoolar_handleBranch54 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 55 && azure_cabal_hoolar_handleBranch55 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 56 && azure_cabal_hoolar_handleBranch56 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 57 && azure_cabal_hoolar_handleBranch57 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 58 && azure_cabal_hoolar_handleBranch58 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 59 && azure_cabal_hoolar_handleBranch59 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 60 && azure_cabal_hoolar_handleBranch60 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 61 && azure_cabal_hoolar_handleBranch61 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 62 && azure_cabal_hoolar_handleBranch62 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 63 && azure_cabal_hoolar_handleBranch63 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 64 && azure_cabal_hoolar_handleBranch64 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 65 && azure_cabal_hoolar_handleBranch65 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 66 && azure_cabal_hoolar_handleBranch66 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
chat.chat (npc, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
|
|
|
|
utils.removeScriptVar (player, "conversation.azure_cabal_hoolar.branchId");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
|