mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
9846 lines
289 KiB
Plaintext
9846 lines
289 KiB
Plaintext
// ======================================================================
|
|
//
|
|
// biogenic_securitytech.script
|
|
//
|
|
//
|
|
//
|
|
// Created with SwgConversationEditor 1.35 - DO NOT EDIT THIS AUTO-GENERATED FILE!
|
|
//
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Library Includes
|
|
// ======================================================================
|
|
|
|
include library.ai_lib;
|
|
include library.chat;
|
|
include library.utils;
|
|
|
|
// ======================================================================
|
|
// Script Constants
|
|
// ======================================================================
|
|
|
|
string c_stringFile = "conversation/biogenic_securitytech";
|
|
|
|
// ======================================================================
|
|
// Script Conditions
|
|
// ======================================================================
|
|
|
|
boolean biogenic_securitytech_condition__defaultCondition (obj_id player, obj_id npc)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean biogenic_securitytech_condition_get_tracker_1 (obj_id player, obj_id npc)
|
|
{
|
|
int tracker = getIntObjVar(player, "biogenic.security_convo");
|
|
|
|
if(tracker == 1) {
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean biogenic_securitytech_condition_get_tracker_2 (obj_id player, obj_id npc)
|
|
{
|
|
int tracker = getIntObjVar(player, "biogenic.security_convo");
|
|
|
|
if(tracker == 2) {
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean biogenic_securitytech_condition_get_tracker_3 (obj_id player, obj_id npc)
|
|
{
|
|
int tracker = getIntObjVar(player, "biogenic.security_convo");
|
|
|
|
if(tracker == 3) {
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Actions
|
|
// ======================================================================
|
|
|
|
void biogenic_securitytech_action_set_tracker_1 (obj_id player, obj_id npc)
|
|
{
|
|
setObjVar(player, "biogenic.security_convo", 1);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void biogenic_securitytech_action_set_tracker_3 (obj_id player, obj_id npc)
|
|
{
|
|
setObjVar(player, "biogenic.security_convo", 3);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void biogenic_securitytech_action_set_tracker_2 (obj_id player, obj_id npc)
|
|
{
|
|
setObjVar(player, "biogenic.security_convo", 2);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void biogenic_securitytech_action_face_to (obj_id player, obj_id npc)
|
|
{
|
|
faceToBehavior(npc, player);
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script %TO Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Script %DI Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Script %DF Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// handleBranch<n> Functions
|
|
// ======================================================================
|
|
|
|
int biogenic_securitytech_handleBranch1 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Oh, yes. Is there anything else that I can do for you?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me about the escaped creatures again?
|
|
if (response == "s_4e67874f")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
string_id message = new string_id (c_stringFile, "s_54c04cd6");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me about the sentry droids again?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. I'll be on my way then. Thank you.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_4bf538ac");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_10");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 2);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me about the sentry droids again?
|
|
if (response == "s_14")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
string_id message = new string_id (c_stringFile, "s_16");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me about the escaped creatures again?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. I'll be on my way then. Thank you.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_18");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_26");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 6);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What was the code to get through the security door again?
|
|
if (response == "s_a57fff7e")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Just punch in the code 12872 to get through the security door.
|
|
string_id message = new string_id (c_stringFile, "s_6dcc098c");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No, I was just leaving. Thanks for your help.
|
|
if (response == "s_5147321f")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No problem. Now please go take care of those creatures.
|
|
string_id message = new string_id (c_stringFile, "s_33");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch2 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me about the sentry droids again?
|
|
if (response == "s_4bf538ac")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
string_id message = new string_id (c_stringFile, "s_8913cdec");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: OK. I'll be on my way then. Thank you.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_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_4a0eda9c");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. I'll be on my way then. Thank you.
|
|
if (response == "s_10")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No problem. Now please go take care of those creatures.
|
|
string_id message = new string_id (c_stringFile, "s_12");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch3 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. I'll be on my way then. Thank you.
|
|
if (response == "s_4a0eda9c")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No problem. Now please go take care of those creatures.
|
|
string_id message = new string_id (c_stringFile, "s_802edca9");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch6 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me about the escaped creatures again?
|
|
if (response == "s_18")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
string_id message = new string_id (c_stringFile, "s_20");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: OK. I'll be on my way then. Thank you.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_22");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 7);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. I'll be on my way then. Thank you.
|
|
if (response == "s_26")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No problem. Now please go take care of those creatures.
|
|
string_id message = new string_id (c_stringFile, "s_28");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch7 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. I'll be on my way then. Thank you.
|
|
if (response == "s_22")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No problem. Now please go take care of those creatures.
|
|
string_id message = new string_id (c_stringFile, "s_24");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch13 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I'm sorry, but I am very busy. What do you need?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'd like to see more of this complex. Is there anything I should know?
|
|
if (response == "s_28594fa2")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_securitytech_action_set_tracker_2 (player, npc);
|
|
|
|
//-- NPC: Well, firstly you'll need a code to get through that security door. Punch in the code 12872 and you can get through. Once you get in, there are some things you should watch out for though.
|
|
string_id message = new string_id (c_stringFile, "s_b49b50a8");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What kind of things do I need to watch out for?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_83dc19a");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_127");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 14);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Sorry to bother you.
|
|
if (response == "s_367aaeab")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Leave me alone.
|
|
string_id message = new string_id (c_stringFile, "s_9d06ecb3");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch14 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Well, firstly you'll need a code to get through that security door. Punch in the code 12872 and you can get through. Once you get in, there are some things you should watch out for though.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What kind of things do I need to watch out for?
|
|
if (response == "s_83dc19a")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_securitytech_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: Specifically, you will need to be aware of the sentry droids, and any creatures that might have escaped from their cages.
|
|
string_id message = new string_id (c_stringFile, "s_914ffdda");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
boolean hasResponse3 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_1ea74b0a");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_73");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_113");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6c0c46c5");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 15);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
if (response == "s_127")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Fine, just stay out of my way.
|
|
string_id message = new string_id (c_stringFile, "s_129");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch15 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Specifically, you will need to be aware of the sentry droids, and any creatures that might have escaped from their cages.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
if (response == "s_1ea74b0a")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
string_id message = new string_id (c_stringFile, "s_42");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_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_8cd04dbf");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_57");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_69");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 16);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
if (response == "s_73")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
string_id message = new string_id (c_stringFile, "s_75");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_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_77");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_97");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_109");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 26);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_113")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_115");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_117");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_121");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 36);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
if (response == "s_6c0c46c5")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Fine, just stay out of my way.
|
|
string_id message = new string_id (c_stringFile, "s_4abac946");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch16 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
if (response == "s_8cd04dbf")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
string_id message = new string_id (c_stringFile, "s_45");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_6e7f3aa6");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_53");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 17);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_57")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_59");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_61");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_65");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 22);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_69")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_71");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch17 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_6e7f3aa6")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_7cb640f8");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_e32d6faf");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ea369ee");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 18);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_53")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_55");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch18 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_e32d6faf")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_19aa7018");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_2ea369ee")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_d8be16a3");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch22 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_61")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_63");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_65")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_67");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch26 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
if (response == "s_77")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
string_id message = new string_id (c_stringFile, "s_79");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_81");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_93");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 27);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_97")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_99");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_101");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_105");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 32);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_109")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_111");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch27 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_81")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_83");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_85");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_89");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 28);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_93")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_95");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch28 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_85")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_87");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_89")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_91");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch32 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_101")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_103");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_105")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_107");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch36 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_117")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_119");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_121")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_123");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch42 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Aargh. More of those foul creatures have escaped. Wait a minute, how did you get in here?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Through a large opening in the side of a hill.
|
|
if (response == "s_d7b11a2")
|
|
{
|
|
biogenic_securitytech_action_set_tracker_1 (player, npc);
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Sith spit. That must mean the holo-generator is offline. Add one more thing to the list of what's gone wrong.
|
|
string_id message = new string_id (c_stringFile, "s_5b2ec95c");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'm sorry. What seems to be going on here?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Well, you look busy. I'll come back later.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_2ba5e1a3");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_e8b00610");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 43);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Well, the hole in the mountain was unlocked, so...
|
|
if (response == "s_a35c0e94")
|
|
{
|
|
biogenic_securitytech_action_set_tracker_1 (player, npc);
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Sith spit. That must mean the holo-generator is offline. Add one more thing to the list of what's gone wrong.
|
|
string_id message = new string_id (c_stringFile, "s_367");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'm sorry. What seems to be going on here?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Well, you look busy. I'll come back later.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_369");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_609");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 105);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Never mind that. What's going on here?
|
|
if (response == "s_55b3a778")
|
|
{
|
|
biogenic_securitytech_action_set_tracker_1 (player, npc);
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The security in our facility here has suffered a catastrophic failure. We're doing our best to get it under control.
|
|
string_id message = new string_id (c_stringFile, "s_614");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What of those creatures you mentioned earlier?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: What kind of failure exactly?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Sound like you have your hands full. I'll leave you alone.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_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_616");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_732");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_848");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 167);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: The same way that I'm leaving. Good-bye.
|
|
if (response == "s_d14c9940")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Yes, good. Just turn around and forget that you ever saw this place.
|
|
string_id message = new string_id (c_stringFile, "s_3605064");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch43 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Sith spit. That must mean the holo-generator is offline. Add one more thing to the list of what's gone wrong.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm sorry. What seems to be going on here?
|
|
if (response == "s_2ba5e1a3")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The security in our facility here has suffered a catastrophic failure. We're doing our best to get it under control.
|
|
string_id message = new string_id (c_stringFile, "s_f6349bd9");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What of those creatures you mentioned earlier?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: What kind of failure exactly?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Sound like you have your hands full. I'll leave you alone.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_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_c9c438be");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bdace841");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_db64ccb5");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 44);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Well, you look busy. I'll come back later.
|
|
if (response == "s_e8b00610")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, don't come back. Just turn around and forget you ever saw this place.
|
|
string_id message = new string_id (c_stringFile, "s_1a87eec");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch44 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The security in our facility here has suffered a catastrophic failure. We're doing our best to get it under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What of those creatures you mentioned earlier?
|
|
if (response == "s_c9c438be")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Many of the experiments in this compound revolve around genetically mutating certain creatures. The earthquake that we experienced recently seems to have shut down out containment systems.
|
|
string_id message = new string_id (c_stringFile, "s_6738bb52");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Do you need a hand in getting it under control?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'd better go in and check on things. Good-bye.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_77c97efc");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_3f226fbc");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 45);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What kind of failure exactly?
|
|
if (response == "s_bdace841")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: We recently experienced some type of seismic event. It seems to have wrecked havoc with our security and containment systems. Many of my security officers have died as a result.
|
|
string_id message = new string_id (c_stringFile, "s_164b2134");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Do you need a hand in getting it under control?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'd better go in and check on things. Good-bye.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_250");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_358");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 74);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Sound like you have your hands full. I'll leave you alone.
|
|
if (response == "s_db64ccb5")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Alright, just be sure to stay out of the way.
|
|
string_id message = new string_id (c_stringFile, "s_18376ecf");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch45 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Many of the experiments in this compound revolve around genetically mutating certain creatures. The earthquake that we experienced recently seems to have shut down out containment systems.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Do you need a hand in getting it under control?
|
|
if (response == "s_77c97efc")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_securitytech_action_set_tracker_2 (player, npc);
|
|
|
|
//-- NPC: Actually, I could use some help, but if you're going further into the compound, you'll need a code to get through that security door. Punch in the code 12872 and you can get through. There are some things you should watch out for though.
|
|
string_id message = new string_id (c_stringFile, "s_2066c897");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What kind of things do I need to watch out for?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_142");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_242");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 46);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'd better go in and check on things. Good-bye.
|
|
if (response == "s_3f226fbc")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_securitytech_action_set_tracker_2 (player, npc);
|
|
|
|
//-- NPC: It's your funeral. You'll need to punch in the code 12872 to get through that security door. Just make sure none of those creatures gets in here before I get security back online.
|
|
string_id message = new string_id (c_stringFile, "s_e4c5332b");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch46 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Actually, I could use some help, but if you're going further into the compound, you'll need a code to get through that security door. Punch in the code 12872 and you can get through. There are some things you should watch out for though.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What kind of things do I need to watch out for?
|
|
if (response == "s_142")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_securitytech_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: Specifically, you will need to be aware of the sentry droids, and any creatures that might have escaped from their cages.
|
|
string_id message = new string_id (c_stringFile, "s_144");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
boolean hasResponse3 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_146");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_186");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_226");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_238");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 47);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
if (response == "s_242")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Fine, just stay out of my way.
|
|
string_id message = new string_id (c_stringFile, "s_244");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch47 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Specifically, you will need to be aware of the sentry droids, and any creatures that might have escaped from their cages.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
if (response == "s_146")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
string_id message = new string_id (c_stringFile, "s_148");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_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_150");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_170");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_182");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 48);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
if (response == "s_186")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
string_id message = new string_id (c_stringFile, "s_188");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_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_190");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_210");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_222");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 58);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_226")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_228");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_230");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_234");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 68);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
if (response == "s_238")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Fine, just stay out of my way.
|
|
string_id message = new string_id (c_stringFile, "s_240");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch48 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
if (response == "s_150")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
string_id message = new string_id (c_stringFile, "s_152");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_154");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_166");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 49);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_170")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_172");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_174");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_178");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 54);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_182")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_184");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch49 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_154")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_156");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_158");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_162");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 50);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_166")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_168");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch50 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_158")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_160");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_162")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_164");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch54 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_174")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_176");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_178")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_180");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch58 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
if (response == "s_190")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
string_id message = new string_id (c_stringFile, "s_192");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_194");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_206");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 59);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_210")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_212");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_214");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_218");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 64);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_222")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_224");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch59 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_194")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_196");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_198");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_202");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 60);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_206")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_208");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch60 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_198")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_200");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_202")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_204");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch64 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_214")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_216");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_218")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_220");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch68 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_230")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_232");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_234")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_236");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch74 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: We recently experienced some type of seismic event. It seems to have wrecked havoc with our security and containment systems. Many of my security officers have died as a result.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Do you need a hand in getting it under control?
|
|
if (response == "s_250")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_securitytech_action_set_tracker_2 (player, npc);
|
|
|
|
//-- NPC: Actually, I could use some help, but if you're going further into the compound, you'll need a code to get through that security door. Punch in the code 12872 and you can get through. There are some things you should watch out for though.
|
|
string_id message = new string_id (c_stringFile, "s_252");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What kind of things do I need to watch out for?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_354");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 75);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'd better go in and check on things. Good-bye.
|
|
if (response == "s_358")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_securitytech_action_set_tracker_2 (player, npc);
|
|
|
|
//-- NPC: It's your funeral. You'll need to punch in the code 12872 to get through that security door. Just make sure none of those creatures gets in here before I get security back online.
|
|
string_id message = new string_id (c_stringFile, "s_360");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch75 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Actually, I could use some help, but if you're going further into the compound, you'll need a code to get through that security door. Punch in the code 12872 and you can get through. There are some things you should watch out for though.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What kind of things do I need to watch out for?
|
|
if (response == "s_254")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_securitytech_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: Specifically, you will need to be aware of the sentry droids, and any creatures that might have escaped from their cages.
|
|
string_id message = new string_id (c_stringFile, "s_256");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
boolean hasResponse3 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_258");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_298");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_338");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_350");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 76);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
if (response == "s_354")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Fine, just stay out of my way.
|
|
string_id message = new string_id (c_stringFile, "s_356");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch76 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Specifically, you will need to be aware of the sentry droids, and any creatures that might have escaped from their cages.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
if (response == "s_258")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
string_id message = new string_id (c_stringFile, "s_260");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_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_262");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_282");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_294");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 77);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
if (response == "s_298")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
string_id message = new string_id (c_stringFile, "s_300");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_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_302");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_322");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_334");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 87);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_338")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_340");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_342");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_346");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 97);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
if (response == "s_350")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Fine, just stay out of my way.
|
|
string_id message = new string_id (c_stringFile, "s_352");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch77 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
if (response == "s_262")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
string_id message = new string_id (c_stringFile, "s_264");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_266");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_278");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 78);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_282")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_284");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_286");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_290");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 83);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_294")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_296");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch78 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_266")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_268");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_270");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_274");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 79);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_278")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_280");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch79 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_270")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_272");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_274")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_276");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch83 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_286")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_288");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_290")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_292");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch87 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
if (response == "s_302")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
string_id message = new string_id (c_stringFile, "s_304");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_306");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_318");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 88);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_322")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_324");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_326");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_330");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 93);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_334")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_336");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch88 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_306")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_308");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_310");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_314");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 89);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_318")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_320");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch89 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_310")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_312");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_314")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_316");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch93 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_326")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_328");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_330")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_332");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch97 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_342")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_344");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_346")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_348");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch105 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Sith spit. That must mean the holo-generator is offline. Add one more thing to the list of what's gone wrong.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm sorry. What seems to be going on here?
|
|
if (response == "s_369")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The security in our facility here has suffered a catastrophic failure. We're doing our best to get it under control.
|
|
string_id message = new string_id (c_stringFile, "s_371");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What of those creatures you mentioned earlier?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: What kind of failure exactly?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Sound like you have your hands full. I'll leave you alone.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_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_373");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_489");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_605");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 106);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Well, you look busy. I'll come back later.
|
|
if (response == "s_609")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, don't come back. Just turn around and forget you ever saw this place.
|
|
string_id message = new string_id (c_stringFile, "s_611");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch106 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The security in our facility here has suffered a catastrophic failure. We're doing our best to get it under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What of those creatures you mentioned earlier?
|
|
if (response == "s_373")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Many of the experiments in this compound revolve around genetically mutating certain creatures. The earthquake that we experienced recently seems to have shut down out containment systems.
|
|
string_id message = new string_id (c_stringFile, "s_375");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Do you need a hand in getting it under control?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'd better go in and check on things. Good-bye.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_377");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_485");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 107);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What kind of failure exactly?
|
|
if (response == "s_489")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: We recently experienced some type of seismic event. It seems to have wrecked havoc with our security and containment systems. Many of my security officers have died as a result.
|
|
string_id message = new string_id (c_stringFile, "s_491");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Do you need a hand in getting it under control?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'd better go in and check on things. Good-bye.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_493");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_601");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 136);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Sound like you have your hands full. I'll leave you alone.
|
|
if (response == "s_605")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Alright, just be sure to stay out of the way.
|
|
string_id message = new string_id (c_stringFile, "s_607");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch107 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Many of the experiments in this compound revolve around genetically mutating certain creatures. The earthquake that we experienced recently seems to have shut down out containment systems.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Do you need a hand in getting it under control?
|
|
if (response == "s_377")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_securitytech_action_set_tracker_2 (player, npc);
|
|
|
|
//-- NPC: Actually, I could use some help, but if you're going further into the compound, you'll need a code to get through that security door. Punch in the code 12872 and you can get through. There are some things you should watch out for though.
|
|
string_id message = new string_id (c_stringFile, "s_379");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What kind of things do I need to watch out for?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_381");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_481");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 108);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'd better go in and check on things. Good-bye.
|
|
if (response == "s_485")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_securitytech_action_set_tracker_2 (player, npc);
|
|
|
|
//-- NPC: It's your funeral. You'll need to punch in the code 12872 to get through that security door. Just make sure none of those creatures gets in here before I get security back online.
|
|
string_id message = new string_id (c_stringFile, "s_487");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch108 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Actually, I could use some help, but if you're going further into the compound, you'll need a code to get through that security door. Punch in the code 12872 and you can get through. There are some things you should watch out for though.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What kind of things do I need to watch out for?
|
|
if (response == "s_381")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_securitytech_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: Specifically, you will need to be aware of the sentry droids, and any creatures that might have escaped from their cages.
|
|
string_id message = new string_id (c_stringFile, "s_383");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
boolean hasResponse3 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_385");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_425");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_465");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_477");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 109);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
if (response == "s_481")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Fine, just stay out of my way.
|
|
string_id message = new string_id (c_stringFile, "s_483");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch109 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Specifically, you will need to be aware of the sentry droids, and any creatures that might have escaped from their cages.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
if (response == "s_385")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
string_id message = new string_id (c_stringFile, "s_387");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_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_389");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_409");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_421");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 110);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
if (response == "s_425")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
string_id message = new string_id (c_stringFile, "s_427");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_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_429");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_449");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_461");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 120);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_465")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_467");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_469");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_473");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 130);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
if (response == "s_477")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Fine, just stay out of my way.
|
|
string_id message = new string_id (c_stringFile, "s_479");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch110 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
if (response == "s_389")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
string_id message = new string_id (c_stringFile, "s_391");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_393");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_405");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 111);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_409")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_411");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_417");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 116);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_421")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_423");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch111 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_393")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_395");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_397");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_401");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 112);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_405")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_407");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch112 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_397")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_399");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_401")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_403");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch116 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_413")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_415");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_417")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_419");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch120 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
if (response == "s_429")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
string_id message = new string_id (c_stringFile, "s_431");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_433");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_445");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 121);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_449")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_451");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_453");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_457");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 126);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_461")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_463");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch121 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_433")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_435");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_437");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_441");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 122);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_445")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_447");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch122 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_437")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_439");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_441")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_443");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch126 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_453")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_455");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_457")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_459");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch130 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_469")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_471");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_473")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_475");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch136 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: We recently experienced some type of seismic event. It seems to have wrecked havoc with our security and containment systems. Many of my security officers have died as a result.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Do you need a hand in getting it under control?
|
|
if (response == "s_493")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_securitytech_action_set_tracker_2 (player, npc);
|
|
|
|
//-- NPC: Actually, I could use some help, but if you're going further into the compound, you'll need a code to get through that security door. Punch in the code 12872 and you can get through. There are some things you should watch out for though.
|
|
string_id message = new string_id (c_stringFile, "s_495");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What kind of things do I need to watch out for?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_497");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_597");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 137);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'd better go in and check on things. Good-bye.
|
|
if (response == "s_601")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_securitytech_action_set_tracker_2 (player, npc);
|
|
|
|
//-- NPC: It's your funeral. You'll need to punch in the code 12872 to get through that security door. Just make sure none of those creatures gets in here before I get security back online.
|
|
string_id message = new string_id (c_stringFile, "s_603");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch137 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Actually, I could use some help, but if you're going further into the compound, you'll need a code to get through that security door. Punch in the code 12872 and you can get through. There are some things you should watch out for though.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What kind of things do I need to watch out for?
|
|
if (response == "s_497")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_securitytech_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: Specifically, you will need to be aware of the sentry droids, and any creatures that might have escaped from their cages.
|
|
string_id message = new string_id (c_stringFile, "s_499");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
boolean hasResponse3 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_501");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_541");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_581");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_593");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 138);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
if (response == "s_597")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Fine, just stay out of my way.
|
|
string_id message = new string_id (c_stringFile, "s_599");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch138 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Specifically, you will need to be aware of the sentry droids, and any creatures that might have escaped from their cages.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
if (response == "s_501")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
string_id message = new string_id (c_stringFile, "s_503");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_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_505");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_525");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_537");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 139);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
if (response == "s_541")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
string_id message = new string_id (c_stringFile, "s_543");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_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_545");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_565");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_577");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 149);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_581")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_583");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_585");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_589");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 159);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
if (response == "s_593")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Fine, just stay out of my way.
|
|
string_id message = new string_id (c_stringFile, "s_595");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch139 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
if (response == "s_505")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
string_id message = new string_id (c_stringFile, "s_507");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_509");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_521");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 140);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_525")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_527");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_529");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_533");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 145);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_537")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_539");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch140 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_509")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_511");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_513");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_517");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 141);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_521")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_523");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch141 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_513")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_515");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_517")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_519");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch145 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_529")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_531");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_533")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_535");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch149 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
if (response == "s_545")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
string_id message = new string_id (c_stringFile, "s_547");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_549");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_561");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 150);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_565")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_567");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_569");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_573");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 155);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_577")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_579");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch150 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_549")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_551");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_553");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_557");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 151);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_561")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_563");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch151 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_553")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_555");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_557")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_559");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch155 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_569")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_571");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_573")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_575");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch159 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_585")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_587");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_589")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_591");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch167 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The security in our facility here has suffered a catastrophic failure. We're doing our best to get it under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What of those creatures you mentioned earlier?
|
|
if (response == "s_616")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Many of the experiments in this compound revolve around genetically mutating certain creatures. The earthquake that we experienced recently seems to have shut down out containment systems.
|
|
string_id message = new string_id (c_stringFile, "s_618");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Do you need a hand in getting it under control?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'd better go in and check on things. Good-bye.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_620");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_728");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 168);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What kind of failure exactly?
|
|
if (response == "s_732")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: We recently experienced some type of seismic event. It seems to have wrecked havoc with our security and containment systems. Many of my security officers have died as a result.
|
|
string_id message = new string_id (c_stringFile, "s_734");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Do you need a hand in getting it under control?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'd better go in and check on things. Good-bye.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_736");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_844");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 197);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Sound like you have your hands full. I'll leave you alone.
|
|
if (response == "s_848")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Alright, just be sure to stay out of the way.
|
|
string_id message = new string_id (c_stringFile, "s_850");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch168 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Many of the experiments in this compound revolve around genetically mutating certain creatures. The earthquake that we experienced recently seems to have shut down out containment systems.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Do you need a hand in getting it under control?
|
|
if (response == "s_620")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_securitytech_action_set_tracker_2 (player, npc);
|
|
|
|
//-- NPC: Actually, I could use some help, but if you're going further into the compound, you'll need a code to get through that security door. Punch in the code 12872 and you can get through. There are some things you should watch out for though.
|
|
string_id message = new string_id (c_stringFile, "s_622");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What kind of things do I need to watch out for?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_624");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_724");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 169);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'd better go in and check on things. Good-bye.
|
|
if (response == "s_728")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_securitytech_action_set_tracker_2 (player, npc);
|
|
|
|
//-- NPC: It's your funeral. You'll need to punch in the code 12872 to get through that security door. Just make sure none of those creatures gets in here before I get security back online.
|
|
string_id message = new string_id (c_stringFile, "s_730");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch169 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Actually, I could use some help, but if you're going further into the compound, you'll need a code to get through that security door. Punch in the code 12872 and you can get through. There are some things you should watch out for though.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What kind of things do I need to watch out for?
|
|
if (response == "s_624")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_securitytech_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: Specifically, you will need to be aware of the sentry droids, and any creatures that might have escaped from their cages.
|
|
string_id message = new string_id (c_stringFile, "s_626");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
boolean hasResponse3 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_628");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_668");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_708");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_720");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 170);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
if (response == "s_724")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Fine, just stay out of my way.
|
|
string_id message = new string_id (c_stringFile, "s_726");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch170 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Specifically, you will need to be aware of the sentry droids, and any creatures that might have escaped from their cages.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
if (response == "s_628")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
string_id message = new string_id (c_stringFile, "s_630");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_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_632");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_652");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_664");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 171);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
if (response == "s_668")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
string_id message = new string_id (c_stringFile, "s_670");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_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_672");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_692");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_704");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 181);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_708")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_710");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_712");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_716");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 191);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
if (response == "s_720")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Fine, just stay out of my way.
|
|
string_id message = new string_id (c_stringFile, "s_722");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch171 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
if (response == "s_632")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
string_id message = new string_id (c_stringFile, "s_634");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_636");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_648");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 172);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_652")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_654");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_656");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_660");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 177);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_664")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_666");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch172 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_636")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_638");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_640");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_644");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 173);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_648")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_650");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch173 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_640")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_642");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_644")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_646");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch177 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_656")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_658");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_660")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_662");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch181 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
if (response == "s_672")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
string_id message = new string_id (c_stringFile, "s_674");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_676");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_688");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 182);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_692")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_694");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_696");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_700");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 187);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_704")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_706");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch182 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_676")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_678");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_680");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_684");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 183);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_688")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_690");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch183 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_680")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_682");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_684")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_686");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch187 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_696")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_698");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_700")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_702");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch191 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_712")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_714");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_716")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_718");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch197 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: We recently experienced some type of seismic event. It seems to have wrecked havoc with our security and containment systems. Many of my security officers have died as a result.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Do you need a hand in getting it under control?
|
|
if (response == "s_736")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_securitytech_action_set_tracker_2 (player, npc);
|
|
|
|
//-- NPC: Actually, I could use some help, but if you're going further into the compound, you'll need a code to get through that security door. Punch in the code 12872 and you can get through. There are some things you should watch out for though.
|
|
string_id message = new string_id (c_stringFile, "s_738");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What kind of things do I need to watch out for?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_740");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_840");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 198);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'd better go in and check on things. Good-bye.
|
|
if (response == "s_844")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_securitytech_action_set_tracker_2 (player, npc);
|
|
|
|
//-- NPC: It's your funeral. You'll need to punch in the code 12872 to get through that security door. Just make sure none of those creatures gets in here before I get security back online.
|
|
string_id message = new string_id (c_stringFile, "s_846");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch198 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Actually, I could use some help, but if you're going further into the compound, you'll need a code to get through that security door. Punch in the code 12872 and you can get through. There are some things you should watch out for though.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What kind of things do I need to watch out for?
|
|
if (response == "s_740")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_securitytech_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: Specifically, you will need to be aware of the sentry droids, and any creatures that might have escaped from their cages.
|
|
string_id message = new string_id (c_stringFile, "s_742");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
boolean hasResponse3 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_744");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_784");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_824");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_836");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 199);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
if (response == "s_840")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Fine, just stay out of my way.
|
|
string_id message = new string_id (c_stringFile, "s_842");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch199 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Specifically, you will need to be aware of the sentry droids, and any creatures that might have escaped from their cages.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
if (response == "s_744")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
string_id message = new string_id (c_stringFile, "s_746");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_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_748");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_768");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_780");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 200);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
if (response == "s_784")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
string_id message = new string_id (c_stringFile, "s_786");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_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_788");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_808");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_820");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 210);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_824")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_826");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_828");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_832");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 220);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: On second thought, I'd better just leave it to you.
|
|
if (response == "s_836")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Fine, just stay out of my way.
|
|
string_id message = new string_id (c_stringFile, "s_838");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch200 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the sentry droids?
|
|
if (response == "s_748")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
string_id message = new string_id (c_stringFile, "s_750");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_752");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_764");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 201);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_768")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_770");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_772");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_776");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 206);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_780")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_782");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch201 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_752")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_754");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_756");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_760");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 202);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_764")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_766");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch202 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_756")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_758");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_760")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_762");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch206 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_772")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_774");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_776")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_778");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch210 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: With our security system down, the droids' targeting protocol will be offline. They are likely to shoot at anything and everything that moves. They are positioned in halls throughout the complex.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me more about the escaped creatures?
|
|
if (response == "s_788")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
string_id message = new string_id (c_stringFile, "s_790");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_792");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_804");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 211);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_808")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_810");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_812");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_816");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 216);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_820")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_822");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch211 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: These creatures have been modified to become very powerful. When the earthquake hit, our containment system went down, and now they are able to leave their cages and roam the halls. That is about all I know.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. What would you like for me to do?
|
|
if (response == "s_792")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
string_id message = new string_id (c_stringFile, "s_794");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Are you coming with me?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_796");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_800");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 212);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_804")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_806");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch212 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_796")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_798");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_800")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_802");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch216 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_812")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_814");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_816")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_818");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_securitytech_handleBranch220 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The first thing that we need to do is to kill any of those mutant creatures that might have escaped. Then we'll have a good chance of getting this place back under control.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Are you coming with me?
|
|
if (response == "s_828")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: No, I'm going to stay here and try to get the security system back online. Just go and help the others. I'm sure they're in trouble.
|
|
string_id message = new string_id (c_stringFile, "s_830");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Alright. I'll do my best.
|
|
if (response == "s_832")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Best of luck to you, friend. And be careful.
|
|
string_id message = new string_id (c_stringFile, "s_834");
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
// ======================================================================
|
|
// User Script Triggers
|
|
// ======================================================================
|
|
|
|
trigger OnInitialize ()
|
|
{
|
|
if ((!isMob (self)) || (isPlayer (self)))
|
|
detachScript(self, "conversation.biogenic_securitytech");
|
|
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
setInvulnerable(self, true);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnAttach ()
|
|
{
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
setInvulnerable(self, true);
|
|
|
|
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.biogenic_securitytech");
|
|
|
|
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 (biogenic_securitytech_condition_get_tracker_3 (player, npc))
|
|
{
|
|
biogenic_securitytech_action_face_to (player, npc);
|
|
|
|
//-- NPC: Oh, yes. Is there anything else that I can do for you?
|
|
string_id message = new string_id (c_stringFile, "s_71d4af18");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me about the escaped creatures again?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Can you tell me about the sentry droids again?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: What was the code to get through the security door again?
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, I was just leaving. Thanks for your help.
|
|
boolean hasResponse3 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_4e67874f");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_14");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a57fff7e");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5147321f");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 1);
|
|
|
|
npcStartConversation (player, npc, "biogenic_securitytech", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition_get_tracker_2 (player, npc))
|
|
{
|
|
biogenic_securitytech_action_face_to (player, npc);
|
|
|
|
//-- NPC: Remember, I don't recommend it. But if you want to get through the security door, punch in the code 12872.
|
|
string_id message = new string_id (c_stringFile, "s_7397bf4e");
|
|
chat.chat (npc, player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition_get_tracker_1 (player, npc))
|
|
{
|
|
biogenic_securitytech_action_face_to (player, npc);
|
|
|
|
//-- NPC: I'm sorry, but I am very busy. What do you need?
|
|
string_id message = new string_id (c_stringFile, "s_9749167c");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'd like to see more of this complex. Is there anything I should know?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Sorry to bother you.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_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_28594fa2");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_367aaeab");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 13);
|
|
|
|
npcStartConversation (player, npc, "biogenic_securitytech", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_securitytech_action_face_to (player, npc);
|
|
|
|
//-- NPC: Aargh. More of those foul creatures have escaped. Wait a minute, how did you get in here?
|
|
string_id message = new string_id (c_stringFile, "s_7df9e17e");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Through a large opening in the side of a hill.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Well, the hole in the mountain was unlocked, so...
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Never mind that. What's going on here?
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: The same way that I'm leaving. Good-bye.
|
|
boolean hasResponse3 = false;
|
|
if (biogenic_securitytech_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d7b11a2");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a35c0e94");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_55b3a778");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d14c9940");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_securitytech.branchId", 42);
|
|
|
|
npcStartConversation (player, npc, "biogenic_securitytech", message, responses);
|
|
}
|
|
else
|
|
{
|
|
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 != "biogenic_securitytech")
|
|
return SCRIPT_CONTINUE;
|
|
|
|
obj_id npc = self;
|
|
|
|
int branchId = utils.getIntScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
if (branchId == 1 && biogenic_securitytech_handleBranch1 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 2 && biogenic_securitytech_handleBranch2 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 3 && biogenic_securitytech_handleBranch3 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 6 && biogenic_securitytech_handleBranch6 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 7 && biogenic_securitytech_handleBranch7 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 13 && biogenic_securitytech_handleBranch13 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 14 && biogenic_securitytech_handleBranch14 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 15 && biogenic_securitytech_handleBranch15 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 16 && biogenic_securitytech_handleBranch16 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 17 && biogenic_securitytech_handleBranch17 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 18 && biogenic_securitytech_handleBranch18 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 22 && biogenic_securitytech_handleBranch22 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 26 && biogenic_securitytech_handleBranch26 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 27 && biogenic_securitytech_handleBranch27 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 28 && biogenic_securitytech_handleBranch28 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 32 && biogenic_securitytech_handleBranch32 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 36 && biogenic_securitytech_handleBranch36 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 42 && biogenic_securitytech_handleBranch42 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 43 && biogenic_securitytech_handleBranch43 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 44 && biogenic_securitytech_handleBranch44 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 45 && biogenic_securitytech_handleBranch45 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 46 && biogenic_securitytech_handleBranch46 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 47 && biogenic_securitytech_handleBranch47 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 48 && biogenic_securitytech_handleBranch48 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 49 && biogenic_securitytech_handleBranch49 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 50 && biogenic_securitytech_handleBranch50 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 54 && biogenic_securitytech_handleBranch54 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 58 && biogenic_securitytech_handleBranch58 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 59 && biogenic_securitytech_handleBranch59 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 60 && biogenic_securitytech_handleBranch60 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 64 && biogenic_securitytech_handleBranch64 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 68 && biogenic_securitytech_handleBranch68 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 74 && biogenic_securitytech_handleBranch74 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 75 && biogenic_securitytech_handleBranch75 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 76 && biogenic_securitytech_handleBranch76 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 77 && biogenic_securitytech_handleBranch77 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 78 && biogenic_securitytech_handleBranch78 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 79 && biogenic_securitytech_handleBranch79 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 83 && biogenic_securitytech_handleBranch83 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 87 && biogenic_securitytech_handleBranch87 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 88 && biogenic_securitytech_handleBranch88 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 89 && biogenic_securitytech_handleBranch89 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 93 && biogenic_securitytech_handleBranch93 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 97 && biogenic_securitytech_handleBranch97 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 105 && biogenic_securitytech_handleBranch105 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 106 && biogenic_securitytech_handleBranch106 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 107 && biogenic_securitytech_handleBranch107 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 108 && biogenic_securitytech_handleBranch108 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 109 && biogenic_securitytech_handleBranch109 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 110 && biogenic_securitytech_handleBranch110 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 111 && biogenic_securitytech_handleBranch111 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 112 && biogenic_securitytech_handleBranch112 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 116 && biogenic_securitytech_handleBranch116 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 120 && biogenic_securitytech_handleBranch120 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 121 && biogenic_securitytech_handleBranch121 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 122 && biogenic_securitytech_handleBranch122 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 126 && biogenic_securitytech_handleBranch126 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 130 && biogenic_securitytech_handleBranch130 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 136 && biogenic_securitytech_handleBranch136 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 137 && biogenic_securitytech_handleBranch137 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 138 && biogenic_securitytech_handleBranch138 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 139 && biogenic_securitytech_handleBranch139 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 140 && biogenic_securitytech_handleBranch140 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 141 && biogenic_securitytech_handleBranch141 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 145 && biogenic_securitytech_handleBranch145 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 149 && biogenic_securitytech_handleBranch149 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 150 && biogenic_securitytech_handleBranch150 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 151 && biogenic_securitytech_handleBranch151 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 155 && biogenic_securitytech_handleBranch155 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 159 && biogenic_securitytech_handleBranch159 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 167 && biogenic_securitytech_handleBranch167 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 168 && biogenic_securitytech_handleBranch168 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 169 && biogenic_securitytech_handleBranch169 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 170 && biogenic_securitytech_handleBranch170 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 171 && biogenic_securitytech_handleBranch171 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 172 && biogenic_securitytech_handleBranch172 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 173 && biogenic_securitytech_handleBranch173 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 177 && biogenic_securitytech_handleBranch177 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 181 && biogenic_securitytech_handleBranch181 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 182 && biogenic_securitytech_handleBranch182 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 183 && biogenic_securitytech_handleBranch183 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 187 && biogenic_securitytech_handleBranch187 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 191 && biogenic_securitytech_handleBranch191 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 197 && biogenic_securitytech_handleBranch197 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 198 && biogenic_securitytech_handleBranch198 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 199 && biogenic_securitytech_handleBranch199 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 200 && biogenic_securitytech_handleBranch200 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 201 && biogenic_securitytech_handleBranch201 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 202 && biogenic_securitytech_handleBranch202 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 206 && biogenic_securitytech_handleBranch206 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 210 && biogenic_securitytech_handleBranch210 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 211 && biogenic_securitytech_handleBranch211 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 212 && biogenic_securitytech_handleBranch212 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 216 && biogenic_securitytech_handleBranch216 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 220 && biogenic_securitytech_handleBranch220 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
chat.chat (npc, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
|
|
|
|
utils.removeScriptVar (player, "conversation.biogenic_securitytech.branchId");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
|