mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-01 01:15:59 -04:00
736 lines
24 KiB
Plaintext
736 lines
24 KiB
Plaintext
// ======================================================================
|
|
//
|
|
// u13_lieutenant_tarc.script
|
|
// Copyright 2004, Sony Online Entertainment
|
|
// All Rights Reserved.
|
|
//
|
|
// Created with SwgConversationEditor 1.37 - DO NOT EDIT THIS AUTO-GENERATED FILE!
|
|
//
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Library Includes
|
|
// ======================================================================
|
|
|
|
include library.ai_lib;
|
|
include library.chat;
|
|
include library.conversation;
|
|
include library.groundquests;
|
|
include library.utils;
|
|
|
|
// ======================================================================
|
|
// Script Constants
|
|
// ======================================================================
|
|
|
|
string c_stringFile = "conversation/u13_lieutenant_tarc";
|
|
|
|
// ======================================================================
|
|
// Script Conditions
|
|
// ======================================================================
|
|
|
|
boolean u13_lieutenant_tarc_condition__defaultCondition (obj_id player, obj_id npc)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean u13_lieutenant_tarc_condition_active_ponda_pointer (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isQuestActiveOrComplete(player, "u13_ponda_pointer");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean u13_lieutenant_tarc_condition_active_ponda_01 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isQuestActive(player, "u13_ponda_01");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean u13_lieutenant_tarc_condition_returning_ponda_01 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isTaskActive(player, "u13_ponda_01", "u13_ponda_01_03") ||
|
|
groundquests.hasCompletedQuest(player, "u13_ponda_01");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean u13_lieutenant_tarc_condition_active_ponda_02 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isQuestActive(player, "u13_ponda_02");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean u13_lieutenant_tarc_condition_returning_ponda_02 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isTaskActive(player, "u13_ponda_02", "u13_ponda_02_06") ||
|
|
groundquests.hasCompletedQuest(player, "u13_ponda_02");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean u13_lieutenant_tarc_condition_active_ponda_03 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isQuestActive(player, "u13_ponda_03");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean u13_lieutenant_tarc_condition_returning_ponda_03 (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isTaskActive(player, "u13_ponda_03", "u13_ponda_03_04") ||
|
|
groundquests.hasCompletedQuest(player, "u13_ponda_03");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean u13_lieutenant_tarc_condition_alreadyDoneMeatlumpQuests (obj_id player, obj_id npc)
|
|
{
|
|
return groundquests.isQuestActiveOrComplete(player, "mtp_hideout_access_high_01") ||
|
|
groundquests.isQuestActiveOrComplete(player, "mtp_hideout_access_01");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean u13_lieutenant_tarc_condition_needsMeatlumpPointer (obj_id player, obj_id npc)
|
|
{
|
|
return !groundquests.isQuestActiveOrComplete(player, "mtp_hideout_access_high_01") &&
|
|
!groundquests.isQuestActiveOrComplete(player, "mtp_hideout_access_01") &&
|
|
!groundquests.isQuestActiveOrComplete(player, "corellia_coronet_meatlump_act1_pointer") &&
|
|
!groundquests.isQuestActiveOrComplete(player, "corellia_coronet_meatlump_act2_pointer");
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Actions
|
|
// ======================================================================
|
|
|
|
void u13_lieutenant_tarc_action_signal_ponda_pointer (obj_id player, obj_id npc)
|
|
{
|
|
groundquests.sendSignal(player, "u13_ponda_pointer");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void u13_lieutenant_tarc_action_grant_ponda_01 (obj_id player, obj_id npc)
|
|
{
|
|
groundquests.requestGrantQuest(player, "u13_ponda_01");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void u13_lieutenant_tarc_action_signal_ponda_01_03 (obj_id player, obj_id npc)
|
|
{
|
|
groundquests.sendSignal(player, "u13_ponda_01_03");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void u13_lieutenant_tarc_action_grant_ponda_02 (obj_id player, obj_id npc)
|
|
{
|
|
groundquests.requestGrantQuest(player, "u13_ponda_02");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void u13_lieutenant_tarc_action_signal_ponda_02_06 (obj_id player, obj_id npc)
|
|
{
|
|
groundquests.sendSignal(player, "u13_ponda_02_06");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void u13_lieutenant_tarc_action_grant_ponda_03 (obj_id player, obj_id npc)
|
|
{
|
|
groundquests.requestGrantQuest(player, "u13_ponda_03");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void u13_lieutenant_tarc_action_signal_ponda_03_04 (obj_id player, obj_id npc)
|
|
{
|
|
groundquests.sendSignal(player, "u13_ponda_03_04");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void u13_lieutenant_tarc_action_meatlumps_pointer (obj_id player, obj_id npc)
|
|
{
|
|
if ( !groundquests.isQuestActiveOrComplete(player, "corellia_coronet_meatlump_act1_begin") )
|
|
{
|
|
groundquests.requestGrantQuest(player, "corellia_coronet_meatlump_act1_pointer");
|
|
}
|
|
else
|
|
{
|
|
groundquests.requestGrantQuest(player, "corellia_coronet_meatlump_act2_pointer");
|
|
}
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script %TO Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Script %DI Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Script %DF Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// handleBranch<n> Functions
|
|
// ======================================================================
|
|
|
|
int u13_lieutenant_tarc_handleBranch1 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Ponda Baba escaped, but word is that he has left the planet. I will be releasing his name and a holographic image to all security forces in the Naboo System. He will not be able to return to Rori or anywhere else in this part of the galaxy any time soon. For now, I will consider the case closed.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I suppose that will have to be enough.
|
|
if (response == "s_17")
|
|
{
|
|
//-- [NOTE]
|
|
if (u13_lieutenant_tarc_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Unfortunately, sometimes that's the way it is. You did good work, though. I'm proud to have worked with you.
|
|
string_id message = new string_id (c_stringFile, "s_18");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: You wouldn't happen to have any more work, would you?
|
|
boolean hasResponse0 = false;
|
|
if (u13_lieutenant_tarc_condition_needsMeatlumpPointer (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_19");
|
|
|
|
utils.setScriptVar (player, "conversation.u13_lieutenant_tarc.branchId", 2);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.u13_lieutenant_tarc.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int u13_lieutenant_tarc_handleBranch2 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Unfortunately, sometimes that's the way it is. You did good work, though. I'm proud to have worked with you.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You wouldn't happen to have any more work, would you?
|
|
if (response == "s_19")
|
|
{
|
|
//-- [NOTE]
|
|
if (u13_lieutenant_tarc_condition_alreadyDoneMeatlumpQuests (player, npc))
|
|
{
|
|
//-- NPC: I have nothing more right now...sorry.
|
|
string_id message = new string_id (c_stringFile, "s_22");
|
|
utils.removeScriptVar (player, "conversation.u13_lieutenant_tarc.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (u13_lieutenant_tarc_condition__defaultCondition (player, npc))
|
|
{
|
|
u13_lieutenant_tarc_action_meatlumps_pointer (player, npc);
|
|
|
|
//-- NPC: I don't but you might try heading back to Corellia. Word is that some reporter is investigating the Meatlumps and is looking for someone to do her heavy lifting.
|
|
string_id message = new string_id (c_stringFile, "s_21");
|
|
utils.removeScriptVar (player, "conversation.u13_lieutenant_tarc.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int u13_lieutenant_tarc_handleBranch6 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: So Ponda never showed. Only some Gundark thugs. Apparently, Ponda hired those Gundark thugs as protection and was spooked when you defeated them.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: So what now?
|
|
if (response == "s_15")
|
|
{
|
|
//-- [NOTE]
|
|
if (u13_lieutenant_tarc_condition__defaultCondition (player, npc))
|
|
{
|
|
u13_lieutenant_tarc_action_grant_ponda_03 (player, npc);
|
|
|
|
//-- NPC: We know that the Gundark gangs are working with Ponda Baba, so we'll turn our attention to them. They will tell us what we want to know one way or another.
|
|
string_id message = new string_id (c_stringFile, "s_20");
|
|
utils.removeScriptVar (player, "conversation.u13_lieutenant_tarc.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int u13_lieutenant_tarc_handleBranch9 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: This Ponda Baba must be our guy. According to RSF records, he's a small-time thug who usually works out of the Tatooine system. Looks like he lost an arm in an altercation in Mos Eisley which is probably why he's after cybernetics. Your next move will be to track him down.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: How do I do that?
|
|
if (response == "s_28")
|
|
{
|
|
//-- [NOTE]
|
|
if (u13_lieutenant_tarc_condition__defaultCondition (player, npc))
|
|
{
|
|
u13_lieutenant_tarc_action_grant_ponda_02 (player, npc);
|
|
|
|
//-- NPC: A Neo-Cobral gang operating near Narmle is in tune with most of the underworld action happening in the area. Go convince them to reveal anything they might know about how to find Ponda Baba.
|
|
string_id message = new string_id (c_stringFile, "s_30");
|
|
utils.removeScriptVar (player, "conversation.u13_lieutenant_tarc.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int u13_lieutenant_tarc_handleBranch12 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: So, instead of offering direct assistance, the Narmle Militia sends you. Typical. So be it. This is the situation: some small cybernetic labs in the area have recently been the victims of several break-ins. Nothing physical has been taken, but the lab techs fear that their research has been compromised.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: How do I fit into this?
|
|
if (response == "s_36")
|
|
{
|
|
//-- [NOTE]
|
|
if (u13_lieutenant_tarc_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You are my investigation team. Which means it's you and me on this. I need you to help me track down whoever is doing this and apprehend them. You'll start by investigating one of the cybernetic labs and looking for anything that might help identify the perpetrator.
|
|
string_id message = new string_id (c_stringFile, "s_38");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll get started right away.
|
|
boolean hasResponse0 = false;
|
|
if (u13_lieutenant_tarc_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_41");
|
|
|
|
utils.setScriptVar (player, "conversation.u13_lieutenant_tarc.branchId", 13);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.u13_lieutenant_tarc.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int u13_lieutenant_tarc_handleBranch13 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You are my investigation team. Which means it's you and me on this. I need you to help me track down whoever is doing this and apprehend them. You'll start by investigating one of the cybernetic labs and looking for anything that might help identify the perpetrator.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'll get started right away.
|
|
if (response == "s_41")
|
|
{
|
|
//-- [NOTE]
|
|
if (u13_lieutenant_tarc_condition__defaultCondition (player, npc))
|
|
{
|
|
u13_lieutenant_tarc_action_grant_ponda_01 (player, npc);
|
|
|
|
//-- NPC: I'll upload the location of the most recent break-in to you.
|
|
string_id message = new string_id (c_stringFile, "s_42");
|
|
utils.removeScriptVar (player, "conversation.u13_lieutenant_tarc.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
// ======================================================================
|
|
// User Script Triggers
|
|
// ======================================================================
|
|
|
|
trigger OnInitialize ()
|
|
{
|
|
if ((!isTangible (self)) || (isPlayer (self)))
|
|
detachScript(self, "conversation.u13_lieutenant_tarc");
|
|
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnAttach ()
|
|
{
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnObjectMenuRequest (obj_id player, menu_info menuInfo)
|
|
{
|
|
int menu = menuInfo.addRootMenu (menu_info_types.CONVERSE_START, null);
|
|
menu_info_data menuInfoData = menuInfo.getMenuItemById (menu);
|
|
menuInfoData.setServerNotify (false);
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnIncapacitated (obj_id killer)
|
|
{
|
|
clearCondition (self, CONDITION_CONVERSABLE);
|
|
detachScript (self, "conversation.u13_lieutenant_tarc");
|
|
|
|
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 (u13_lieutenant_tarc_condition_returning_ponda_03 (player, npc))
|
|
{
|
|
u13_lieutenant_tarc_action_signal_ponda_03_04 (player, npc);
|
|
|
|
//-- NPC: Ponda Baba escaped, but word is that he has left the planet. I will be releasing his name and a holographic image to all security forces in the Naboo System. He will not be able to return to Rori or anywhere else in this part of the galaxy any time soon. For now, I will consider the case closed.
|
|
string_id message = new string_id (c_stringFile, "s_4");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I suppose that will have to be enough.
|
|
boolean hasResponse0 = false;
|
|
if (u13_lieutenant_tarc_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_17");
|
|
|
|
utils.setScriptVar (player, "conversation.u13_lieutenant_tarc.branchId", 1);
|
|
|
|
npcStartConversation (player, npc, "u13_lieutenant_tarc", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (u13_lieutenant_tarc_condition_active_ponda_03 (player, npc))
|
|
{
|
|
//-- NPC: We're closing in on Ponda Baba...find him.
|
|
string_id message = new string_id (c_stringFile, "s_11");
|
|
chat.chat (npc, player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (u13_lieutenant_tarc_condition_returning_ponda_02 (player, npc))
|
|
{
|
|
u13_lieutenant_tarc_action_signal_ponda_02_06 (player, npc);
|
|
|
|
//-- NPC: So Ponda never showed. Only some Gundark thugs. Apparently, Ponda hired those Gundark thugs as protection and was spooked when you defeated them.
|
|
string_id message = new string_id (c_stringFile, "s_13");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: So what now?
|
|
boolean hasResponse0 = false;
|
|
if (u13_lieutenant_tarc_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_15");
|
|
|
|
utils.setScriptVar (player, "conversation.u13_lieutenant_tarc.branchId", 6);
|
|
|
|
npcStartConversation (player, npc, "u13_lieutenant_tarc", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (u13_lieutenant_tarc_condition_active_ponda_02 (player, npc))
|
|
{
|
|
//-- NPC: Someone out there in the criminal undertow knows where we can find Ponda Baba. We just need to convince them to share that information with us.
|
|
string_id message = new string_id (c_stringFile, "s_24");
|
|
chat.chat (npc, player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (u13_lieutenant_tarc_condition_returning_ponda_01 (player, npc))
|
|
{
|
|
u13_lieutenant_tarc_action_signal_ponda_01_03 (player, npc);
|
|
|
|
//-- NPC: This Ponda Baba must be our guy. According to RSF records, he's a small-time thug who usually works out of the Tatooine system. Looks like he lost an arm in an altercation in Mos Eisley which is probably why he's after cybernetics. Your next move will be to track him down.
|
|
string_id message = new string_id (c_stringFile, "s_26");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: How do I do that?
|
|
boolean hasResponse0 = false;
|
|
if (u13_lieutenant_tarc_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_28");
|
|
|
|
utils.setScriptVar (player, "conversation.u13_lieutenant_tarc.branchId", 9);
|
|
|
|
npcStartConversation (player, npc, "u13_lieutenant_tarc", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (u13_lieutenant_tarc_condition_active_ponda_01 (player, npc))
|
|
{
|
|
//-- NPC: Investigate one of the cybernetic labs and look for anything that might help identify the perpetrator. I've uploaded the location of the most recent break-in to you're datapad.
|
|
string_id message = new string_id (c_stringFile, "s_32");
|
|
chat.chat (npc, player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (u13_lieutenant_tarc_condition_active_ponda_pointer (player, npc))
|
|
{
|
|
u13_lieutenant_tarc_action_signal_ponda_pointer (player, npc);
|
|
|
|
//-- NPC: So, instead of offering direct assistance, the Narmle Militia sends you. Typical. So be it. This is the situation: some small cybernetic labs in the area have recently been the victims of several break-ins. Nothing physical has been taken, but the lab techs fear that their research has been compromised.
|
|
string_id message = new string_id (c_stringFile, "s_34");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: How do I fit into this?
|
|
boolean hasResponse0 = false;
|
|
if (u13_lieutenant_tarc_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_36");
|
|
|
|
utils.setScriptVar (player, "conversation.u13_lieutenant_tarc.branchId", 12);
|
|
|
|
npcStartConversation (player, npc, "u13_lieutenant_tarc", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (u13_lieutenant_tarc_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: At first I didn't mind being stationed on Rori, but the Narmle Militia really does not appreciate the RSF being active in these parts. Not until something goes wrong that they don't want to deal with.
|
|
string_id message = new string_id (c_stringFile, "s_44");
|
|
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 != "u13_lieutenant_tarc")
|
|
return SCRIPT_CONTINUE;
|
|
|
|
obj_id npc = self;
|
|
|
|
int branchId = utils.getIntScriptVar (player, "conversation.u13_lieutenant_tarc.branchId");
|
|
|
|
if (branchId == 1 && u13_lieutenant_tarc_handleBranch1 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 2 && u13_lieutenant_tarc_handleBranch2 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 6 && u13_lieutenant_tarc_handleBranch6 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 9 && u13_lieutenant_tarc_handleBranch9 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 12 && u13_lieutenant_tarc_handleBranch12 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 13 && u13_lieutenant_tarc_handleBranch13 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
chat.chat (npc, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
|
|
|
|
utils.removeScriptVar (player, "conversation.u13_lieutenant_tarc.branchId");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
|