mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
1011 lines
32 KiB
Plaintext
1011 lines
32 KiB
Plaintext
// ======================================================================
|
|
//
|
|
// biogenic_construction.script
|
|
// Copyright 2003, Sony Online Entertainment
|
|
// All Rights Reserved.
|
|
//
|
|
// DO NOT EDIT THIS AUTO-GENERATED FILE. PLEASE USE THE CONVERATION EDITOR!
|
|
//
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Library Includes
|
|
// ======================================================================
|
|
|
|
include library.ai_lib;
|
|
include library.chat;
|
|
|
|
// ======================================================================
|
|
// Script Constants
|
|
// ======================================================================
|
|
|
|
string c_stringFile = "conversation/biogenic_construction";
|
|
|
|
// ======================================================================
|
|
// Script Conditions
|
|
// ======================================================================
|
|
|
|
boolean biogenic_construction_condition__defaultCondition (obj_id player, obj_id npc)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean biogenic_construction_condition_get_tracker_1 (obj_id player, obj_id npc)
|
|
{
|
|
int tracker = getIntObjVar(player, "biogenic.construction_convo");
|
|
|
|
if(tracker == 1) {
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean biogenic_construction_condition_get_tracker_2 (obj_id player, obj_id npc)
|
|
{
|
|
int tracker = getIntObjVar(player, "biogenic.construction_convo");
|
|
|
|
if(tracker >= 2) {
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean biogenic_construction_condition_get_ass_tracker_3 (obj_id player, obj_id npc)
|
|
{
|
|
int tracker = getIntObjVar(player, "biogenic.assistant_convo");
|
|
|
|
if(tracker == 3) {
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean biogenic_construction_condition_get_multi_tracker (obj_id player, obj_id npc)
|
|
{
|
|
int ass_tracker = getIntObjVar(player, "biogenic.assistant_convo");
|
|
int tracker = getIntObjVar(player, "biogenic.construction_convo");
|
|
|
|
if(tracker > 0 && ass_tracker == 3) {
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Actions
|
|
// ======================================================================
|
|
|
|
void biogenic_construction_action__defaultAction (obj_id player, obj_id npc)
|
|
{
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void biogenic_construction_action_face_to (obj_id player, obj_id npc)
|
|
{
|
|
faceToBehavior(npc, player);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void biogenic_construction_action_give_drill (obj_id player, obj_id npc)
|
|
{
|
|
//setObjVar(player, "biogenic.construction_convo", 1);
|
|
|
|
//sendSystemMessageTestingOnly(player, "Give sonic drill here");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void biogenic_construction_action_set_tracker_2 (obj_id player, obj_id npc)
|
|
{
|
|
faceToBehavior(npc, player);
|
|
|
|
setObjVar(player, "biogenic.construction_convo", 2);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void biogenic_construction_action_set_tracker_3 (obj_id player, obj_id npc)
|
|
{
|
|
faceToBehavior(npc, player);
|
|
|
|
setObjVar(player, "biogenic.construction_convo", 3);
|
|
}
|
|
|
|
// ======================================================================
|
|
// User Script Triggers
|
|
// ======================================================================
|
|
|
|
trigger OnInitialize ()
|
|
{
|
|
if ((!isMob (self)) || (isPlayer (self)))
|
|
detachScript(self, "npc.conversation.biogenic_construction");
|
|
|
|
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_construction");
|
|
|
|
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_construction_condition_get_multi_tracker (player, self))
|
|
{
|
|
biogenic_construction_action_face_to (player, self);
|
|
|
|
//-- NPC: Thanks again for killing those spiders. I'm getting out of here as soon as the way is clear.
|
|
string_id message = new string_id (c_stringFile, "s_575de8f1");
|
|
chat.chat (self, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition_get_tracker_2 (player, self))
|
|
{
|
|
biogenic_construction_action_face_to (player, self);
|
|
|
|
//-- NPC: Thanks again for killing those spiders. If you need to get to the engineering area, the code 51892 will get you in.
|
|
string_id message = new string_id (c_stringFile, "s_dc2d689c");
|
|
chat.chat (self, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition_get_tracker_1 (player, self))
|
|
{
|
|
biogenic_construction_action_set_tracker_3 (player, self);
|
|
|
|
//-- NPC: If you have a chance, you might want to go check out the main engineering area. It looks like the power core might be damaged or offline. If the door is locked, the code 51892 will get you in.
|
|
string_id message = new string_id (c_stringFile, "s_23041b9a");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: OK. I will try to check it out.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I will if I have time.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_construction_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_82e89d37");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_add15db6");
|
|
|
|
setObjVar (player, "conversation.biogenic_construction.branchId", 3);
|
|
|
|
npcStartConversation (player, self, "biogenic_construction", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (self, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
biogenic_construction_action_face_to (player, self);
|
|
|
|
//-- NPC: Thank goodness you got here in time! That spider was going to kill me. I thought for sure I was a goner. How can I ever repay you?
|
|
string_id message = new string_id (c_stringFile, "s_1df6adfc");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: There's no need. I'm glad you're alright.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm sure you'll think of some way.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: What were you doing in here anyway?
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: No problem. Good-bye.
|
|
boolean hasResponse3 = false;
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_e4b06f76");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_134aacec");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_355bc632");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_457410bd");
|
|
|
|
setObjVar (player, "conversation.biogenic_construction.branchId", 6);
|
|
|
|
npcStartConversation (player, self, "biogenic_construction", 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_construction")
|
|
return SCRIPT_CONTINUE;
|
|
|
|
int branchId = getIntObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: If you have a chance, you might want to go check out the main engineering area. It looks like the power core might be damaged or offline. If the door is locked, the code 51892 will get you in.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. I will try to check it out.
|
|
if (branchId == 3 && response == "s_82e89d37")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Alright. Thanks again for killing those spiders.
|
|
string_id message = new string_id (c_stringFile, "s_d8420164");
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'If you have a chance, you might want to go check out the main engineering area. It looks like the power core might be damaged or offline. If the door is locked, the code 51892 will get you in.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: If you have a chance, you might want to go check out the main engineering area. It looks like the power core might be damaged or offline. If the door is locked, the code 51892 will get you in.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I will if I have time.
|
|
if (branchId == 3 && response == "s_add15db6")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I understand. Thanks again for killing those spiders.
|
|
string_id message = new string_id (c_stringFile, "s_2453dda8");
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'If you have a chance, you might want to go check out the main engineering area. It looks like the power core might be damaged or offline. If the door is locked, the code 51892 will get you in.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Thank goodness you got here in time! That spider was going to kill me. I thought for sure I was a goner. How can I ever repay you?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: There's no need. I'm glad you're alright.
|
|
if (branchId == 6 && response == "s_e4b06f76")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
biogenic_construction_action_give_drill (player, self);
|
|
|
|
//-- NPC: Well I'm only interested in getting out of here now. I'll do that as soon as I get my wits back.
|
|
string_id message = new string_id (c_stringFile, "s_fc129e0e");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thank you very much.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. Good-bye then.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_construction_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_4136c2df");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5fe23666");
|
|
|
|
setObjVar (player, "conversation.biogenic_construction.branchId", 7);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Thank goodness you got here in time! That spider was going to kill me. I thought for sure I was a goner. How can I ever repay you?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Thank goodness you got here in time! That spider was going to kill me. I thought for sure I was a goner. How can I ever repay you?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm sure you'll think of some way.
|
|
if (branchId == 6 && response == "s_134aacec")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
biogenic_construction_action_give_drill (player, self);
|
|
|
|
//-- NPC: Actually, I don't have much to give you. Perhaps I'll think of something later.
|
|
string_id message = new string_id (c_stringFile, "s_eb771a95");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thank you very much.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. Good-bye then.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_construction_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_4136c2df");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5fe23666");
|
|
|
|
setObjVar (player, "conversation.biogenic_construction.branchId", 7);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Thank goodness you got here in time! That spider was going to kill me. I thought for sure I was a goner. How can I ever repay you?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Thank goodness you got here in time! That spider was going to kill me. I thought for sure I was a goner. How can I ever repay you?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What were you doing in here anyway?
|
|
if (branchId == 6 && response == "s_355bc632")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
biogenic_construction_action_give_drill (player, self);
|
|
|
|
//-- NPC: I was working on excavating this passage when the earthquake hit. Not long after, the spiders attacked. Now I just want to get out of here.
|
|
string_id message = new string_id (c_stringFile, "s_75118515");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thank you very much.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. Good-bye then.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_construction_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_4136c2df");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5fe23666");
|
|
|
|
setObjVar (player, "conversation.biogenic_construction.branchId", 7);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Thank goodness you got here in time! That spider was going to kill me. I thought for sure I was a goner. How can I ever repay you?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Thank goodness you got here in time! That spider was going to kill me. I thought for sure I was a goner. How can I ever repay you?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No problem. Good-bye.
|
|
if (branchId == 6 && response == "s_457410bd")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
biogenic_construction_action_give_drill (player, self);
|
|
|
|
//-- NPC: Yea, I'm getting out of here too.
|
|
string_id message = new string_id (c_stringFile, "s_c30b797d");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thank you very much.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: OK. Good-bye then.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_construction_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_4136c2df");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5fe23666");
|
|
|
|
setObjVar (player, "conversation.biogenic_construction.branchId", 7);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Thank goodness you got here in time! That spider was going to kill me. I thought for sure I was a goner. How can I ever repay you?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Well I'm only interested in getting out of here now. I'll do that as soon as I get my wits back.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thank you very much.
|
|
if (branchId == 7 && response == "s_4136c2df")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition_get_ass_tracker_3 (player, self))
|
|
{
|
|
biogenic_construction_action_set_tracker_2 (player, self);
|
|
|
|
//-- NPC: No, thank you. Good-bye, friend!
|
|
string_id message = new string_id (c_stringFile, "s_de8e8527");
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
biogenic_construction_action_set_tracker_3 (player, self);
|
|
|
|
//-- NPC: No, thank you. If you have a chance, you might want to go check out the main engineering area. It looks like the power core might be damaged or offline. If the door is locked, the code 51892 will get you in. Good luck!
|
|
string_id message = new string_id (c_stringFile, "s_1d440dae");
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Well I'm only interested in getting out of here now. I'll do that as soon as I get my wits back.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Well I'm only interested in getting out of here now. I'll do that as soon as I get my wits back.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. Good-bye then.
|
|
if (branchId == 7 && response == "s_5fe23666")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition_get_ass_tracker_3 (player, self))
|
|
{
|
|
biogenic_construction_action_set_tracker_2 (player, self);
|
|
|
|
//-- NPC: Good-bye, and good luck!
|
|
string_id message = new string_id (c_stringFile, "s_c1d58076");
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
biogenic_construction_action_set_tracker_3 (player, self);
|
|
|
|
//-- NPC: If you have a chance, you might want to go check out the main engineering area. It looks like the power core might be damaged or offline. If the door is locked, the code 51892 will get you in. Good-bye, and good luck!
|
|
string_id message = new string_id (c_stringFile, "s_67f9970");
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Well I'm only interested in getting out of here now. I'll do that as soon as I get my wits back.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Actually, I don't have much to give you. Perhaps I'll think of something later.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thank you very much.
|
|
if (branchId == 12 && response == "s_4136c2df")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition_get_ass_tracker_3 (player, self))
|
|
{
|
|
biogenic_construction_action_set_tracker_2 (player, self);
|
|
|
|
//-- NPC: No, thank you. Good-bye, friend!
|
|
string_id message = new string_id (c_stringFile, "s_de8e8527");
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
biogenic_construction_action_set_tracker_3 (player, self);
|
|
|
|
//-- NPC: No, thank you. If you have a chance, you might want to go check out the main engineering area. It looks like the power core might be damaged or offline. If the door is locked, the code 51892 will get you in. Good luck!
|
|
string_id message = new string_id (c_stringFile, "s_1d440dae");
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Actually, I don't have much to give you. Perhaps I'll think of something later.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Actually, I don't have much to give you. Perhaps I'll think of something later.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. Good-bye then.
|
|
if (branchId == 12 && response == "s_5fe23666")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition_get_ass_tracker_3 (player, self))
|
|
{
|
|
biogenic_construction_action_set_tracker_2 (player, self);
|
|
|
|
//-- NPC: Good-bye, and good luck!
|
|
string_id message = new string_id (c_stringFile, "s_c1d58076");
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
biogenic_construction_action_set_tracker_3 (player, self);
|
|
|
|
//-- NPC: If you have a chance, you might want to go check out the main engineering area. It looks like the power core might be damaged or offline. If the door is locked, the code 51892 will get you in. Good-bye, and good luck!
|
|
string_id message = new string_id (c_stringFile, "s_67f9970");
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Actually, I don't have much to give you. Perhaps I'll think of something later.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I was working on excavating this passage when the earthquake hit. Not long after, the spiders attacked. Now I just want to get out of here.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thank you very much.
|
|
if (branchId == 13 && response == "s_4136c2df")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition_get_ass_tracker_3 (player, self))
|
|
{
|
|
biogenic_construction_action_set_tracker_2 (player, self);
|
|
|
|
//-- NPC: No, thank you. Good-bye, friend!
|
|
string_id message = new string_id (c_stringFile, "s_de8e8527");
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
biogenic_construction_action_set_tracker_3 (player, self);
|
|
|
|
//-- NPC: No, thank you. If you have a chance, you might want to go check out the main engineering area. It looks like the power core might be damaged or offline. If the door is locked, the code 51892 will get you in. Good luck!
|
|
string_id message = new string_id (c_stringFile, "s_1d440dae");
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I was working on excavating this passage when the earthquake hit. Not long after, the spiders attacked. Now I just want to get out of here. ' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I was working on excavating this passage when the earthquake hit. Not long after, the spiders attacked. Now I just want to get out of here.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. Good-bye then.
|
|
if (branchId == 13 && response == "s_5fe23666")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition_get_ass_tracker_3 (player, self))
|
|
{
|
|
biogenic_construction_action_set_tracker_2 (player, self);
|
|
|
|
//-- NPC: Good-bye, and good luck!
|
|
string_id message = new string_id (c_stringFile, "s_c1d58076");
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
biogenic_construction_action_set_tracker_3 (player, self);
|
|
|
|
//-- NPC: If you have a chance, you might want to go check out the main engineering area. It looks like the power core might be damaged or offline. If the door is locked, the code 51892 will get you in. Good-bye, and good luck!
|
|
string_id message = new string_id (c_stringFile, "s_67f9970");
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I was working on excavating this passage when the earthquake hit. Not long after, the spiders attacked. Now I just want to get out of here. ' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yea, I'm getting out of here too.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thank you very much.
|
|
if (branchId == 14 && response == "s_4136c2df")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition_get_ass_tracker_3 (player, self))
|
|
{
|
|
biogenic_construction_action_set_tracker_2 (player, self);
|
|
|
|
//-- NPC: No, thank you. Good-bye, friend!
|
|
string_id message = new string_id (c_stringFile, "s_de8e8527");
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
biogenic_construction_action_set_tracker_3 (player, self);
|
|
|
|
//-- NPC: No, thank you. If you have a chance, you might want to go check out the main engineering area. It looks like the power core might be damaged or offline. If the door is locked, the code 51892 will get you in. Good luck!
|
|
string_id message = new string_id (c_stringFile, "s_1d440dae");
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yea, I'm getting out of here too. ' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yea, I'm getting out of here too.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: OK. Good-bye then.
|
|
if (branchId == 14 && response == "s_5fe23666")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition_get_ass_tracker_3 (player, self))
|
|
{
|
|
biogenic_construction_action_set_tracker_2 (player, self);
|
|
|
|
//-- NPC: Good-bye, and good luck!
|
|
string_id message = new string_id (c_stringFile, "s_c1d58076");
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_construction_condition__defaultCondition (player, self))
|
|
{
|
|
biogenic_construction_action_set_tracker_3 (player, self);
|
|
|
|
//-- NPC: If you have a chance, you might want to go check out the main engineering area. It looks like the power core might be damaged or offline. If the door is locked, the code 51892 will get you in. Good-bye, and good luck!
|
|
string_id message = new string_id (c_stringFile, "s_67f9970");
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yea, I'm getting out of here too. ' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
|
|
|
|
removeObjVar (player, "conversation.biogenic_construction.branchId");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
|