mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
2366 lines
70 KiB
Plaintext
2366 lines
70 KiB
Plaintext
// ======================================================================
|
|
//
|
|
// biogenic_scientist_human.script
|
|
// Copyright 2004, Sony Online Entertainment
|
|
// All Rights Reserved.
|
|
//
|
|
// Created with SwgConversationEditor 1.36 - 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_scientist_human";
|
|
|
|
// ======================================================================
|
|
// Script Conditions
|
|
// ======================================================================
|
|
|
|
boolean biogenic_scientist_human_condition__defaultCondition (obj_id player, obj_id npc)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean biogenic_scientist_human_condition_get_tracker_2 (obj_id player, obj_id npc)
|
|
{
|
|
int tracker = getIntObjVar(player, "biogenic.scientist_human_convo");
|
|
|
|
if(tracker == 2) {
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean biogenic_scientist_human_condition_get_tracker_1 (obj_id player, obj_id npc)
|
|
{
|
|
int tracker = getIntObjVar(player, "biogenic.scientist_human_convo");
|
|
|
|
if(tracker == 1) {
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean biogenic_scientist_human_condition_get_tracker_3 (obj_id player, obj_id npc)
|
|
{
|
|
int tracker = getIntObjVar(player, "biogenic.scientist_human_convo");
|
|
|
|
if(tracker == 3) {
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Actions
|
|
// ======================================================================
|
|
|
|
void biogenic_scientist_human_action_give_schematic (obj_id player, obj_id npc)
|
|
{
|
|
setObjVar(player, "biogenic.scientist_human_convo", 2);
|
|
|
|
obj_id playerInv = utils.getInventoryContainer(player);
|
|
createObject ("object/tangible/loot/loot_schematic/geonosian_tenloss_dxr6_schematic.iff", playerInv, "");
|
|
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void biogenic_scientist_human_action_set_tracker_1 (obj_id player, obj_id npc)
|
|
{
|
|
setObjVar(player, "biogenic.scientist_human_convo", 1);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void biogenic_scientist_human_action_face_to (obj_id player, obj_id npc)
|
|
{
|
|
faceToBehavior(npc, player);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void biogenic_scientist_human_action_set_tracker_3 (obj_id player, obj_id npc)
|
|
{
|
|
faceToBehavior(npc, player);
|
|
|
|
setObjVar(player, "biogenic.scientist_human_convo", 3);
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script %TO Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Script %DI Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Script %DF Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// handleBranch<n> Functions
|
|
// ======================================================================
|
|
|
|
int biogenic_scientist_human_handleBranch2 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Since you're here, could you please check on my colleagues in Genetics Lab One. If they were still in there when the doors locked down they might be in trouble. You can unlock the door with the code 86332 if necessary.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'll make sure they're OK.
|
|
if (response == "s_259e4732")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Thank you so much. I appreciate it.
|
|
string_id message = new string_id (c_stringFile, "s_f891f03f");
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: We'll see if I get a chance.
|
|
if (response == "s_a2a14f83")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Alright, but they may be in serious trouble. Thank you anyway for all your help.
|
|
string_id message = new string_id (c_stringFile, "s_37a3f14d");
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_scientist_human_handleBranch3 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Oh hey, I'm glad you came back. I'm getting ready to get out of here, but before I go, I have something that I wanted to give you...
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What is it?
|
|
if (response == "s_1c8bddbb")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_give_schematic (player, npc);
|
|
|
|
//-- NPC: Oh, yes, here it is. A long time ago, we had plans to build weapons in case our experiments ever got out of control. We never got around to building them, and I guess now it's too late. Someone like yourself should be able to make use of this.
|
|
string_id message = new string_id (c_stringFile, "s_ce30b8e3");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thank you very much.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Sure, it might come in handy.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_4136c2df");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_e79d7d15");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 8);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: That's not necessary. You don't need to give me anything.
|
|
if (response == "s_7516dec7")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_give_schematic (player, npc);
|
|
|
|
//-- NPC: No, I want you to have it. A long time ago, we had plans to build weapons in case our experiments ever got out of control. We never got around to building them, and I guess now it's too late. Someone like yourself should be able to make use of this.
|
|
string_id message = new string_id (c_stringFile, "s_a643bebd");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thank you very much.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Sure, it might come in handy.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_4136c2df");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_e79d7d15");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 8);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_scientist_human_handleBranch4 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Oh, yes, here it is. A long time ago, we had plans to build weapons in case our experiments ever got out of control. We never got around to building them, and I guess now it's too late. Someone like yourself should be able to make use of this.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thank you very much.
|
|
if (response == "s_4136c2df")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: No problem at all. If you can, please check on my colleagues in Genetics Lab One. If they were still in there when the doors locked down they might be in trouble. You can unlock the door with the code 86332 if necessary.
|
|
string_id message = new string_id (c_stringFile, "s_5044c295");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll make sure they're OK.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: We'll see if I get a chance.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_259e4732");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a2a14f83");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 9);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Sure, it might come in handy.
|
|
if (response == "s_e79d7d15")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: I hope so. If you can, please check on my colleagues in Genetics Lab One. If they were still in there when the doors locked down they might be in trouble. You can unlock the door with the code 86332 if necessary.
|
|
string_id message = new string_id (c_stringFile, "s_4c5806c8");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll make sure they're OK.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: We'll see if I get a chance.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_259e4732");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a2a14f83");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 9);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_scientist_human_handleBranch5 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: No, I want you to have it. A long time ago, we had plans to build weapons in case our experiments ever got out of control. We never got around to building them, and I guess now it's too late. Someone like yourself should be able to make use of this.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thank you very much.
|
|
if (response == "s_4136c2df")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: No problem at all. If you can, please check on my colleagues in Genetics Lab One. If they were still in there when the doors locked down they might be in trouble. You can unlock the door with the code 86332 if necessary.
|
|
string_id message = new string_id (c_stringFile, "s_5044c295");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll make sure they're OK.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: We'll see if I get a chance.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_259e4732");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a2a14f83");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 9);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Sure, it might come in handy.
|
|
if (response == "s_e79d7d15")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: I hope so. If you can, please check on my colleagues in Genetics Lab One. If they were still in there when the doors locked down they might be in trouble. You can unlock the door with the code 86332 if necessary.
|
|
string_id message = new string_id (c_stringFile, "s_4c5806c8");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll make sure they're OK.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: We'll see if I get a chance.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_259e4732");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a2a14f83");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 9);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_scientist_human_handleBranch6 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Oh, thank you so much! Thank you for saving my life. I just want to get out of here. I want to get away.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: It should be safe for you to leave now.
|
|
if (response == "s_dc4694a0")
|
|
{
|
|
biogenic_scientist_human_action_set_tracker_1 (player, npc);
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Yes, you seem to have killed quite a few of those creatures. I'll try to make my way out. Before I go, though, I may have something you might could use...
|
|
string_id message = new string_id (c_stringFile, "s_b479c40b");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What is it?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, thank you. That's not necessary.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_13");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c28dc6ef");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 7);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Hey now. Don't I get something for saving your life?
|
|
if (response == "s_3c5b4784")
|
|
{
|
|
biogenic_scientist_human_action_set_tracker_1 (player, npc);
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Oh, well yes, I suppose I do have something here. Let me see if I can find it.
|
|
string_id message = new string_id (c_stringFile, "s_7e89fa19");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What is it?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: On second thought, it's not necessary.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_29");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_46b9a9b7");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 14);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: It's my pleasure. Be careful, and good luck.
|
|
if (response == "s_976331da")
|
|
{
|
|
biogenic_scientist_human_action_set_tracker_1 (player, npc);
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Thank you. Oh, wait a minute. Before you go I have something maybe that you can use. Just a moment and let me find it...
|
|
string_id message = new string_id (c_stringFile, "s_d080da0e");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What is it?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No, thank you. That's not necessary.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_37");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_41");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 17);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_scientist_human_handleBranch7 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes, you seem to have killed quite a few of those creatures. I'll try to make my way out. Before I go, though, I may have something you might could use...
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What is it?
|
|
if (response == "s_13")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_give_schematic (player, npc);
|
|
|
|
//-- NPC: Oh, yes, here it is. A long time ago, we had plans to build weapons in case our experiments ever got out of control. We never got around to building them, and I guess now it's too late. Someone like yourself should be able to make use of this.
|
|
string_id message = new string_id (c_stringFile, "s_15");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thank you very much.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Sure, it might come in handy.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_4136c2df");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_e79d7d15");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 8);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No, thank you. That's not necessary.
|
|
if (response == "s_c28dc6ef")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_give_schematic (player, npc);
|
|
|
|
//-- NPC: No, no, I insist. A long time ago, we had plans to build weapons in case our experiments ever got out of control. We never got around to building them, and I guess now it's too late. Someone like yourself should be able to make use of this.
|
|
string_id message = new string_id (c_stringFile, "s_e2c55073");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thank you very much.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Sure, it might come in handy.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_4136c2df");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_e79d7d15");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 8);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_scientist_human_handleBranch8 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Oh, yes, here it is. A long time ago, we had plans to build weapons in case our experiments ever got out of control. We never got around to building them, and I guess now it's too late. Someone like yourself should be able to make use of this.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thank you very much.
|
|
if (response == "s_4136c2df")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: No problem at all. If you can, please check on my colleagues in Genetics Lab One. If they were still in there when the doors locked down they might be in trouble. You can unlock the door with the code 86332 if necessary.
|
|
string_id message = new string_id (c_stringFile, "s_5044c295");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll make sure they're OK.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: We'll see if I get a chance.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_259e4732");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a2a14f83");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 9);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Sure, it might come in handy.
|
|
if (response == "s_e79d7d15")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: I hope so. If you can, please check on my colleagues in Genetics Lab One. If they were still in there when the doors locked down they might be in trouble. You can unlock the door with the code 86332 if necessary.
|
|
string_id message = new string_id (c_stringFile, "s_4c5806c8");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll make sure they're OK.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: We'll see if I get a chance.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_259e4732");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a2a14f83");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 9);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_scientist_human_handleBranch9 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: No problem at all. If you can, please check on my colleagues in Genetics Lab One. If they were still in there when the doors locked down they might be in trouble. You can unlock the door with the code 86332 if necessary.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'll make sure they're OK.
|
|
if (response == "s_259e4732")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Thank you so much. I appreciate it.
|
|
string_id message = new string_id (c_stringFile, "s_f891f03f");
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: We'll see if I get a chance.
|
|
if (response == "s_a2a14f83")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Alright, but they may be in serious trouble. Thank you anyway for all your help.
|
|
string_id message = new string_id (c_stringFile, "s_37a3f14d");
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_scientist_human_handleBranch12 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I hope so. If you can, please check on my colleagues in Genetics Lab One. If they were still in there when the doors locked down they might be in trouble. You can unlock the door with the code 86332 if necessary.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'll make sure they're OK.
|
|
if (response == "s_259e4732")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Thank you so much. I appreciate it.
|
|
string_id message = new string_id (c_stringFile, "s_f891f03f");
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: We'll see if I get a chance.
|
|
if (response == "s_a2a14f83")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Alright, but they may be in serious trouble. Thank you anyway for all your help.
|
|
string_id message = new string_id (c_stringFile, "s_37a3f14d");
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_scientist_human_handleBranch13 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: No, no, I insist. A long time ago, we had plans to build weapons in case our experiments ever got out of control. We never got around to building them, and I guess now it's too late. Someone like yourself should be able to make use of this.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thank you very much.
|
|
if (response == "s_4136c2df")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: No problem at all. If you can, please check on my colleagues in Genetics Lab One. If they were still in there when the doors locked down they might be in trouble. You can unlock the door with the code 86332 if necessary.
|
|
string_id message = new string_id (c_stringFile, "s_5044c295");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll make sure they're OK.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: We'll see if I get a chance.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_259e4732");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a2a14f83");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 9);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Sure, it might come in handy.
|
|
if (response == "s_e79d7d15")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: I hope so. If you can, please check on my colleagues in Genetics Lab One. If they were still in there when the doors locked down they might be in trouble. You can unlock the door with the code 86332 if necessary.
|
|
string_id message = new string_id (c_stringFile, "s_4c5806c8");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll make sure they're OK.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: We'll see if I get a chance.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_259e4732");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a2a14f83");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 9);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_scientist_human_handleBranch14 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Oh, well yes, I suppose I do have something here. Let me see if I can find it.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What is it?
|
|
if (response == "s_29")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_give_schematic (player, npc);
|
|
|
|
//-- NPC: Oh, yes, here it is. A long time ago, we had plans to build weapons in case our experiments ever got out of control. We never got around to building them, and I guess now it's too late. Someone like yourself should be able to make use of this.
|
|
string_id message = new string_id (c_stringFile, "s_31");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thank you very much.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Sure, it might come in handy.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_4136c2df");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_e79d7d15");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 8);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: On second thought, it's not necessary.
|
|
if (response == "s_46b9a9b7")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_give_schematic (player, npc);
|
|
|
|
//-- NPC: No, you're right. Here we go. A long time ago, we had plans to build weapons in case our experiments ever got out of control. We never got around to building them, and I guess now it's too late. Someone like yourself should be able to make use of this.
|
|
string_id message = new string_id (c_stringFile, "s_91b03aa5");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thank you very much.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Sure, it might come in handy.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_4136c2df");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_e79d7d15");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 8);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_scientist_human_handleBranch15 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Oh, yes, here it is. A long time ago, we had plans to build weapons in case our experiments ever got out of control. We never got around to building them, and I guess now it's too late. Someone like yourself should be able to make use of this.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thank you very much.
|
|
if (response == "s_4136c2df")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: No problem at all. If you can, please check on my colleagues in Genetics Lab One. If they were still in there when the doors locked down they might be in trouble. You can unlock the door with the code 86332 if necessary.
|
|
string_id message = new string_id (c_stringFile, "s_5044c295");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll make sure they're OK.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: We'll see if I get a chance.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_259e4732");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a2a14f83");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 9);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Sure, it might come in handy.
|
|
if (response == "s_e79d7d15")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: I hope so. If you can, please check on my colleagues in Genetics Lab One. If they were still in there when the doors locked down they might be in trouble. You can unlock the door with the code 86332 if necessary.
|
|
string_id message = new string_id (c_stringFile, "s_4c5806c8");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll make sure they're OK.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: We'll see if I get a chance.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_259e4732");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a2a14f83");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 9);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_scientist_human_handleBranch16 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: No, you're right. Here we go. A long time ago, we had plans to build weapons in case our experiments ever got out of control. We never got around to building them, and I guess now it's too late. Someone like yourself should be able to make use of this.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thank you very much.
|
|
if (response == "s_4136c2df")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: No problem at all. If you can, please check on my colleagues in Genetics Lab One. If they were still in there when the doors locked down they might be in trouble. You can unlock the door with the code 86332 if necessary.
|
|
string_id message = new string_id (c_stringFile, "s_5044c295");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll make sure they're OK.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: We'll see if I get a chance.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_259e4732");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a2a14f83");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 9);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Sure, it might come in handy.
|
|
if (response == "s_e79d7d15")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: I hope so. If you can, please check on my colleagues in Genetics Lab One. If they were still in there when the doors locked down they might be in trouble. You can unlock the door with the code 86332 if necessary.
|
|
string_id message = new string_id (c_stringFile, "s_4c5806c8");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll make sure they're OK.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: We'll see if I get a chance.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_259e4732");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a2a14f83");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 9);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_scientist_human_handleBranch17 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Thank you. Oh, wait a minute. Before you go I have something maybe that you can use. Just a moment and let me find it...
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What is it?
|
|
if (response == "s_37")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_give_schematic (player, npc);
|
|
|
|
//-- NPC: Oh, yes, here it is. A long time ago, we had plans to build weapons in case our experiments ever got out of control. We never got around to building them, and I guess now it's too late. Someone like yourself should be able to make use of this.
|
|
string_id message = new string_id (c_stringFile, "s_39");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thank you very much.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Sure, it might come in handy.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_4136c2df");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_e79d7d15");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 8);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No, thank you. That's not necessary.
|
|
if (response == "s_41")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_give_schematic (player, npc);
|
|
|
|
//-- NPC: No, no, I insist. A long time ago, we had plans to build weapons in case our experiments ever got out of control. We never got around to building them, and I guess now it's too late. Someone like yourself should be able to make use of this.
|
|
string_id message = new string_id (c_stringFile, "s_43");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thank you very much.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Sure, it might come in handy.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_4136c2df");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_e79d7d15");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 8);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_scientist_human_handleBranch18 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Oh, yes, here it is. A long time ago, we had plans to build weapons in case our experiments ever got out of control. We never got around to building them, and I guess now it's too late. Someone like yourself should be able to make use of this.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thank you very much.
|
|
if (response == "s_4136c2df")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: No problem at all. If you can, please check on my colleagues in Genetics Lab One. If they were still in there when the doors locked down they might be in trouble. You can unlock the door with the code 86332 if necessary.
|
|
string_id message = new string_id (c_stringFile, "s_5044c295");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll make sure they're OK.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: We'll see if I get a chance.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_259e4732");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a2a14f83");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 9);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Sure, it might come in handy.
|
|
if (response == "s_e79d7d15")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: I hope so. If you can, please check on my colleagues in Genetics Lab One. If they were still in there when the doors locked down they might be in trouble. You can unlock the door with the code 86332 if necessary.
|
|
string_id message = new string_id (c_stringFile, "s_4c5806c8");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll make sure they're OK.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: We'll see if I get a chance.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_259e4732");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a2a14f83");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 9);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int biogenic_scientist_human_handleBranch19 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: No, no, I insist. A long time ago, we had plans to build weapons in case our experiments ever got out of control. We never got around to building them, and I guess now it's too late. Someone like yourself should be able to make use of this.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thank you very much.
|
|
if (response == "s_4136c2df")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: No problem at all. If you can, please check on my colleagues in Genetics Lab One. If they were still in there when the doors locked down they might be in trouble. You can unlock the door with the code 86332 if necessary.
|
|
string_id message = new string_id (c_stringFile, "s_5044c295");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll make sure they're OK.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: We'll see if I get a chance.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_259e4732");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a2a14f83");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 9);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Sure, it might come in handy.
|
|
if (response == "s_e79d7d15")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: I hope so. If you can, please check on my colleagues in Genetics Lab One. If they were still in there when the doors locked down they might be in trouble. You can unlock the door with the code 86332 if necessary.
|
|
string_id message = new string_id (c_stringFile, "s_4c5806c8");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll make sure they're OK.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: We'll see if I get a chance.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_259e4732");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a2a14f83");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 9);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
// ======================================================================
|
|
// User Script Triggers
|
|
// ======================================================================
|
|
|
|
trigger OnInitialize ()
|
|
{
|
|
if ((!isMob (self)) || (isPlayer (self)))
|
|
detachScript(self, "conversation.biogenic_scientist_human");
|
|
|
|
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_scientist_human");
|
|
|
|
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_scientist_human_condition_get_tracker_3 (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_face_to (player, npc);
|
|
|
|
//-- NPC: You go on ahead. I'm just going to rest here for a moment. Don't forget, if you need to get into Genetics Lab One, you can use the code 86332.
|
|
string_id message = new string_id (c_stringFile, "s_6fc909ee");
|
|
chat.chat (npc, player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition_get_tracker_2 (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_set_tracker_3 (player, npc);
|
|
|
|
//-- NPC: Since you're here, could you please check on my colleagues in Genetics Lab One. If they were still in there when the doors locked down they might be in trouble. You can unlock the door with the code 86332 if necessary.
|
|
string_id message = new string_id (c_stringFile, "s_b076c975");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll make sure they're OK.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: We'll see if I get a chance.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_259e4732");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a2a14f83");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 9);
|
|
|
|
npcStartConversation (player, npc, "biogenic_scientist_human", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition_get_tracker_1 (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_face_to (player, npc);
|
|
|
|
//-- NPC: Oh hey, I'm glad you came back. I'm getting ready to get out of here, but before I go, I have something that I wanted to give you...
|
|
string_id message = new string_id (c_stringFile, "s_2f286865");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What is it?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: That's not necessary. You don't need to give me anything.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_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_1c8bddbb");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_7516dec7");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 3);
|
|
|
|
npcStartConversation (player, npc, "biogenic_scientist_human", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
biogenic_scientist_human_action_face_to (player, npc);
|
|
|
|
//-- NPC: Oh, thank you so much! Thank you for saving my life. I just want to get out of here. I want to get away.
|
|
string_id message = new string_id (c_stringFile, "s_ba27cb12");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: It should be safe for you to leave now.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Hey now. Don't I get something for saving your life?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_scientist_human_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: It's my pleasure. Be careful, and good luck.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_scientist_human_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_dc4694a0");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_3c5b4784");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_976331da");
|
|
|
|
utils.setScriptVar (player, "conversation.biogenic_scientist_human.branchId", 6);
|
|
|
|
npcStartConversation (player, npc, "biogenic_scientist_human", 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_scientist_human")
|
|
return SCRIPT_CONTINUE;
|
|
|
|
obj_id npc = self;
|
|
|
|
int branchId = utils.getIntScriptVar (player, "conversation.biogenic_scientist_human.branchId");
|
|
|
|
if (branchId == 2 && biogenic_scientist_human_handleBranch2 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 3 && biogenic_scientist_human_handleBranch3 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 4 && biogenic_scientist_human_handleBranch4 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 5 && biogenic_scientist_human_handleBranch5 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 6 && biogenic_scientist_human_handleBranch6 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 7 && biogenic_scientist_human_handleBranch7 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 8 && biogenic_scientist_human_handleBranch8 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 9 && biogenic_scientist_human_handleBranch9 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 12 && biogenic_scientist_human_handleBranch12 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 13 && biogenic_scientist_human_handleBranch13 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 14 && biogenic_scientist_human_handleBranch14 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 15 && biogenic_scientist_human_handleBranch15 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 16 && biogenic_scientist_human_handleBranch16 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 17 && biogenic_scientist_human_handleBranch17 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 18 && biogenic_scientist_human_handleBranch18 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 19 && biogenic_scientist_human_handleBranch19 (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_scientist_human.branchId");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
|