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

1108 lines
36 KiB
Plaintext

// ======================================================================
//
// biogenic_assistant.script
//
//
//
// DO NOT EDIT THIS AUTO-GENERATED FILE. PLEASE USE THE CONVERATION EDITOR!
//
// ======================================================================
// ======================================================================
// Library Includes
// ======================================================================
include library.ai_lib;
include library.chat;
include library.utils;
// ======================================================================
// Script Constants
// ======================================================================
string c_stringFile = "conversation/biogenic_assistant";
// ======================================================================
// Script Conditions
// ======================================================================
boolean biogenic_assistant_condition__defaultCondition (obj_id player, obj_id npc)
{
return true;
}
// ----------------------------------------------------------------------
boolean biogenic_assistant_condition_get_tracker_1 (obj_id player, obj_id npc)
{
int tracker = getIntObjVar(player, "biogenic.assistant_convo");
if(tracker == 1) {
return true;
} else {
return false;
}
}
// ----------------------------------------------------------------------
boolean biogenic_assistant_condition_get_tracker_2 (obj_id player, obj_id npc)
{
int tracker = getIntObjVar(player, "biogenic.assistant_convo");
if(tracker >= 2) {
return true;
} else {
return false;
}
}
// ----------------------------------------------------------------------
boolean biogenic_assistant_condition_get_construct_tracker_3 (obj_id player, obj_id npc)
{
int tracker = getIntObjVar(player, "biogenic.construction_convo");
if(tracker == 3) {
return true;
} else {
return false;
}
}
// ----------------------------------------------------------------------
boolean biogenic_assistant_condition_get_engineer_tracker_2 (obj_id player, obj_id npc)
{
int tracker = getIntObjVar(player, "biogenic.engineer_convo");
if(tracker == 2) {
return true;
} else {
return false;
}
}
// ----------------------------------------------------------------------
boolean biogenic_assistant_condition_get_engineer_tracker_3 (obj_id player, obj_id npc)
{
int tracker = getIntObjVar(player, "biogenic.engineer_convo");
if(tracker == 3) {
return true;
} else {
return false;
}
}
// ----------------------------------------------------------------------
boolean biogenic_assistant_condition_get_multi_tracker (obj_id player, obj_id npc)
{
int eng_tracker = getIntObjVar(player, "biogenic.engineer_convo");
int con_tracker = getIntObjVar(player, "biogenic.construction_convo");
int tracker = getIntObjVar(player, "biogenic.assistant_convo");
if(tracker >= 2) {
if(eng_tracker > 0) {
return false;
} else {
if(con_tracker == 3) {
return false;
} else {
return true;
}
}
}
return false;
}
// ======================================================================
// Script Actions
// ======================================================================
void biogenic_assistant_action__defaultAction (obj_id player, obj_id npc)
{
}
// ----------------------------------------------------------------------
void biogenic_assistant_action_give_datapad (obj_id player, obj_id npc)
{
obj_id playerInv = utils.getInventoryContainer(player);
obj_id datapad = createObject("object/tangible/loot/dungeon/geonosian_mad_bunker/engineering_datapad.iff", playerInv, "");
setObjVar(player, "biogenic.assistant_convo", 2);
if(datapad == null) {
debugSpeakMsg(npc, "Failed to create datapad");
}
}
// ----------------------------------------------------------------------
void biogenic_assistant_action_set_tracker_1 (obj_id player, obj_id npc)
{
setObjVar(player, "biogenic.assistant_convo", 1);
}
// ----------------------------------------------------------------------
void biogenic_assistant_action_face_to (obj_id player, obj_id npc)
{
faceToBehavior(npc, player);
}
// ----------------------------------------------------------------------
void biogenic_assistant_action_give_datapad_3 (obj_id player, obj_id npc)
{
obj_id playerInv = utils.getInventoryContainer(player);
obj_id datapad = createObject("object/tangible/loot/dungeon/geonosian_mad_bunker/engineering_datapad.iff", playerInv, "");
setObjVar(player, "biogenic.assistant_convo", 3);
if(datapad == null) {
debugSpeakMsg(npc, "Failed to create datapad");
}
}
// ======================================================================
// User Script Triggers
// ======================================================================
trigger OnInitialize ()
{
if ((!isMob (self)) || (isPlayer (self)))
detachScript(self, "npc.conversation.biogenic_assistant");
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, "npc.conversation.biogenic_assistant");
return SCRIPT_CONTINUE;
}
// ======================================================================
// Script Triggers
// ======================================================================
trigger OnStartNpcConversation (obj_id player)
{
if (ai_lib.isInCombat (self) || ai_lib.isInCombat (player))
return SCRIPT_OVERRIDE;
//-- [NOTE]
if (biogenic_assistant_condition_get_engineer_tracker_3 (player, self))
{
biogenic_assistant_action_face_to (player, self);
//-- NPC: Thank you for delivering the codes to the engineer. You've been a great help.
string_id message = new string_id (c_stringFile, "s_25e7c7e7");
chat.chat (self, message);
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (biogenic_assistant_condition_get_multi_tracker (player, self))
{
biogenic_assistant_action_face_to (player, self);
//-- NPC: Please take the codes to the engineer. If you need to get into the engineering area, use the code 51892. Thank you very much for your help.
string_id message = new string_id (c_stringFile, "s_b5c70166");
chat.chat (self, message);
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (biogenic_assistant_condition_get_tracker_2 (player, self))
{
biogenic_assistant_action_face_to (player, self);
//-- NPC: Please take the codes to the engineer. Thank you very much for your help.
string_id message = new string_id (c_stringFile, "s_ae1d4fd6");
chat.chat (self, message);
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (biogenic_assistant_condition_get_tracker_1 (player, self))
{
biogenic_assistant_action_face_to (player, self);
//-- NPC: Oh, hey, you're back. I wonder if I could ask you for a favor?
string_id message = new string_id (c_stringFile, "s_bf513acb");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: What is the favor?
boolean hasResponse0 = false;
if (biogenic_assistant_condition__defaultCondition (player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Sorry, I don't have time right now.
boolean hasResponse1 = false;
if (biogenic_assistant_condition__defaultCondition (player, self))
{
++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_80dc0120");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_eeaf9e0b");
setObjVar (player, "conversation.biogenic_assistant.branchId", 4);
npcStartConversation (player, self, "biogenic_assistant", message, responses);
}
else
{
chat.chat (self, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (biogenic_assistant_condition__defaultCondition (player, self))
{
biogenic_assistant_action_face_to (player, self);
//-- NPC: Thank you for killing those creatures. They've escaped from their cages and they're out of control.
string_id message = new string_id (c_stringFile, "s_7dfa7256");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: What is it that you're doing here?
boolean hasResponse0 = false;
if (biogenic_assistant_condition__defaultCondition (player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Can you tell me anything about those monsters?
boolean hasResponse1 = false;
if (biogenic_assistant_condition__defaultCondition (player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: No problem. Good-bye.
boolean hasResponse2 = false;
if (biogenic_assistant_condition__defaultCondition (player, self))
{
++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_ea2d9bb0");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_82bc35bf");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_457410bd");
setObjVar (player, "conversation.biogenic_assistant.branchId", 11);
npcStartConversation (player, self, "biogenic_assistant", message, responses);
}
else
{
chat.chat (self, message);
}
return SCRIPT_CONTINUE;
}
chat.chat (self, "Error: All conditions for OnStartNpcConversation were false.");
return SCRIPT_CONTINUE;
}
// ----------------------------------------------------------------------
trigger OnNpcConversationResponse (string conversationId, obj_id player, string_id response)
{
if (conversationId != "biogenic_assistant")
return SCRIPT_CONTINUE;
int branchId = getIntObjVar (player, "conversation.biogenic_assistant.branchId");
//-- [BRANCH NOTE]
//-- NPC: Oh, hey, you're back. I wonder if I could ask you for a favor?
//-- [RESPONSE NOTE]
//-- PLAYER: What is the favor?
if (branchId == 4 && response == "s_80dc0120")
{
//-- [NOTE]
if (biogenic_assistant_condition__defaultCondition (player, self))
{
//-- NPC: I have these computer codes that I need to get to the engineer, but the creatures attacked me before I could get back to him. I wonder if you could bring the codes to him for me?
string_id message = new string_id (c_stringFile, "s_be849f7b");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Actually, he just told me to come get the codes.
boolean hasResponse0 = false;
if (biogenic_assistant_condition_get_engineer_tracker_2 (player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: Sure, I will take the codes to the engineer.
boolean hasResponse1 = false;
if (!biogenic_assistant_condition_get_engineer_tracker_2 (player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: Sorry, I don't have time right now.
boolean hasResponse2 = false;
if (biogenic_assistant_condition__defaultCondition (player, self))
{
++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_114e560");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_33eb85b5");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_eeaf9e0b");
setObjVar (player, "conversation.biogenic_assistant.branchId", 5);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
removeObjVar (player, "conversation.biogenic_assistant.branchId");
npcSpeak (player, message);
npcEndConversation (player);
}
return SCRIPT_CONTINUE;
}
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Oh, hey, you're back. I wonder if I could ask you for a favor?' were false.");
return SCRIPT_CONTINUE;
}
//-- [BRANCH NOTE]
//-- NPC: Oh, hey, you're back. I wonder if I could ask you for a favor?
//-- [RESPONSE NOTE]
//-- PLAYER: Sorry, I don't have time right now.
if (branchId == 4 && response == "s_eeaf9e0b")
{
//-- [NOTE]
if (biogenic_assistant_condition__defaultCondition (player, self))
{
//-- NPC: OK, I understand. If you get a chance, please come back.
string_id message = new string_id (c_stringFile, "s_aa495893");
removeObjVar (player, "conversation.biogenic_assistant.branchId");
npcSpeak (player, message);
npcEndConversation (player);
return SCRIPT_CONTINUE;
}
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Oh, hey, you're back. I wonder if I could ask you for a favor?' were false.");
return SCRIPT_CONTINUE;
}
//-- [BRANCH NOTE]
//-- NPC: I have these computer codes that I need to get to the engineer, but the creatures attacked me before I could get back to him. I wonder if you could bring the codes to him for me?
//-- [RESPONSE NOTE]
//-- PLAYER: Actually, he just told me to come get the codes.
if (branchId == 5 && response == "s_114e560")
{
//-- [NOTE]
if (biogenic_assistant_condition__defaultCondition (player, self))
{
biogenic_assistant_action_give_datapad (player, self);
//-- NPC: Really? Would you take them back to him? They are on this datapad. Thank you so much.
string_id message = new string_id (c_stringFile, "s_b856cb2e");
removeObjVar (player, "conversation.biogenic_assistant.branchId");
npcSpeak (player, message);
npcEndConversation (player);
return SCRIPT_CONTINUE;
}
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I have these computer codes that I need to get to the engineer, but the creatures attacked me before I could get back to him. I wonder if you could bring the codes to him for me?' were false.");
return SCRIPT_CONTINUE;
}
//-- [BRANCH NOTE]
//-- NPC: I have these computer codes that I need to get to the engineer, but the creatures attacked me before I could get back to him. I wonder if you could bring the codes to him for me?
//-- [RESPONSE NOTE]
//-- PLAYER: Sure, I will take the codes to the engineer.
if (branchId == 5 && response == "s_33eb85b5")
{
//-- [NOTE]
if (biogenic_assistant_condition_get_construct_tracker_3 (player, self))
{
biogenic_assistant_action_give_datapad (player, self);
//-- NPC: Really? That would be fantastic! Here, the codes are on this datapad. You should be able to find him near the reactor. Thank you so much for your help.
string_id message = new string_id (c_stringFile, "s_49ef3c27");
removeObjVar (player, "conversation.biogenic_assistant.branchId");
npcSpeak (player, message);
npcEndConversation (player);
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (biogenic_assistant_condition__defaultCondition (player, self))
{
biogenic_assistant_action_give_datapad_3 (player, self);
//-- NPC: Really? That would be fantastic! Here, the codes are on this datapad. You should be able to find him near the reactor. If the door to the engineering room is locked, the code 51892 will get you in. Thank you so much for your help.
string_id message = new string_id (c_stringFile, "s_c251c56d");
removeObjVar (player, "conversation.biogenic_assistant.branchId");
npcSpeak (player, message);
npcEndConversation (player);
return SCRIPT_CONTINUE;
}
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I have these computer codes that I need to get to the engineer, but the creatures attacked me before I could get back to him. I wonder if you could bring the codes to him for me?' were false.");
return SCRIPT_CONTINUE;
}
//-- [BRANCH NOTE]
//-- NPC: I have these computer codes that I need to get to the engineer, but the creatures attacked me before I could get back to him. I wonder if you could bring the codes to him for me?
//-- [RESPONSE NOTE]
//-- PLAYER: Sorry, I don't have time right now.
if (branchId == 5 && response == "s_eeaf9e0b")
{
//-- [NOTE]
if (biogenic_assistant_condition__defaultCondition (player, self))
{
//-- NPC: OK, I understand. If you get a chance, please come back.
string_id message = new string_id (c_stringFile, "s_aa495893");
removeObjVar (player, "conversation.biogenic_assistant.branchId");
npcSpeak (player, message);
npcEndConversation (player);
return SCRIPT_CONTINUE;
}
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I have these computer codes that I need to get to the engineer, but the creatures attacked me before I could get back to him. I wonder if you could bring the codes to him for me?' were false.");
return SCRIPT_CONTINUE;
}
//-- [BRANCH NOTE]
//-- NPC: Thank you for killing those creatures. They've escaped from their cages and they're out of control.
//-- [RESPONSE NOTE]
//-- PLAYER: What is it that you're doing here?
if (branchId == 11 && response == "s_ea2d9bb0")
{
biogenic_assistant_action_set_tracker_1 (player, self);
//-- [NOTE]
if (biogenic_assistant_condition__defaultCondition (player, self))
{
//-- NPC: I have the computer codes that the head engineer needs to get the reactor back online. I was on my way back to the engineering room, but I can't possibly make it there with all these creatures loose.
string_id message = new string_id (c_stringFile, "s_c3bd7233");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: The engineer told me to come get the codes from you.
boolean hasResponse0 = false;
if (biogenic_assistant_condition_get_engineer_tracker_2 (player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll take the codes to the engineer for you.
boolean hasResponse1 = false;
if (!biogenic_assistant_condition_get_engineer_tracker_2 (player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I'm sure you'll get there somehow. Good-bye.
boolean hasResponse2 = false;
if (biogenic_assistant_condition__defaultCondition (player, self))
{
++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_89ca9e86");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_761ee240");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_72510ac3");
setObjVar (player, "conversation.biogenic_assistant.branchId", 12);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
removeObjVar (player, "conversation.biogenic_assistant.branchId");
npcSpeak (player, message);
npcEndConversation (player);
}
return SCRIPT_CONTINUE;
}
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Thank you for killing those creatures. They've escaped from their cages and they're out of control.' were false.");
return SCRIPT_CONTINUE;
}
//-- [BRANCH NOTE]
//-- NPC: Thank you for killing those creatures. They've escaped from their cages and they're out of control.
//-- [RESPONSE NOTE]
//-- PLAYER: Can you tell me anything about those monsters?
if (branchId == 11 && response == "s_82bc35bf")
{
biogenic_assistant_action_set_tracker_1 (player, self);
//-- [NOTE]
if (biogenic_assistant_condition__defaultCondition (player, self))
{
//-- NPC: Not much. This is a genetic research facility, but I'm an engineering assistant. I don't know much about that stuff. But it would seem that when that earthquake hit, it somehow released the creatures from their cages.
string_id message = new string_id (c_stringFile, "s_255de7f7");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: Assistant? I was told to get some codes from you?
boolean hasResponse0 = false;
if (biogenic_assistant_condition_get_engineer_tracker_2 (player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: What is it that you're doing here?
boolean hasResponse1 = false;
if (biogenic_assistant_condition__defaultCondition (player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I see. Well, good-bye.
boolean hasResponse2 = false;
if (biogenic_assistant_condition__defaultCondition (player, self))
{
++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_950188fd");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_ea2d9bb0");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_81b17df9");
setObjVar (player, "conversation.biogenic_assistant.branchId", 17);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
removeObjVar (player, "conversation.biogenic_assistant.branchId");
npcSpeak (player, message);
npcEndConversation (player);
}
return SCRIPT_CONTINUE;
}
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Thank you for killing those creatures. They've escaped from their cages and they're out of control.' were false.");
return SCRIPT_CONTINUE;
}
//-- [BRANCH NOTE]
//-- NPC: Thank you for killing those creatures. They've escaped from their cages and they're out of control.
//-- [RESPONSE NOTE]
//-- PLAYER: No problem. Good-bye.
if (branchId == 11 && response == "s_457410bd")
{
//-- [NOTE]
if (biogenic_assistant_condition__defaultCondition (player, self))
{
//-- NPC: Yes, I need to try and get back to the reactor room myself.
string_id message = new string_id (c_stringFile, "s_4b2c2992");
removeObjVar (player, "conversation.biogenic_assistant.branchId");
npcSpeak (player, message);
npcEndConversation (player);
return SCRIPT_CONTINUE;
}
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Thank you for killing those creatures. They've escaped from their cages and they're out of control.' were false.");
return SCRIPT_CONTINUE;
}
//-- [BRANCH NOTE]
//-- NPC: I have the computer codes that the head engineer needs to get the reactor back online. I was on my way back to the engineering room, but I can't possibly make it there with all these creatures loose.
//-- [RESPONSE NOTE]
//-- PLAYER: The engineer told me to come get the codes from you.
if (branchId == 12 && response == "s_89ca9e86")
{
//-- [NOTE]
if (biogenic_assistant_condition__defaultCondition (player, self))
{
biogenic_assistant_action_give_datapad (player, self);
//-- NPC: Really? Would you take them back to him? They are on this datapad. Thank you so much.
string_id message = new string_id (c_stringFile, "s_b856cb2e");
removeObjVar (player, "conversation.biogenic_assistant.branchId");
npcSpeak (player, message);
npcEndConversation (player);
return SCRIPT_CONTINUE;
}
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I have the computer codes that the head engineer needs to get the reactor back online. I was on my way back to the engineering room, but I can't possibly make it there with all these creatures loose.' were false.");
return SCRIPT_CONTINUE;
}
//-- [BRANCH NOTE]
//-- NPC: I have the computer codes that the head engineer needs to get the reactor back online. I was on my way back to the engineering room, but I can't possibly make it there with all these creatures loose.
//-- [RESPONSE NOTE]
//-- PLAYER: I'll take the codes to the engineer for you.
if (branchId == 12 && response == "s_761ee240")
{
//-- [NOTE]
if (biogenic_assistant_condition_get_construct_tracker_3 (player, self))
{
biogenic_assistant_action_give_datapad (player, self);
//-- NPC: Really? That would be fantastic! Here, the codes are on this datapad. You should be able to find him near the reactor. Thank you so much for your help.
string_id message = new string_id (c_stringFile, "s_49ef3c27");
removeObjVar (player, "conversation.biogenic_assistant.branchId");
npcSpeak (player, message);
npcEndConversation (player);
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (biogenic_assistant_condition__defaultCondition (player, self))
{
biogenic_assistant_action_give_datapad_3 (player, self);
//-- NPC: Really? That would be fantastic! Here, the codes are on this datapad. You should be able to find him near the reactor. If the door to the engineering room is locked, the code 51892 will get you in. Thank you so much for your help.
string_id message = new string_id (c_stringFile, "s_c251c56d");
removeObjVar (player, "conversation.biogenic_assistant.branchId");
npcSpeak (player, message);
npcEndConversation (player);
return SCRIPT_CONTINUE;
}
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I have the computer codes that the head engineer needs to get the reactor back online. I was on my way back to the engineering room, but I can't possibly make it there with all these creatures loose.' were false.");
return SCRIPT_CONTINUE;
}
//-- [BRANCH NOTE]
//-- NPC: I have the computer codes that the head engineer needs to get the reactor back online. I was on my way back to the engineering room, but I can't possibly make it there with all these creatures loose.
//-- [RESPONSE NOTE]
//-- PLAYER: I'm sure you'll get there somehow. Good-bye.
if (branchId == 12 && response == "s_72510ac3")
{
//-- [NOTE]
if (biogenic_assistant_condition__defaultCondition (player, self))
{
//-- NPC: Yes, I hope so. Good-bye.
string_id message = new string_id (c_stringFile, "s_bbbd5d0f");
removeObjVar (player, "conversation.biogenic_assistant.branchId");
npcSpeak (player, message);
npcEndConversation (player);
return SCRIPT_CONTINUE;
}
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I have the computer codes that the head engineer needs to get the reactor back online. I was on my way back to the engineering room, but I can't possibly make it there with all these creatures loose.' were false.");
return SCRIPT_CONTINUE;
}
//-- [BRANCH NOTE]
//-- NPC: Not much. This is a genetic research facility, but I'm an engineering assistant. I don't know much about that stuff. But it would seem that when that earthquake hit, it somehow released the creatures from their cages.
//-- [RESPONSE NOTE]
//-- PLAYER: Assistant? I was told to get some codes from you?
if (branchId == 17 && response == "s_950188fd")
{
//-- [NOTE]
if (biogenic_assistant_condition__defaultCondition (player, self))
{
biogenic_assistant_action_give_datapad (player, self);
//-- NPC: Yes, I have these computer codes that the head engineer needs, but I was attacked by these creatures. Here, the codes are on this datapad. Please take them to him.
string_id message = new string_id (c_stringFile, "s_d8a95d57");
removeObjVar (player, "conversation.biogenic_assistant.branchId");
npcSpeak (player, message);
npcEndConversation (player);
return SCRIPT_CONTINUE;
}
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Not much. This is a genetic research facility, but I'm an engineering assistant. I don't know much about that stuff. But it would seem that when that earthquake hit, it somehow released the creatures from their cages.' were false.");
return SCRIPT_CONTINUE;
}
//-- [BRANCH NOTE]
//-- NPC: Not much. This is a genetic research facility, but I'm an engineering assistant. I don't know much about that stuff. But it would seem that when that earthquake hit, it somehow released the creatures from their cages.
//-- [RESPONSE NOTE]
//-- PLAYER: What is it that you're doing here?
if (branchId == 17 && response == "s_ea2d9bb0")
{
biogenic_assistant_action_set_tracker_1 (player, self);
//-- [NOTE]
if (biogenic_assistant_condition__defaultCondition (player, self))
{
//-- NPC: I have the computer codes that the head engineer needs to get the reactor back online. I was on my way back to the engineering room, but I can't possibly make it there with all these creatures loose.
string_id message = new string_id (c_stringFile, "s_c3bd7233");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: The engineer told me to come get the codes from you.
boolean hasResponse0 = false;
if (biogenic_assistant_condition_get_engineer_tracker_2 (player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: I'll take the codes to the engineer for you.
boolean hasResponse1 = false;
if (!biogenic_assistant_condition_get_engineer_tracker_2 (player, self))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: I'm sure you'll get there somehow. Good-bye.
boolean hasResponse2 = false;
if (biogenic_assistant_condition__defaultCondition (player, self))
{
++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_89ca9e86");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_761ee240");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_72510ac3");
setObjVar (player, "conversation.biogenic_assistant.branchId", 19);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
removeObjVar (player, "conversation.biogenic_assistant.branchId");
npcSpeak (player, message);
npcEndConversation (player);
}
return SCRIPT_CONTINUE;
}
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Not much. This is a genetic research facility, but I'm an engineering assistant. I don't know much about that stuff. But it would seem that when that earthquake hit, it somehow released the creatures from their cages.' were false.");
return SCRIPT_CONTINUE;
}
//-- [BRANCH NOTE]
//-- NPC: Not much. This is a genetic research facility, but I'm an engineering assistant. I don't know much about that stuff. But it would seem that when that earthquake hit, it somehow released the creatures from their cages.
//-- [RESPONSE NOTE]
//-- PLAYER: I see. Well, good-bye.
if (branchId == 17 && response == "s_81b17df9")
{
//-- [NOTE]
if (biogenic_assistant_condition__defaultCondition (player, self))
{
//-- NPC: Yes, I need to try and get back to the reactor room myself.
string_id message = new string_id (c_stringFile, "s_4b2c2992");
removeObjVar (player, "conversation.biogenic_assistant.branchId");
npcSpeak (player, message);
npcEndConversation (player);
return SCRIPT_CONTINUE;
}
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Not much. This is a genetic research facility, but I'm an engineering assistant. I don't know much about that stuff. But it would seem that when that earthquake hit, it somehow released the creatures from their cages.' were false.");
return SCRIPT_CONTINUE;
}
//-- [BRANCH NOTE]
//-- NPC: I have the computer codes that the head engineer needs to get the reactor back online. I was on my way back to the engineering room, but I can't possibly make it there with all these creatures loose.
//-- [RESPONSE NOTE]
//-- PLAYER: The engineer told me to come get the codes from you.
if (branchId == 19 && response == "s_89ca9e86")
{
//-- [NOTE]
if (biogenic_assistant_condition__defaultCondition (player, self))
{
biogenic_assistant_action_give_datapad (player, self);
//-- NPC: Really? Would you take them back to him? They are on this datapad. Thank you so much.
string_id message = new string_id (c_stringFile, "s_b856cb2e");
removeObjVar (player, "conversation.biogenic_assistant.branchId");
npcSpeak (player, message);
npcEndConversation (player);
return SCRIPT_CONTINUE;
}
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I have the computer codes that the head engineer needs to get the reactor back online. I was on my way back to the engineering room, but I can't possibly make it there with all these creatures loose.' were false.");
return SCRIPT_CONTINUE;
}
//-- [BRANCH NOTE]
//-- NPC: I have the computer codes that the head engineer needs to get the reactor back online. I was on my way back to the engineering room, but I can't possibly make it there with all these creatures loose.
//-- [RESPONSE NOTE]
//-- PLAYER: I'll take the codes to the engineer for you.
if (branchId == 19 && response == "s_761ee240")
{
//-- [NOTE]
if (biogenic_assistant_condition_get_construct_tracker_3 (player, self))
{
biogenic_assistant_action_give_datapad (player, self);
//-- NPC: Really? That would be fantastic! Here, the codes are on this datapad. You should be able to find him near the reactor. Thank you so much for your help.
string_id message = new string_id (c_stringFile, "s_49ef3c27");
removeObjVar (player, "conversation.biogenic_assistant.branchId");
npcSpeak (player, message);
npcEndConversation (player);
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (biogenic_assistant_condition__defaultCondition (player, self))
{
biogenic_assistant_action_give_datapad_3 (player, self);
//-- NPC: Really? That would be fantastic! Here, the codes are on this datapad. You should be able to find him near the reactor. If the door to the engineering room is locked, the code 51892 will get you in. Thank you so much for your help.
string_id message = new string_id (c_stringFile, "s_c251c56d");
removeObjVar (player, "conversation.biogenic_assistant.branchId");
npcSpeak (player, message);
npcEndConversation (player);
return SCRIPT_CONTINUE;
}
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I have the computer codes that the head engineer needs to get the reactor back online. I was on my way back to the engineering room, but I can't possibly make it there with all these creatures loose.' were false.");
return SCRIPT_CONTINUE;
}
//-- [BRANCH NOTE]
//-- NPC: I have the computer codes that the head engineer needs to get the reactor back online. I was on my way back to the engineering room, but I can't possibly make it there with all these creatures loose.
//-- [RESPONSE NOTE]
//-- PLAYER: I'm sure you'll get there somehow. Good-bye.
if (branchId == 19 && response == "s_72510ac3")
{
//-- [NOTE]
if (biogenic_assistant_condition__defaultCondition (player, self))
{
//-- NPC: Yes, I hope so. Good-bye.
string_id message = new string_id (c_stringFile, "s_bbbd5d0f");
removeObjVar (player, "conversation.biogenic_assistant.branchId");
npcSpeak (player, message);
npcEndConversation (player);
return SCRIPT_CONTINUE;
}
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I have the computer codes that the head engineer needs to get the reactor back online. I was on my way back to the engineering room, but I can't possibly make it there with all these creatures loose.' were false.");
return SCRIPT_CONTINUE;
}
chat.chat (self, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
removeObjVar (player, "conversation.biogenic_assistant.branchId");
return SCRIPT_CONTINUE;
}
// ======================================================================