mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-01 01:15:59 -04:00
8900 lines
250 KiB
Plaintext
8900 lines
250 KiB
Plaintext
// ======================================================================
|
|
//
|
|
// naboo_privateer_tier3.script
|
|
//
|
|
//
|
|
//
|
|
// Created with SwgConversationEditor 1.35 - DO NOT EDIT THIS AUTO-GENERATED FILE!
|
|
//
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Library Includes
|
|
// ======================================================================
|
|
|
|
include library.ai_lib;
|
|
include library.chat;
|
|
include library.skill;
|
|
include library.space_flags;
|
|
include library.space_quest;
|
|
include library.utils;
|
|
|
|
// ======================================================================
|
|
// Script Constants
|
|
// ======================================================================
|
|
|
|
string c_stringFile = "conversation/naboo_privateer_tier3";
|
|
|
|
// ======================================================================
|
|
// Script Conditions
|
|
// ======================================================================
|
|
|
|
boolean naboo_privateer_tier3_condition__defaultCondition (obj_id player, obj_id npc)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean naboo_privateer_tier3_condition_isCorrectFaction (obj_id player, obj_id npc)
|
|
{
|
|
//if this is an Imperial trainer, make sure the player is an Imperial Pilot
|
|
//if it is Rebel, then make sure the player is a rebel pilot, etc.
|
|
//return FALSE if this NPC should NOT talk to this player!
|
|
|
|
return ( hasSkill( player, "pilot_neutral_novice" ) );
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean naboo_privateer_tier3_condition_isReadyForTier3 (obj_id player, obj_id npc)
|
|
{
|
|
/*
|
|
//if you're missing any of these skills, then you aren't ready for tier3
|
|
if (!hasSkill( player, "pilot_neutral_starships_02") )
|
|
return false;
|
|
else if (!hasSkill( player, "pilot_neutral_procedures_02") )
|
|
return false;
|
|
else if (!hasSkill( player, "pilot_neutral_weapons_02") )
|
|
return false;
|
|
else if (!hasSkill( player, "pilot_neutral_droid_02" ) )
|
|
return false;
|
|
else
|
|
return true;
|
|
*/
|
|
|
|
return space_flags.hasCompletedTierTwo(player);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean naboo_privateer_tier3_condition_isOnQuest (obj_id player, obj_id npc)
|
|
{
|
|
return ( space_quest.hasQuest( player ) );
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean naboo_privateer_tier3_condition_failedQuestOne (obj_id player, obj_id npc)
|
|
{
|
|
if ( space_quest.hasFailedQuestRecursive( player, "recovery", "naboo_privateer_tier3_1a" ) ||
|
|
space_quest.hasAbortedQuestRecursive( player, "recovery", "naboo_privateer_tier3_1a" ) )
|
|
{
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean naboo_privateer_tier3_condition_failedQuestTwo (obj_id player, obj_id npc)
|
|
{
|
|
if ( space_quest.hasFailedQuestRecursive( player, "escort", "naboo_privateer_tier3_2a" ) ||
|
|
space_quest.hasAbortedQuestRecursive( player, "escort", "naboo_privateer_tier3_2a" ) )
|
|
{
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean naboo_privateer_tier3_condition_failedQuestThree (obj_id player, obj_id npc)
|
|
{
|
|
if ( space_quest.hasFailedQuest( player, "inspect", "naboo_privateer_tier3_3a" ) ||
|
|
space_quest.hasAbortedQuest( player, "inspect", "naboo_privateer_tier3_3a" ) )
|
|
return true;
|
|
|
|
if ( space_quest.hasFailedQuest( player, "delivery_no_pickup", "naboo_privateer_tier3_3b" ) ||
|
|
space_quest.hasAbortedQuest( player, "delivery_no_pickup", "naboo_privateer_tier3_3b" ) )
|
|
return true;
|
|
|
|
if ( space_quest.hasFailedQuest( player, "survival", "naboo_privateer_tier3_3c" ) ||
|
|
space_quest.hasAbortedQuest( player, "survival", "naboo_privateer_tier3_3c" ) )
|
|
return true;
|
|
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean naboo_privateer_tier3_condition_failedQuestFour (obj_id player, obj_id npc)
|
|
{
|
|
if ( space_quest.hasFailedQuestRecursive( player, "assassinate", "naboo_privateer_tier3_4a" ) ||
|
|
space_quest.hasAbortedQuestRecursive( player, "assassinate", "naboo_privateer_tier3_4a" ) )
|
|
{
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean naboo_privateer_tier3_condition_onMyTrack (obj_id player, obj_id npc)
|
|
{
|
|
return space_flags.isSpaceTrack(player, space_flags.PRIVATEER_NABOO);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean naboo_privateer_tier3_condition_isPilot (obj_id player, obj_id npc)
|
|
{
|
|
return space_flags.hasAnyPilotSkill(player);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean naboo_privateer_tier3_condition_collectingQuestOneReward (obj_id player, obj_id npc)
|
|
{
|
|
//if the player has WON this quest, but has not been rewarded for it
|
|
//then return TRUE so the NPC can grant the reward!
|
|
if ( !space_quest.hasCompletedQuestRecursive( player, "recovery", "naboo_privateer_tier3_1a"))
|
|
return false;//you haven't completed it, so you can't be here for the reward
|
|
|
|
//for quest One, we say they have not been rewarded yet if they have no tier3 skills:
|
|
if ( hasSkill( player, "pilot_neutral_starships_03") ||
|
|
hasSkill( player, "pilot_neutral_procedures_03") ||
|
|
hasSkill( player, "pilot_neutral_weapons_03") ||
|
|
hasSkill( player, "pilot_neutral_droid_03" ) )
|
|
{
|
|
return false;//you have a skill so you must have already been rewarded
|
|
}
|
|
return true;//you must be here for the reward
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean naboo_privateer_tier3_condition_collectingQuestTwoReward (obj_id player, obj_id npc)
|
|
{
|
|
//if the player has WON this quest, but has not been rewarded for it
|
|
//then return TRUE so the NPC can grant the reward!
|
|
if ( !space_quest.hasCompletedQuestRecursive( player, "escort", "naboo_privateer_tier3_2a"))
|
|
return false;//haven't done it, so must not be here for the reward
|
|
|
|
//we assume if you have two skills then you have already been rewarded for this quest
|
|
int skillCount = 0;
|
|
if ( hasSkill( player, "pilot_neutral_starships_03") )
|
|
skillCount++;
|
|
|
|
if ( hasSkill( player, "pilot_neutral_procedures_03") )
|
|
skillCount++;
|
|
|
|
if ( hasSkill( player, "pilot_neutral_weapons_03") )
|
|
skillCount++;
|
|
|
|
if ( hasSkill( player, "pilot_neutral_droid_03" ) )
|
|
skillCount++;
|
|
|
|
if ( skillCount < 2 )
|
|
return true;//return true because you have less than 2 skills, must not have been rewarded for this
|
|
else
|
|
return false;//you must have already been rewarded for this
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean naboo_privateer_tier3_condition_collectingQuestThreeReward (obj_id player, obj_id npc)
|
|
{
|
|
//if the player has WON this quest, but has not been rewarded for it
|
|
//then return TRUE so the NPC can grant the reward!
|
|
if ( !space_quest.hasCompletedQuest( player, "survival", "naboo_privateer_tier3_3c"))
|
|
return false;//haven't completed this yet, so must not be here for the reward
|
|
|
|
//we assume if you have three skills then you have already been rewarded for this quest
|
|
int skillCount = 0;
|
|
if ( hasSkill( player, "pilot_neutral_starships_03") )
|
|
skillCount++;
|
|
|
|
if ( hasSkill( player, "pilot_neutral_procedures_03") )
|
|
skillCount++;
|
|
|
|
if ( hasSkill( player, "pilot_neutral_weapons_03") )
|
|
skillCount++;
|
|
|
|
if ( hasSkill( player, "pilot_neutral_droid_03" ) )
|
|
skillCount++;
|
|
|
|
if ( skillCount < 3 )
|
|
return true;//return true because you have less than 3 skills, must not have been rewarded for this
|
|
else
|
|
return false;//you must have already been rewarded for this
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean naboo_privateer_tier3_condition_collectingQuestFourReward (obj_id player, obj_id npc)
|
|
{
|
|
//if the player has WON this quest, but has not been rewarded for it
|
|
//then return TRUE so the NPC can grant the reward!
|
|
if ( !space_quest.hasCompletedQuestRecursive( player, "assassinate", "naboo_privateer_tier3_4a"))
|
|
return false;//haven't completed this yet, so must not be here for the reward
|
|
|
|
//if you do NOT have ALL FOUR skills then you have NOT been rewarded for this quest
|
|
if (!hasSkill( player, "pilot_neutral_starships_03") )
|
|
return true;//guess you need a reward
|
|
|
|
if (!hasSkill( player, "pilot_neutral_procedures_03") )
|
|
return true;//guess you need a reward
|
|
|
|
if (!hasSkill( player, "pilot_neutral_weapons_03") )
|
|
return true;//guess you need a reward
|
|
|
|
if (!hasSkill( player, "pilot_neutral_droid_03" ) )
|
|
return true;//guess you need a reward
|
|
|
|
return false;//you must have already been rewarded for this, because you have all the skills
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean naboo_privateer_tier3_condition_hasCompletedQuestOne (obj_id player, obj_id npc)
|
|
{
|
|
//return FALSE if the player has not yet done this
|
|
//quest, so the npc will assign it to the player
|
|
return ( space_quest.hasCompletedQuestRecursive( player, "recovery", "naboo_privateer_tier3_1a"));
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean naboo_privateer_tier3_condition_hasCompletedQuestTwo (obj_id player, obj_id npc)
|
|
{
|
|
//return FALSE if the player has not yet done this
|
|
//quest, so the npc will assign it to the player
|
|
return (space_quest.hasCompletedQuestRecursive( player, "escort", "naboo_privateer_tier3_2a"));
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean naboo_privateer_tier3_condition_hasCompletedQuestThree (obj_id player, obj_id npc)
|
|
{
|
|
//return FALSE if the player has not yet done this
|
|
//quest, so the npc will assign it to the player
|
|
return (space_quest.hasCompletedQuest( player, "survival", "naboo_privateer_tier3_3c"));
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean naboo_privateer_tier3_condition_hasCompletedQuestFour (obj_id player, obj_id npc)
|
|
{
|
|
//return FALSE if the player has not yet done this
|
|
//quest, so the npc will assign it to the player
|
|
return ( space_quest.hasCompletedQuestRecursive( player, "assassinate", "naboo_privateer_tier3_4a"));
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean naboo_privateer_tier3_condition_hasStarship03Skill (obj_id player, obj_id npc)
|
|
{
|
|
return ( hasSkill( player, "pilot_neutral_starships_03" ) );
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean naboo_privateer_tier3_condition_hasProcedure03Skill (obj_id player, obj_id npc)
|
|
{
|
|
return ( hasSkill( player, "pilot_neutral_procedures_03" ) );
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean naboo_privateer_tier3_condition_hasWeapon03Skill (obj_id player, obj_id npc)
|
|
{
|
|
return ( hasSkill( player, "pilot_neutral_weapons_03" ) );
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean naboo_privateer_tier3_condition_hasDroid03Skill (obj_id player, obj_id npc)
|
|
{
|
|
return ( hasSkill( player, "pilot_neutral_droid_03" ) );
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Actions
|
|
// ======================================================================
|
|
|
|
void naboo_privateer_tier3_action_grantQuestOne (obj_id player, obj_id npc)
|
|
{
|
|
space_quest.grantQuest( player, "recovery", "naboo_privateer_tier3_1a");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void naboo_privateer_tier3_action_grantQuestTwo (obj_id player, obj_id npc)
|
|
{
|
|
space_quest.grantQuest( player, "escort", "naboo_privateer_tier3_2a");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void naboo_privateer_tier3_action_grantQuestThree (obj_id player, obj_id npc)
|
|
{
|
|
space_quest.grantQuest( player, "inspect", "naboo_privateer_tier3_3a");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void naboo_privateer_tier3_action_grantQuestFour (obj_id player, obj_id npc)
|
|
{
|
|
space_quest.grantQuest( player, "assassinate", "naboo_privateer_tier3_4a");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void naboo_privateer_tier3_action_rewardForQuestOne (obj_id player, obj_id npc)
|
|
{
|
|
if (!space_quest.hasReceivedReward( player, "recovery", "naboo_privateer_tier3_1a") )
|
|
space_quest.giveReward( player, "recovery", "naboo_privateer_tier3_1a", 25000, "object/tangible/ship/components/reactor/rct_mission_reward_neutral_subpro_military.iff");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void naboo_privateer_tier3_action_rewardForQuestTwo (obj_id player, obj_id npc)
|
|
{
|
|
if (!space_quest.hasReceivedReward( player, "escort", "naboo_privateer_tier3_2a") )
|
|
space_quest.giveReward( player, "escort", "naboo_privateer_tier3_2a", 25000, "object/tangible/ship/components/engine/eng_mission_reward_neutral_mandal_inferno.iff");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void naboo_privateer_tier3_action_rewardForQuestThree (obj_id player, obj_id npc)
|
|
{
|
|
if (!space_quest.hasReceivedReward( player, "inspect", "naboo_privateer_tier3_3a") )
|
|
space_quest.giveReward( player, "inspect", "naboo_privateer_tier3_3a", 25000, "object/tangible/ship/components/weapon_capacitor/cap_mission_reward_neutral_sorosuub_v1.iff");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void naboo_privateer_tier3_action_rewardForQuestFour (obj_id player, obj_id npc)
|
|
{
|
|
if (!space_quest.hasReceivedReward( player, "assassinate", "naboo_privateer_tier3_4a") )
|
|
space_quest.giveReward( player, "assassinate", "naboo_privateer_tier3_4a", 25000, "object/tangible/ship/components/armor/arm_mission_reward_neutral_kse_handcrafted.iff");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void naboo_privateer_tier3_action_grantProceduresSkill (obj_id player, obj_id npc)
|
|
{
|
|
skill.noisyGrantSkill( player, "pilot_neutral_procedures_03");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void naboo_privateer_tier3_action_grantDroidSkill (obj_id player, obj_id npc)
|
|
{
|
|
skill.noisyGrantSkill( player, "pilot_neutral_droid_03" );
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void naboo_privateer_tier3_action_grantWeaponSkill (obj_id player, obj_id npc)
|
|
{
|
|
skill.noisyGrantSkill( player, "pilot_neutral_weapons_03");
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void naboo_privateer_tier3_action_grantStarshipSkill (obj_id player, obj_id npc)
|
|
{
|
|
skill.noisyGrantSkill( player, "pilot_neutral_starships_03");
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script %TO Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Script %DI Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Script %DF Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// handleBranch<n> Functions
|
|
// ======================================================================
|
|
|
|
int naboo_privateer_tier3_handleBranch6 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE] You failed quest one. You must start over.
|
|
//-- NPC: That Rodian is giving you a run for your money.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Just for now; I'm not done yet.
|
|
if (response == "s_5a236288")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "tap_foot");
|
|
|
|
naboo_privateer_tier3_action_grantQuestOne (player, npc);
|
|
|
|
//-- NPC: Hope this won't take too long. I've got dinner waiting.
|
|
string_id message = new string_id (c_stringFile, "s_2bcd2d13");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Looks that way.
|
|
if (response == "s_c551ea96")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
naboo_privateer_tier3_action_grantQuestOne (player, npc);
|
|
|
|
//-- NPC: Don't let me down, ok? You'd hate to see a grown man cry.
|
|
string_id message = new string_id (c_stringFile, "s_ff7bebda");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch9 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE] You failed quest two. You must start over.
|
|
//-- NPC: Welcome back. I'm so happy you're here.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No you're not. I haven't finished my job.
|
|
if (response == "s_800745bc")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "tap_head");
|
|
|
|
naboo_privateer_tier3_action_grantQuestTwo (player, npc);
|
|
|
|
//-- NPC: Oh yeah, that's right, I forgot. How about you GO DO THAT ALREADY.
|
|
string_id message = new string_id (c_stringFile, "s_327eb2d6");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You are?
|
|
if (response == "s_19425c2f")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "point_away");
|
|
|
|
naboo_privateer_tier3_action_grantQuestTwo (player, npc);
|
|
|
|
//-- NPC: NO! I only like pilots that finish their missions! Get back out there!
|
|
string_id message = new string_id (c_stringFile, "s_145dcab");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch12 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE] You failed quest three. You must start over.
|
|
//-- NPC: This Royal Security Forces assignment isn't so easy after all, is it?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Nothing I can't handle.
|
|
if (response == "s_b144d69b")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "dismiss");
|
|
|
|
naboo_privateer_tier3_action_grantQuestThree (player, npc);
|
|
|
|
//-- NPC: Prove it. Finish your job.
|
|
string_id message = new string_id (c_stringFile, "s_2852c031");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'll take care of it.
|
|
if (response == "s_a5fe9928")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "wave_on_dismissing");
|
|
|
|
naboo_privateer_tier3_action_grantQuestThree (player, npc);
|
|
|
|
//-- NPC: See that you do.
|
|
string_id message = new string_id (c_stringFile, "s_b679efe");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch15 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE] You failed quest four. You must start over.
|
|
//-- NPC: You're starting to get a bad reputation.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You telling stories about me?
|
|
if (response == "s_83b47a80")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shrug_shoulders");
|
|
|
|
naboo_privateer_tier3_action_grantQuestFour (player, npc);
|
|
|
|
//-- NPC: I don't need to! People know those hunters are using you for target practice. Get back out there - and try fighting back this time.
|
|
string_id message = new string_id (c_stringFile, "s_57d34626");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Why?
|
|
if (response == "s_841d27db")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "point_away");
|
|
|
|
naboo_privateer_tier3_action_grantQuestFour (player, npc);
|
|
|
|
//-- NPC: Because those lowlifes are using you for target practice. Get back up there and take those guys out!
|
|
string_id message = new string_id (c_stringFile, "s_ff5d0ba8");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch18 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE] You are here to collect your reward for quest one, so here it is!
|
|
//-- NPC: OK! That's one less Rodian messing up the place. Nice work. Time to get back to your training.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What kind of training am I going to get?
|
|
if (response == "s_368")
|
|
{
|
|
//-- [NOTE]
|
|
if (!naboo_privateer_tier3_condition_hasStarship03Skill (player, npc))
|
|
{
|
|
naboo_privateer_tier3_action_grantStarshipSkill (player, npc);
|
|
|
|
//-- NPC: I've got a pilot ready to give you training in special warships. Afterwards, you come see me for your next mission.
|
|
string_id message = new string_id (c_stringFile, "s_369");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!naboo_privateer_tier3_condition_hasWeapon03Skill (player, npc))
|
|
{
|
|
naboo_privateer_tier3_action_grantWeaponSkill (player, npc);
|
|
|
|
//-- NPC: I've got a pilot ready to give you training in advanced starship components. Afterwards, you come see me for your next mission.
|
|
string_id message = new string_id (c_stringFile, "s_370");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!naboo_privateer_tier3_condition_hasProcedure03Skill (player, npc))
|
|
{
|
|
naboo_privateer_tier3_action_grantProceduresSkill (player, npc);
|
|
|
|
//-- NPC: I've got a pilot ready to give you training in advanced pilot techniques. Afterwards, you come see me for your next mission.
|
|
string_id message = new string_id (c_stringFile, "s_371");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
naboo_privateer_tier3_action_grantDroidSkill (player, npc);
|
|
|
|
//-- NPC: I've got a pilot ready to give you training in system balance programming. Afterwards, you come see me for your next mission.
|
|
string_id message = new string_id (c_stringFile, "s_372");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch23 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE] You are here to collect your reward for quest two, so here it is!
|
|
//-- NPC: Ready for more training?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What kind of training am I going to get?
|
|
if (response == "s_368")
|
|
{
|
|
//-- [NOTE]
|
|
if (!naboo_privateer_tier3_condition_hasStarship03Skill (player, npc))
|
|
{
|
|
naboo_privateer_tier3_action_grantStarshipSkill (player, npc);
|
|
|
|
//-- NPC: I've got a pilot ready to give you training in special warships. Afterwards, you come see me for your next mission.
|
|
string_id message = new string_id (c_stringFile, "s_369");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!naboo_privateer_tier3_condition_hasWeapon03Skill (player, npc))
|
|
{
|
|
naboo_privateer_tier3_action_grantWeaponSkill (player, npc);
|
|
|
|
//-- NPC: I've got a pilot ready to give you training in advanced starship components. Afterwards, you come see me for your next mission.
|
|
string_id message = new string_id (c_stringFile, "s_370");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!naboo_privateer_tier3_condition_hasProcedure03Skill (player, npc))
|
|
{
|
|
naboo_privateer_tier3_action_grantProceduresSkill (player, npc);
|
|
|
|
//-- NPC: I've got a pilot ready to give you training in advanced pilot techniques. Afterwards, you come see me for your next mission.
|
|
string_id message = new string_id (c_stringFile, "s_371");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
naboo_privateer_tier3_action_grantDroidSkill (player, npc);
|
|
|
|
//-- NPC: I've got a pilot ready to give you training in system balance programming. Afterwards, you come see me for your next mission.
|
|
string_id message = new string_id (c_stringFile, "s_372");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch24 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE] You are here to collect your reward for quest three, so here it is!
|
|
//-- NPC: You're keeping the galaxy safe. The least I can do is offer more training.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What kind of training am I going to get?
|
|
if (response == "s_368")
|
|
{
|
|
//-- [NOTE]
|
|
if (!naboo_privateer_tier3_condition_hasStarship03Skill (player, npc))
|
|
{
|
|
naboo_privateer_tier3_action_grantStarshipSkill (player, npc);
|
|
|
|
//-- NPC: I've got a pilot ready to give you training in special warships. Afterwards, you come see me for your next mission.
|
|
string_id message = new string_id (c_stringFile, "s_369");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!naboo_privateer_tier3_condition_hasWeapon03Skill (player, npc))
|
|
{
|
|
naboo_privateer_tier3_action_grantWeaponSkill (player, npc);
|
|
|
|
//-- NPC: I've got a pilot ready to give you training in advanced starship components. Afterwards, you come see me for your next mission.
|
|
string_id message = new string_id (c_stringFile, "s_370");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!naboo_privateer_tier3_condition_hasProcedure03Skill (player, npc))
|
|
{
|
|
naboo_privateer_tier3_action_grantProceduresSkill (player, npc);
|
|
|
|
//-- NPC: I've got a pilot ready to give you training in advanced pilot techniques. Afterwards, you come see me for your next mission.
|
|
string_id message = new string_id (c_stringFile, "s_371");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
naboo_privateer_tier3_action_grantDroidSkill (player, npc);
|
|
|
|
//-- NPC: I've got a pilot ready to give you training in system balance programming. Afterwards, you come see me for your next mission.
|
|
string_id message = new string_id (c_stringFile, "s_372");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch25 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE] You are here to collect your reward for quest four, so here it is!
|
|
//-- NPC: I salute you, %TU. You're one heck of a pilot. How about a little more training?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What kind of training am I going to get?
|
|
if (response == "s_368")
|
|
{
|
|
//-- [NOTE]
|
|
if (!naboo_privateer_tier3_condition_hasStarship03Skill (player, npc))
|
|
{
|
|
naboo_privateer_tier3_action_grantStarshipSkill (player, npc);
|
|
|
|
//-- NPC: I've got a pilot ready to give you training in special warships. Afterwards, you come see me for your next mission.
|
|
string_id message = new string_id (c_stringFile, "s_369");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!naboo_privateer_tier3_condition_hasWeapon03Skill (player, npc))
|
|
{
|
|
naboo_privateer_tier3_action_grantWeaponSkill (player, npc);
|
|
|
|
//-- NPC: I've got a pilot ready to give you training in advanced starship components. Afterwards, you come see me for your next mission.
|
|
string_id message = new string_id (c_stringFile, "s_370");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!naboo_privateer_tier3_condition_hasProcedure03Skill (player, npc))
|
|
{
|
|
naboo_privateer_tier3_action_grantProceduresSkill (player, npc);
|
|
|
|
//-- NPC: I've got a pilot ready to give you training in advanced pilot techniques. Afterwards, you come see me for your next mission.
|
|
string_id message = new string_id (c_stringFile, "s_371");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
naboo_privateer_tier3_action_grantDroidSkill (player, npc);
|
|
|
|
//-- NPC: I've got a pilot ready to give you training in system balance programming. Afterwards, you come see me for your next mission.
|
|
string_id message = new string_id (c_stringFile, "s_372");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch26 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: %TU. You're the new one.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Looks that way.
|
|
if (response == "s_42")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Need anything? A drink, something to eat?
|
|
string_id message = new string_id (c_stringFile, "s_4ad40b9b");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Sure, I could go for a little something.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Ate before I got here.
|
|
boolean hasResponse1 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_fa9d37d5");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ee08441");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 27);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: [says nothing]
|
|
if (response == "s_89ae25d4")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "rub_chin_thoughtful");
|
|
|
|
//-- NPC: Hm. You're not a talker. I don't like that.
|
|
string_id message = new string_id (c_stringFile, "s_e85927c2");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Have you got a mission for me?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_a6f174c");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 63);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch27 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Need anything? A drink, something to eat?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Sure, I could go for a little something.
|
|
if (response == "s_fa9d37d5")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shrug_shoulders");
|
|
|
|
//-- NPC: That's nice. Should've eaten before you got here. You need to work on your long-term thinking skills, start planning ahead.
|
|
string_id message = new string_id (c_stringFile, "s_8e574ecb");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thanks for the tip.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_76703443");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 28);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Ate before I got here.
|
|
if (response == "s_ee08441")
|
|
{
|
|
doAnimationAction (player, "shake_head_no");
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "nod_head_once");
|
|
|
|
//-- NPC: OK. Then let's get started. How do you feel about Rodians?
|
|
string_id message = new string_id (c_stringFile, "s_b7137723");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Love 'em.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Hate 'em.
|
|
boolean hasResponse1 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_589399fa");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_af5ccac");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 44);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch28 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: That's nice. Should've eaten before you got here. You need to work on your long-term thinking skills, start planning ahead.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thanks for the tip.
|
|
if (response == "s_76703443")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "laugh");
|
|
|
|
//-- NPC: I love you new guys. So easy to wind up.
|
|
string_id message = new string_id (c_stringFile, "s_c65cf2da");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Where have you been all my life?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_38e0a377");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 29);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch29 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I love you new guys. So easy to wind up.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where have you been all my life?
|
|
if (response == "s_38e0a377")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Under the bed, with all the other monsters. Now listen up. I've got a job for you.
|
|
string_id message = new string_id (c_stringFile, "s_49772db3");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Now we're talking.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_707ab918");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 30);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch30 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Under the bed, with all the other monsters. Now listen up. I've got a job for you.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Now we're talking.
|
|
if (response == "s_707ab918")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "nod_head_once");
|
|
|
|
//-- NPC: This is a good one; wish I could do it myself. You're going after a Rodian assassin.
|
|
string_id message = new string_id (c_stringFile, "s_333a7093");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Who has he killed?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_1839ef54");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 31);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch31 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: This is a good one; wish I could do it myself. You're going after a Rodian assassin.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Who has he killed?
|
|
if (response == "s_1839ef54")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shrug_shoulders");
|
|
|
|
//-- NPC: A couple of ambassadors, for starters. But that's not why we're interested in him. Word is, his next target is the Queen.
|
|
string_id message = new string_id (c_stringFile, "s_96924c42");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: [low whistle]
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: You sure a Rodian is responsible?
|
|
boolean hasResponse1 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6aba4373");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_41a8901f");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 32);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch32 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: A couple of ambassadors, for starters. But that's not why we're interested in him. Word is, his next target is the Queen.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: [low whistle]
|
|
if (response == "s_6aba4373")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "nod_head_once");
|
|
|
|
//-- NPC: You got it. And we want to keep that a little-known fact, if you get my drift.
|
|
string_id message = new string_id (c_stringFile, "s_21bb034b");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Loud and clear. Where to?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_7478d95d");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 33);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You sure a Rodian is responsible?
|
|
if (response == "s_41a8901f")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "nod_head_once");
|
|
|
|
//-- NPC: Pretty sure. My first guess was Gungan. Those guys are the scum of the earth. But all signs point to the Rodian.
|
|
string_id message = new string_id (c_stringFile, "s_19ab407");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What's wrong with Gungans?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I hate Gungans.
|
|
boolean hasResponse1 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_efb3dd1e");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_9d51a937");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 37);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch33 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You got it. And we want to keep that a little-known fact, if you get my drift.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Loud and clear. Where to?
|
|
if (response == "s_7478d95d")
|
|
{
|
|
//-- [NOTE] *** - sector the player needs to enter (not in mission design doc)
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "wave_finger_warning");
|
|
|
|
//-- NPC: I'm not done.
|
|
string_id message = new string_id (c_stringFile, "s_d84b1644");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: There's more?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_acc52186");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 34);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch34 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE] *** - sector the player needs to enter (not in mission design doc)
|
|
//-- NPC: I'm not done.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: There's more?
|
|
if (response == "s_acc52186")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: We want him alive.
|
|
string_id message = new string_id (c_stringFile, "s_9851897f");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: That makes it a little more complicated.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_ebe811bd");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 35);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch35 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: We want him alive.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: That makes it a little more complicated.
|
|
if (response == "s_ebe811bd")
|
|
{
|
|
doAnimationAction (player, "rub_chin_thoughtful");
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
naboo_privateer_tier3_action_grantQuestOne (player, npc);
|
|
|
|
//-- NPC: All you need to do is stop his ship. The boys in the lab are putting together a little surprise for him, but it's up to you to deliver the package. Get over to the Dantooine System; we'll update you from there.
|
|
string_id message = new string_id (c_stringFile, "s_e1e07205");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch37 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Pretty sure. My first guess was Gungan. Those guys are the scum of the earth. But all signs point to the Rodian.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What's wrong with Gungans?
|
|
if (response == "s_efb3dd1e")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "smack_self");
|
|
|
|
//-- NPC: If you have to ask that, then you haven't spent much time on Naboo. Check your history books, buddy. They'd kill us, 'soon as look at us.
|
|
string_id message = new string_id (c_stringFile, "s_ec96bcc4");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Sounds like you'd do the same thing.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_eb9af09b");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 38);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I hate Gungans.
|
|
if (response == "s_9d51a937")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "nod_head_once");
|
|
|
|
doAnimationAction (player, "pound_fist_palm");
|
|
|
|
//-- NPC: You and me both, buddy. I've been here way too long, and seen way too much Gungan scum. Can't stomach the sight of them. Filth, all of them.
|
|
string_id message = new string_id (c_stringFile, "s_a8a872ba");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: But for now, it's all about the Rodians.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_f2eec235");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 41);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch38 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: If you have to ask that, then you haven't spent much time on Naboo. Check your history books, buddy. They'd kill us, 'soon as look at us.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Sounds like you'd do the same thing.
|
|
if (response == "s_eb9af09b")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "point_accusingly");
|
|
|
|
//-- NPC: Hey! I'M the one that makes the observations around here. Now listen. I want you to put that Rodian out of commission. And here's the kicker - we want him alive.
|
|
string_id message = new string_id (c_stringFile, "s_3271f1e9");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Hm. That makes it a little more complicated.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_b8c1a96f");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 39);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch39 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hey! I'M the one that makes the observations around here. Now listen. I want you to put that Rodian out of commission. And here's the kicker - we want him alive.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Hm. That makes it a little more complicated.
|
|
if (response == "s_b8c1a96f")
|
|
{
|
|
doAnimationAction (player, "rub_chin_thoughtful");
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
naboo_privateer_tier3_action_grantQuestOne (player, npc);
|
|
|
|
//-- NPC: All you need to do is stop his ship. The boys in the lab are putting together a little surprise for him, but it's up to you to deliver the package. Get over to the Dantooine System; we'll update you from there.
|
|
string_id message = new string_id (c_stringFile, "s_70");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch41 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You and me both, buddy. I've been here way too long, and seen way too much Gungan scum. Can't stomach the sight of them. Filth, all of them.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: But for now, it's all about the Rodians.
|
|
if (response == "s_f2eec235")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "nod_head_once");
|
|
|
|
//-- NPC: Right. And here's the kicker - we want him alive.
|
|
string_id message = new string_id (c_stringFile, "s_fcd5590a");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Hm. That makes it a little more complicated.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_76");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 42);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch42 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Right. And here's the kicker - we want him alive.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Hm. That makes it a little more complicated.
|
|
if (response == "s_76")
|
|
{
|
|
doAnimationAction (player, "rub_chin_thoughtful");
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
naboo_privateer_tier3_action_grantQuestOne (player, npc);
|
|
|
|
//-- NPC: All you need to do is stop his ship. The boys in the lab are putting together a little surprise for him, but it's up to you to deliver the package. Get over to the Dantooine System; we'll update you from there.
|
|
string_id message = new string_id (c_stringFile, "s_78");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch44 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: OK. Then let's get started. How do you feel about Rodians?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Love 'em.
|
|
if (response == "s_589399fa")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shake_head_disgust");
|
|
|
|
//-- NPC: Hope you're being sarcastic. You're looking for a Rodian assassin.
|
|
string_id message = new string_id (c_stringFile, "s_4bdc789d");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: An assassin? Who's he killed?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_51ca1520");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 45);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Hate 'em.
|
|
if (response == "s_af5ccac")
|
|
{
|
|
doAnimationAction (player, "pound_fist_palm");
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "nod_head_once");
|
|
|
|
//-- NPC: Good. You're going after a Rodian assassin.
|
|
string_id message = new string_id (c_stringFile, "s_55a8fc90");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Who's he killed?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_be88ef61");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 57);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch45 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hope you're being sarcastic. You're looking for a Rodian assassin.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: An assassin? Who's he killed?
|
|
if (response == "s_51ca1520")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shrug_shoulders");
|
|
|
|
//-- NPC: A couple of ambassadors, for starters. But that's not why we're interested in him. Word is, his next target is the Queen.
|
|
string_id message = new string_id (c_stringFile, "s_85");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: [low whistle]
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Why?
|
|
boolean hasResponse1 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_87");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_102");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 46);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch46 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: A couple of ambassadors, for starters. But that's not why we're interested in him. Word is, his next target is the Queen.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: [low whistle]
|
|
if (response == "s_87")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "nod_head_once");
|
|
|
|
//-- NPC: You got it. And we want to keep that a little-known fact, if you get my drift.
|
|
string_id message = new string_id (c_stringFile, "s_89");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Loud and clear. Where to?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_91");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 47);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Why?
|
|
if (response == "s_102")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "tap_head");
|
|
|
|
//-- NPC: The Royal Family is always a high-profile target, buddy. Believe me. The Queen's got more bounties on her head than you've got toes on your feet.
|
|
string_id message = new string_id (c_stringFile, "s_d5861157");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Well I don't have THAT many -
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_1aa056a8");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 51);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch47 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You got it. And we want to keep that a little-known fact, if you get my drift.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Loud and clear. Where to?
|
|
if (response == "s_91")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "wave_finger_warning");
|
|
|
|
//-- NPC: Hold it. I'm not done.
|
|
string_id message = new string_id (c_stringFile, "s_be0b0711");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: There's more?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_94");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 48);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch48 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hold it. I'm not done.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: There's more?
|
|
if (response == "s_94")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: We want him alive.
|
|
string_id message = new string_id (c_stringFile, "s_96");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Hm. That makes it a little more complicated.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_98");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 49);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch49 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: We want him alive.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Hm. That makes it a little more complicated.
|
|
if (response == "s_98")
|
|
{
|
|
doAnimationAction (player, "rub_chin_thoughtful");
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
naboo_privateer_tier3_action_grantQuestOne (player, npc);
|
|
|
|
//-- NPC: All you need to do is stop his ship. The boys in the lab are putting together a little surprise for him, but it's up to you to deliver the package. Get over to the Dantooine System; we'll update you from there.
|
|
string_id message = new string_id (c_stringFile, "s_100");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch51 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The Royal Family is always a high-profile target, buddy. Believe me. The Queen's got more bounties on her head than you've got toes on your feet.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Well I don't have THAT many -
|
|
if (response == "s_1aa056a8")
|
|
{
|
|
doAnimationAction (player, "rub_chin_thoughtful");
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "wave_on_dismissing");
|
|
|
|
//-- NPC: Zip it. Look, genius, you're in the Royal Security Forces now. You know what that means, right? You make sure the ROYAL family is SECURE.
|
|
string_id message = new string_id (c_stringFile, "s_7009d8d");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thanks for clearing that up.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_84c9860e");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 52);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch52 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Zip it. Look, genius, you're in the Royal Security Forces now. You know what that means, right? You make sure the ROYAL family is SECURE.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thanks for clearing that up.
|
|
if (response == "s_84c9860e")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "smack_self");
|
|
|
|
//-- NPC: Why do I always get the remedial cases?
|
|
string_id message = new string_id (c_stringFile, "s_36507434");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I could ask the same thing. Where to?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_984c29f6");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 53);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch53 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Why do I always get the remedial cases?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I could ask the same thing. Where to?
|
|
if (response == "s_984c29f6")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "wave_finger_warning");
|
|
|
|
//-- NPC: Hold it. I'm not done.
|
|
string_id message = new string_id (c_stringFile, "s_110");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: There's more?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_112");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 54);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch54 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hold it. I'm not done.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: There's more?
|
|
if (response == "s_112")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: We want him alive.
|
|
string_id message = new string_id (c_stringFile, "s_114");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Hm. That makes it a little more complicated.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_116");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 55);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch55 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: We want him alive.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Hm. That makes it a little more complicated.
|
|
if (response == "s_116")
|
|
{
|
|
doAnimationAction (player, "rub_chin_thoughtful");
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
naboo_privateer_tier3_action_grantQuestOne (player, npc);
|
|
|
|
//-- NPC: All you need to do is stop his ship. The boys in the lab are putting together a little surprise for him, but it's up to you to deliver the package. Get over to the Dantooine System; we'll update you from there.
|
|
string_id message = new string_id (c_stringFile, "s_118");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch57 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Good. You're going after a Rodian assassin.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Who's he killed?
|
|
if (response == "s_be88ef61")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shrug_shoulders");
|
|
|
|
//-- NPC: A couple of ambassadors, for starters. But that's not why we're interested in him. Word is, his next target is the Queen.
|
|
string_id message = new string_id (c_stringFile, "s_123");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: [low whistle]
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_125");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 58);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch58 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: A couple of ambassadors, for starters. But that's not why we're interested in him. Word is, his next target is the Queen.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: [low whistle]
|
|
if (response == "s_125")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "nod_head_once");
|
|
|
|
//-- NPC: You got it. And we want to keep that a little-known fact, if you get my drift.
|
|
string_id message = new string_id (c_stringFile, "s_127");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Loud and clear. Where to?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_129");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 59);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch59 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You got it. And we want to keep that a little-known fact, if you get my drift.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Loud and clear. Where to?
|
|
if (response == "s_129")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "wave_finger_warning");
|
|
|
|
//-- NPC: Hold it. I'm not done.
|
|
string_id message = new string_id (c_stringFile, "s_131");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: There's more?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_133");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 60);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch60 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hold it. I'm not done.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: There's more?
|
|
if (response == "s_133")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: We want him alive.
|
|
string_id message = new string_id (c_stringFile, "s_135");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: That makes it a little more complicated.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_137");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 61);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch61 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: We want him alive.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: That makes it a little more complicated.
|
|
if (response == "s_137")
|
|
{
|
|
doAnimationAction (player, "rub_chin_thoughtful");
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
naboo_privateer_tier3_action_grantQuestOne (player, npc);
|
|
|
|
//-- NPC: All you need to do is stop his ship. The boys in the lab are putting together a little surprise for him, but it's up to you to deliver the package. Get over to the Dantooine System; we'll update you from there.
|
|
string_id message = new string_id (c_stringFile, "s_139");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch63 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hm. You're not a talker. I don't like that.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Have you got a mission for me?
|
|
if (response == "s_a6f174c")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "nod_head_once");
|
|
|
|
//-- NPC: Boy, do I. This is a good one. I'd like to do this myself.
|
|
string_id message = new string_id (c_stringFile, "s_ab3f1614");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'm listening.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_df607c49");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 64);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch64 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Boy, do I. This is a good one. I'd like to do this myself.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm listening.
|
|
if (response == "s_df607c49")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
//-- NPC: You're going after a Rodian. This one's an assassin. He's been taking potshots at the Rodian Political Corps for a while now.
|
|
string_id message = new string_id (c_stringFile, "s_1d2b4360");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Someone's always shooting at politicians.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: What's his M.O.?
|
|
boolean hasResponse1 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_24ee6c29");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2df26676");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 65);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch65 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You're going after a Rodian. This one's an assassin. He's been taking potshots at the Rodian Political Corps for a while now.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Someone's always shooting at politicians.
|
|
if (response == "s_24ee6c29")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "check_wrist_device");
|
|
|
|
//-- NPC: Can't say I blame 'em. Got no use for them myself. But this Rodian is a real pain in the keister. We think he's killed two ambassadors already.
|
|
string_id message = new string_id (c_stringFile, "s_bf22a8c8");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Two out of two million ain't bad.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_5772fc88");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 66);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What's his M.O.?
|
|
if (response == "s_2df26676")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "rub_belly");
|
|
|
|
//-- NPC: Slow and low. He stalks his prey for weeks, months, before he makes a move. He's got a hell of a kill rate.
|
|
string_id message = new string_id (c_stringFile, "s_d6b3034c");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Any visuals?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_1ebb58e3");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 72);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch66 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Can't say I blame 'em. Got no use for them myself. But this Rodian is a real pain in the keister. We think he's killed two ambassadors already.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Two out of two million ain't bad.
|
|
if (response == "s_5772fc88")
|
|
{
|
|
doAnimationAction (player, "shrug_shoulders");
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
//-- NPC: It's not the ambassadors they're worried about. This guy's gunning for the Queen.
|
|
string_id message = new string_id (c_stringFile, "s_919b5558");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: [low whistle]
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_151");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 67);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch67 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: It's not the ambassadors they're worried about. This guy's gunning for the Queen.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: [low whistle]
|
|
if (response == "s_151")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "nod_head_once");
|
|
|
|
//-- NPC: You got it. And we want to keep that a little-known fact, if you get my drift.
|
|
string_id message = new string_id (c_stringFile, "s_153");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Loud and clear. Where to?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_155");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 68);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch68 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You got it. And we want to keep that a little-known fact, if you get my drift.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Loud and clear. Where to?
|
|
if (response == "s_155")
|
|
{
|
|
//-- [NOTE] *** - sector the player needs to enter (not in mission design doc)
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: I'm not done.
|
|
string_id message = new string_id (c_stringFile, "s_157");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: There's more?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_159");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 69);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch69 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE] *** - sector the player needs to enter (not in mission design doc)
|
|
//-- NPC: I'm not done.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: There's more?
|
|
if (response == "s_159")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: We want him alive.
|
|
string_id message = new string_id (c_stringFile, "s_161");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Hm. That makes it a little more complicated.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_163");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 70);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch70 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: We want him alive.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Hm. That makes it a little more complicated.
|
|
if (response == "s_163")
|
|
{
|
|
doAnimationAction (player, "rub_chin_thoughtful");
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
naboo_privateer_tier3_action_grantQuestOne (player, npc);
|
|
|
|
//-- NPC: All you need to do is stop his ship. The boys in the lab are putting together a little surprise for him, but it's up to you to deliver the package. Get over to the Dantooine System; we'll update you from there.
|
|
string_id message = new string_id (c_stringFile, "s_165");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch72 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Slow and low. He stalks his prey for weeks, months, before he makes a move. He's got a hell of a kill rate.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Any visuals?
|
|
if (response == "s_1ebb58e3")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shrug_shoulders");
|
|
|
|
//-- NPC: He's Rodian. What more do you need to know? Green and greasy; they're all the same.
|
|
string_id message = new string_id (c_stringFile, "s_2c556bd9");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: You're a sensitive guy.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_d5b06d9e");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 73);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch73 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: He's Rodian. What more do you need to know? Green and greasy; they're all the same.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You're a sensitive guy.
|
|
if (response == "s_d5b06d9e")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "dismiss");
|
|
|
|
//-- NPC: Hey, we'll see what you say when you're on this side of the desk. Let's get you started.
|
|
string_id message = new string_id (c_stringFile, "s_88a726df");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Where do I start?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_b1da46d");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 74);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch74 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hey, we'll see what you say when you're on this side of the desk. Let's get you started.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where do I start?
|
|
if (response == "s_b1da46d")
|
|
{
|
|
//-- [NOTE] *** - sector the player needs to enter (not in mission design doc)
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "wave_finger_warning");
|
|
|
|
//-- NPC: I'm not done.
|
|
string_id message = new string_id (c_stringFile, "s_174");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: There's more?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_176");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 75);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch75 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE] *** - sector the player needs to enter (not in mission design doc)
|
|
//-- NPC: I'm not done.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: There's more?
|
|
if (response == "s_176")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: We want him alive.
|
|
string_id message = new string_id (c_stringFile, "s_178");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Hm. That makes it a little more complicated.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_180");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 76);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch76 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: We want him alive.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Hm. That makes it a little more complicated.
|
|
if (response == "s_180")
|
|
{
|
|
doAnimationAction (player, "rub_chin_thoughtful");
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
naboo_privateer_tier3_action_grantQuestOne (player, npc);
|
|
|
|
//-- NPC: All you need to do is stop his ship. The boys in the lab are putting together a little surprise for him, but it's up to you to deliver the package. Get over to the Dantooine System; we'll update you from there.
|
|
string_id message = new string_id (c_stringFile, "s_182");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch78 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE] You haven't done quest two yet, so go do it.
|
|
//-- NPC: I'm really going to miss that Saymonz Varg.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yeah right.
|
|
if (response == "s_98427ee4")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shrug_shoulders");
|
|
|
|
//-- NPC: You gotta admit, he was good.
|
|
string_id message = new string_id (c_stringFile, "s_d5f1fa36");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I was better.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_18868d04");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 79);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I thought you hated guys like him.
|
|
if (response == "s_2ca7d4f4")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Sure. I do. They give me a real headache. But you gotta admit, they're good at what they do.
|
|
string_id message = new string_id (c_stringFile, "s_be2c5a18");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Got a mission for me?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_731caa45");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 98);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Who?
|
|
if (response == "s_719a036e")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
//-- NPC: The assassin you KILLED, brainiac.
|
|
string_id message = new string_id (c_stringFile, "s_928dcf38");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: So much for taking him alive.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_f80d4276");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 104);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch79 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You gotta admit, he was good.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I was better.
|
|
if (response == "s_18868d04")
|
|
{
|
|
doAnimationAction (player, "point_to_self");
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shrug_shoulders");
|
|
|
|
//-- NPC: I guess you were. Time for round two.
|
|
string_id message = new string_id (c_stringFile, "s_b43b6c14");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Another assassin?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_e7b0a6c9");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 80);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch80 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I guess you were. Time for round two.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Another assassin?
|
|
if (response == "s_e7b0a6c9")
|
|
{
|
|
//-- [NOTE] what kind of specs could the freighter have - the more specific the better
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shake_head_no");
|
|
|
|
//-- NPC: Nah. Nothing so glamorous. You're going to escort a freighter, an old Corellian YT variant. The Cadamo Sun. They need your firepower.
|
|
string_id message = new string_id (c_stringFile, "s_653b9611");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What's on board?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I thought we spent our time protecting the Royal Family.
|
|
boolean hasResponse1 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d919151c");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d5d85519");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 81);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch81 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE] what kind of specs could the freighter have - the more specific the better
|
|
//-- NPC: Nah. Nothing so glamorous. You're going to escort a freighter, an old Corellian YT variant. The Cadamo Sun. They need your firepower.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What's on board?
|
|
if (response == "s_d919151c")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Nothing.
|
|
string_id message = new string_id (c_stringFile, "s_6bd02793");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Come again?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_2bc43dfd");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 82);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I thought we spent our time protecting the Royal Family.
|
|
if (response == "s_d5d85519")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "tap_head");
|
|
|
|
//-- NPC: Sure. AND we protect the royal family's INTERESTS. Follow?
|
|
string_id message = new string_id (c_stringFile, "s_b2ff9cb");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yeah.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_ad973bd9");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 89);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch82 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Nothing.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Come again?
|
|
if (response == "s_2bc43dfd")
|
|
{
|
|
doAnimationAction (player, "listen");
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "tap_foot");
|
|
|
|
//-- NPC: You heard me. Hey, I don't come up with these cockamamie ideas. This one's straight from Central.
|
|
string_id message = new string_id (c_stringFile, "s_f92d904a");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: You gotta give me a better explanation than that.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_800cd173");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 83);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch83 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You heard me. Hey, I don't come up with these cockamamie ideas. This one's straight from Central.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You gotta give me a better explanation than that.
|
|
if (response == "s_800cd173")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "point_accusingly");
|
|
|
|
//-- NPC: I don't have to give you BUPKIS. But I'll tell ya 'cause I'm feeling generous. This is a decoy ship. The real goods are on another transport.
|
|
string_id message = new string_id (c_stringFile, "s_7278c01");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Who's gunning for it?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_6540bc41");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 84);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch84 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I don't have to give you BUPKIS. But I'll tell ya 'cause I'm feeling generous. This is a decoy ship. The real goods are on another transport.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Who's gunning for it?
|
|
if (response == "s_6540bc41")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Ay'Nat Pirate Faction. They want what that ship's got. Or what they THINK it's got, anyway.
|
|
string_id message = new string_id (c_stringFile, "s_72c4169a");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: So I'm guarding nothing.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_7a9f14df");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 85);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch85 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Ay'Nat Pirate Faction. They want what that ship's got. Or what they THINK it's got, anyway.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: So I'm guarding nothing.
|
|
if (response == "s_7a9f14df")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
//-- NPC: You're providing a valuable service to the Royal Security Forces of Naboo.
|
|
string_id message = new string_id (c_stringFile, "s_3b32ba04");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: As long as I get to shoot down a couple of pirate ships, I'm happy.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_2b6e8499");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 86);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch86 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You're providing a valuable service to the Royal Security Forces of Naboo.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: As long as I get to shoot down a couple of pirate ships, I'm happy.
|
|
if (response == "s_2b6e8499")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "laugh");
|
|
|
|
//-- NPC: Then get in your ship and get happy.
|
|
string_id message = new string_id (c_stringFile, "s_17dec7f9");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Just tell me where to go.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_6bdcb65c");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 87);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch87 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Then get in your ship and get happy.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Just tell me where to go.
|
|
if (response == "s_6bdcb65c")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "dismiss");
|
|
|
|
naboo_privateer_tier3_action_grantQuestTwo (player, npc);
|
|
|
|
//-- NPC: The freighter's in orbit around Naboo. See ya.
|
|
string_id message = new string_id (c_stringFile, "s_61968e69");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch89 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Sure. AND we protect the royal family's INTERESTS. Follow?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yeah.
|
|
if (response == "s_ad973bd9")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
//-- NPC: The royal family has got bills to pay, same as the rest of us. They're very interested in keeping their interests...uh...well they want to keep their money safe.
|
|
string_id message = new string_id (c_stringFile, "s_ea9bff27");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Okay...so what's onboard this ship?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_3895c4ae");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 90);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch90 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The royal family has got bills to pay, same as the rest of us. They're very interested in keeping their interests...uh...well they want to keep their money safe.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Okay...so what's onboard this ship?
|
|
if (response == "s_3895c4ae")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Nothing.
|
|
string_id message = new string_id (c_stringFile, "s_210");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Come again?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_212");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 91);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch91 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Nothing.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Come again?
|
|
if (response == "s_212")
|
|
{
|
|
doAnimationAction (player, "listen");
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You heard me.
|
|
string_id message = new string_id (c_stringFile, "s_3c468733");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: You gotta give me a better explanation than that.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_215");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 92);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch92 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You heard me.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You gotta give me a better explanation than that.
|
|
if (response == "s_215")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "point_accusingly");
|
|
|
|
//-- NPC: I don't have to give you BUPKIS. But I'll tell ya 'cause I'm feeling generous. This is a decoy ship. The real goods are on another transport.
|
|
string_id message = new string_id (c_stringFile, "s_217");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Who's gunning for it?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_219");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 93);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch93 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I don't have to give you BUPKIS. But I'll tell ya 'cause I'm feeling generous. This is a decoy ship. The real goods are on another transport.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Who's gunning for it?
|
|
if (response == "s_219")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Ay'Nat Pirate Faction. They want what that ship's got. Or what they THINK it's got, anyway.
|
|
string_id message = new string_id (c_stringFile, "s_221");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: So I'm guarding nothing.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_223");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 94);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch94 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Ay'Nat Pirate Faction. They want what that ship's got. Or what they THINK it's got, anyway.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: So I'm guarding nothing.
|
|
if (response == "s_223")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
//-- NPC: You're providing a valuable service to the Royal Security Forces of Naboo.
|
|
string_id message = new string_id (c_stringFile, "s_225");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: As long as I get to shoot down a couple of pirate ships, I'm happy.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_227");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 95);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch95 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You're providing a valuable service to the Royal Security Forces of Naboo.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: As long as I get to shoot down a couple of pirate ships, I'm happy.
|
|
if (response == "s_227")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "laugh");
|
|
|
|
//-- NPC: Then get in your ship and get happy.
|
|
string_id message = new string_id (c_stringFile, "s_229");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Just tell me where to go.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_231");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 96);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch96 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Then get in your ship and get happy.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Just tell me where to go.
|
|
if (response == "s_231")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "dismiss");
|
|
|
|
naboo_privateer_tier3_action_grantQuestTwo (player, npc);
|
|
|
|
//-- NPC: The freighter's in orbit around Naboo. See ya.
|
|
string_id message = new string_id (c_stringFile, "s_233");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch98 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Sure. I do. They give me a real headache. But you gotta admit, they're good at what they do.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Got a mission for me?
|
|
if (response == "s_731caa45")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "rub_chin_thoughtful");
|
|
|
|
//-- NPC: As a matter of fact, I do. Got a freighter that needs a pilot escort. It's an old Corellian YT variant. The Cadamo Sun.
|
|
string_id message = new string_id (c_stringFile, "s_70b9cf4c");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Hm! Must be carrying something good.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_992fcb9e");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 99);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch99 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: As a matter of fact, I do. Got a freighter that needs a pilot escort. It's an old Corellian YT variant. The Cadamo Sun.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Hm! Must be carrying something good.
|
|
if (response == "s_992fcb9e")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shrug_shoulders");
|
|
|
|
//-- NPC: Not exactly. This is a decoy ship. The REAL goods are somewhere else.
|
|
string_id message = new string_id (c_stringFile, "s_80a39a22");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Somebody's going to a lot of trouble! Must be quite a juicy haul they're protecting.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_2dbfc867");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 100);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch100 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Not exactly. This is a decoy ship. The REAL goods are somewhere else.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Somebody's going to a lot of trouble! Must be quite a juicy haul they're protecting.
|
|
if (response == "s_2dbfc867")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "rub_belly");
|
|
|
|
//-- NPC: The juiciest.
|
|
string_id message = new string_id (c_stringFile, "s_dfc8b68e");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me what it is?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_dc54e9e4");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 101);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch101 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The juiciest.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me what it is?
|
|
if (response == "s_dc54e9e4")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "stretch");
|
|
|
|
//-- NPC: That's above your security clearance. You'll be facing the Ay'Nat Pirate Faction. They want that cargo.
|
|
string_id message = new string_id (c_stringFile, "s_d3583e11");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: But what they'll get is me.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_d5d8a006");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 102);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch102 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: That's above your security clearance. You'll be facing the Ay'Nat Pirate Faction. They want that cargo.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: But what they'll get is me.
|
|
if (response == "s_d5d8a006")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "nod_head_once");
|
|
|
|
naboo_privateer_tier3_action_grantQuestTwo (player, npc);
|
|
|
|
//-- NPC: Double helping. The freighter is up around Naboo; you're clear to go.
|
|
string_id message = new string_id (c_stringFile, "s_b8955212");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch104 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The assassin you KILLED, brainiac.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: So much for taking him alive.
|
|
if (response == "s_f80d4276")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shrug_hands");
|
|
|
|
//-- NPC: Yeah. So much for that. Whatever. We've got bigger fish to fry.
|
|
string_id message = new string_id (c_stringFile, "s_7b05ff95");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Like what?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_53de9d8f");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 105);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch105 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yeah. So much for that. Whatever. We've got bigger fish to fry.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Like what?
|
|
if (response == "s_53de9d8f")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
//-- NPC: Well, you noticed on your last mission that we have run-ins from time to time with pirates.
|
|
string_id message = new string_id (c_stringFile, "s_4f5f8321");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Sure.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_8be640b8");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 106);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch106 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Well, you noticed on your last mission that we have run-ins from time to time with pirates.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Sure.
|
|
if (response == "s_8be640b8")
|
|
{
|
|
doAnimationAction (player, "nod_head_once");
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "tap_head");
|
|
|
|
//-- NPC: Pirates are crafty devils. Always scheming. So we've got to be crafty too.
|
|
string_id message = new string_id (c_stringFile, "s_e1775a2f");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I smell a plan.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_47d51826");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 107);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch107 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Pirates are crafty devils. Always scheming. So we've got to be crafty too.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I smell a plan.
|
|
if (response == "s_47d51826")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "smell_armpit");
|
|
|
|
//-- NPC: Nah. You're getting a whiff of my lunch. I think. But you're right, I DO have a plan.
|
|
string_id message = new string_id (c_stringFile, "s_4636b7d1");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: It's a figure of speech.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_cc756770");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 108);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch108 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Nah. You're getting a whiff of my lunch. I think. But you're right, I DO have a plan.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: It's a figure of speech.
|
|
if (response == "s_cc756770")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "point_accusingly");
|
|
|
|
//-- NPC: A figure of what...? Don't get smart with me, smart guy. Shut your trap and listen up.
|
|
string_id message = new string_id (c_stringFile, "s_738baf5a");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: [say nothing]
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_2d582b36");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 109);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch109 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: A figure of what...? Don't get smart with me, smart guy. Shut your trap and listen up.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: [say nothing]
|
|
if (response == "s_2d582b36")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "nod_head_once");
|
|
|
|
//-- NPC: That's more like it. I've got a freighter that needs a pilot escort. It's an old Corellian YT variant. The Cadamo Sun.
|
|
string_id message = new string_id (c_stringFile, "s_2c397539");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Hm! Must be carrying something good.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_261");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 110);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch110 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: That's more like it. I've got a freighter that needs a pilot escort. It's an old Corellian YT variant. The Cadamo Sun.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Hm! Must be carrying something good.
|
|
if (response == "s_261")
|
|
{
|
|
doAnimationAction (player, "rub_chin_thoughtful");
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "rub_belly");
|
|
|
|
//-- NPC: Not exactly. This is a decoy ship. The REAL goods are somewhere else.
|
|
string_id message = new string_id (c_stringFile, "s_263");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Somebody's going to a lot of trouble! Must be quite a juicy haul they're protecting.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_265");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 111);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch111 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Not exactly. This is a decoy ship. The REAL goods are somewhere else.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Somebody's going to a lot of trouble! Must be quite a juicy haul they're protecting.
|
|
if (response == "s_265")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "snap_finger1");
|
|
|
|
//-- NPC: The juiciest.
|
|
string_id message = new string_id (c_stringFile, "s_267");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you tell me what it is?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_269");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 112);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch112 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The juiciest.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you tell me what it is?
|
|
if (response == "s_269")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shake_head_no");
|
|
|
|
//-- NPC: That's above your security clearance. You'll be facing the Ay'Nat Pirates. They want that cargo.
|
|
string_id message = new string_id (c_stringFile, "s_42d73452");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: But what they'll get is me.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_272");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 113);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch113 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: That's above your security clearance. You'll be facing the Ay'Nat Pirates. They want that cargo.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: But what they'll get is me.
|
|
if (response == "s_272")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "stretch");
|
|
|
|
naboo_privateer_tier3_action_grantQuestTwo (player, npc);
|
|
|
|
//-- NPC: Double helping. The freighter is up around Naboo; you're clear to go.
|
|
string_id message = new string_id (c_stringFile, "s_274");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch115 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE] You haven't done quest three yet, so go do it.
|
|
//-- NPC: Those pirates really wanted that cargo, eh?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: They sure did. Tell me what it was!
|
|
if (response == "s_d5b8e3f8")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "wave_finger_warning");
|
|
|
|
//-- NPC: Ask me no questions. This is the Royal Security Force, %NU. We're here to help the politicians do their dirty work, that's all.
|
|
string_id message = new string_id (c_stringFile, "s_7e23ff31");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: It sure involves a lot of gunplay.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_19b65be5");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 116);
|
|
|
|
prose_package pp = new prose_package ();
|
|
pp.stringId = message;
|
|
pp.actor.set (player);
|
|
pp.target.set (npc);
|
|
|
|
npcSpeak (player, pp);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
prose_package pp = new prose_package ();
|
|
pp.stringId = message;
|
|
pp.actor.set (player);
|
|
pp.target.set (npc);
|
|
|
|
npcEndConversationWithMessage (player, pp);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Too bad for them.
|
|
if (response == "s_f2697794")
|
|
{
|
|
doAnimationAction (player, "wave_on_dismissing");
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "yawn");
|
|
|
|
//-- NPC: I know; doesn't it break your heart?
|
|
string_id message = new string_id (c_stringFile, "s_efff0139");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Not really. What was in there, anyway?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_97b0942d");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 124);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch116 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Ask me no questions. This is the Royal Security Force, %NU. We're here to help the politicians do their dirty work, that's all.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: It sure involves a lot of gunplay.
|
|
if (response == "s_19b65be5")
|
|
{
|
|
doAnimationAction (player, "tap_foot");
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "applause_excited");
|
|
|
|
//-- NPC: And that's the way we like it! Listen %NU, the royal family has enemies. Always has, always will. They need us to keep them going. Nobody's interested in your opinion - or in your questions.
|
|
string_id message = new string_id (c_stringFile, "s_7ea4b2be");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: They want me to shut up; they better pay me more money.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_c0167dab");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 117);
|
|
|
|
prose_package pp = new prose_package ();
|
|
pp.stringId = message;
|
|
pp.actor.set (player);
|
|
pp.target.set (npc);
|
|
|
|
npcSpeak (player, pp);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
prose_package pp = new prose_package ();
|
|
pp.stringId = message;
|
|
pp.actor.set (player);
|
|
pp.target.set (npc);
|
|
|
|
npcEndConversationWithMessage (player, pp);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch117 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: And that's the way we like it! Listen %NU, the royal family has enemies. Always has, always will. They need us to keep them going. Nobody's interested in your opinion - or in your questions.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: They want me to shut up; they better pay me more money.
|
|
if (response == "s_c0167dab")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "tap_head");
|
|
|
|
//-- NPC: The only way you're going to get paid is if you complete your missions.
|
|
string_id message = new string_id (c_stringFile, "s_80cc6c3b");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Then let's have it already.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_c6e9b9c7");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 118);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch118 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The only way you're going to get paid is if you complete your missions.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Then let's have it already.
|
|
if (response == "s_c6e9b9c7")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: A fleet of diplomats are coming to Naboo for a conference. You know, koombiyah and all that. Hugs not slugs.
|
|
string_id message = new string_id (c_stringFile, "s_b6d8cc82");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'm moved.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_9ba13c");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 119);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch119 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: A fleet of diplomats are coming to Naboo for a conference. You know, koombiyah and all that. Hugs not slugs.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm moved.
|
|
if (response == "s_9ba13c")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "smell_armpit");
|
|
|
|
//-- NPC: Must have been something you ate. These diplomats, they're not exactly trustworthy.
|
|
string_id message = new string_id (c_stringFile, "s_8ebe23b3");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: How can you be so suspicious?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_a41bb8c7");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 120);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch120 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Must have been something you ate. These diplomats, they're not exactly trustworthy.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: How can you be so suspicious?
|
|
if (response == "s_a41bb8c7")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "flex_biceps");
|
|
|
|
//-- NPC: Unlike you, I DO get paid the big bucks, %NU, and it's on account of my suspicious nature. Smugglers may be packing these ships with contraband.
|
|
string_id message = new string_id (c_stringFile, "s_83905129");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Do the diplomats know?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_66f6527f");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 121);
|
|
|
|
prose_package pp = new prose_package ();
|
|
pp.stringId = message;
|
|
pp.actor.set (player);
|
|
pp.target.set (npc);
|
|
|
|
npcSpeak (player, pp);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
prose_package pp = new prose_package ();
|
|
pp.stringId = message;
|
|
pp.actor.set (player);
|
|
pp.target.set (npc);
|
|
|
|
npcEndConversationWithMessage (player, pp);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch121 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Unlike you, I DO get paid the big bucks, %NU, and it's on account of my suspicious nature. Smugglers may be packing these ships with contraband.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Do the diplomats know?
|
|
if (response == "s_66f6527f")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shrug_shoulders");
|
|
|
|
//-- NPC: Maybe yes, maybe no. Doesn't matter. These guys lie for a living.
|
|
string_id message = new string_id (c_stringFile, "s_3898bb41");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What do you need me to do?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_5bd69df6");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 122);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch122 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Maybe yes, maybe no. Doesn't matter. These guys lie for a living.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What do you need me to do?
|
|
if (response == "s_5bd69df6")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
naboo_privateer_tier3_action_grantQuestThree (player, npc);
|
|
|
|
//-- NPC: Fly your ship out to the waypoint. Inspect the diplomats' ships. Use some pretext if you have to. See what you can find.
|
|
string_id message = new string_id (c_stringFile, "s_c4095762");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch124 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I know; doesn't it break your heart?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Not really. What was in there, anyway?
|
|
if (response == "s_97b0942d")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "check_wrist_device");
|
|
|
|
//-- NPC: Don't know. You know the royal family; always up to something.
|
|
string_id message = new string_id (c_stringFile, "s_83c29fd0");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Uh huh.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Yeah, but what, exactly?
|
|
boolean hasResponse1 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c3363bcd");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_98448a60");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 125);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch125 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Don't know. You know the royal family; always up to something.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Uh huh.
|
|
if (response == "s_c3363bcd")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
//-- NPC: Your new mission targets a criminal of a different type. I'm talking about diplomats.
|
|
string_id message = new string_id (c_stringFile, "s_5075e20b");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Why do you work with the RSF if you hate politicians so much?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_4b6422f4");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 126);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yeah, but what, exactly?
|
|
if (response == "s_98448a60")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "rub_chin_thoughtful");
|
|
|
|
//-- NPC: Why are you so interested?
|
|
string_id message = new string_id (c_stringFile, "s_ddd7e395");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I just am.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_c089dba4");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 131);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch126 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Your new mission targets a criminal of a different type. I'm talking about diplomats.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Why do you work with the RSF if you hate politicians so much?
|
|
if (response == "s_4b6422f4")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shrug_shoulders");
|
|
|
|
//-- NPC: The benefits are good. Now listen up. Naboo is hosting a conference. Diplomats are coming in from all over. And odds are, some of them are carrying contraband.
|
|
string_id message = new string_id (c_stringFile, "s_fc59c904");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Why would they take that chance?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_41d3138c");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 127);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch127 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The benefits are good. Now listen up. Naboo is hosting a conference. Diplomats are coming in from all over. And odds are, some of them are carrying contraband.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Why would they take that chance?
|
|
if (response == "s_41d3138c")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "rub_belly");
|
|
|
|
//-- NPC: To be honest, it's probably not them. It's probably smugglers taking advantage of the opportunity, and hiding gear on their ship. Doesn't matter. Same difference.
|
|
string_id message = new string_id (c_stringFile, "s_68d4ba6b");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Where are these diplomats?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_9d9af42e");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 128);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch128 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: To be honest, it's probably not them. It's probably smugglers taking advantage of the opportunity, and hiding gear on their ship. Doesn't matter. Same difference.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where are these diplomats?
|
|
if (response == "s_9d9af42e")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: En route. Fly out to the waypoint and get ready to inspect each and every one of them.
|
|
string_id message = new string_id (c_stringFile, "s_76734574");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: You got it.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_6c251948");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 129);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch129 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: En route. Fly out to the waypoint and get ready to inspect each and every one of them.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You got it.
|
|
if (response == "s_6c251948")
|
|
{
|
|
doAnimationAction (player, "nod_head_once");
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "dismiss");
|
|
|
|
naboo_privateer_tier3_action_grantQuestThree (player, npc);
|
|
|
|
//-- NPC: Coordinates are in your ship. You're clear to leave.
|
|
string_id message = new string_id (c_stringFile, "s_3fa8b6f1");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch131 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Why are you so interested?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I just am.
|
|
if (response == "s_c089dba4")
|
|
{
|
|
doAnimationAction (player, "shrug_shoulders");
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "tap_foot");
|
|
|
|
//-- NPC: You sure do ask a lot of questions, you know that? Tell me, %NU, how do you like Naboo? 'Lot of Imperials around, you know.
|
|
string_id message = new string_id (c_stringFile, "s_88e6f763");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I noticed.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_a56734f6");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 132);
|
|
|
|
prose_package pp = new prose_package ();
|
|
pp.stringId = message;
|
|
pp.actor.set (player);
|
|
pp.target.set (npc);
|
|
|
|
npcSpeak (player, pp);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
prose_package pp = new prose_package ();
|
|
pp.stringId = message;
|
|
pp.actor.set (player);
|
|
pp.target.set (npc);
|
|
|
|
npcEndConversationWithMessage (player, pp);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch132 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You sure do ask a lot of questions, you know that? Tell me, %NU, how do you like Naboo? 'Lot of Imperials around, you know.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I noticed.
|
|
if (response == "s_a56734f6")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You like that?
|
|
string_id message = new string_id (c_stringFile, "s_a09da7f1");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Doesn't matter what I think.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: What's not to like?
|
|
boolean hasResponse1 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_3b315f68");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c5fdab6d");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 133);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch133 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You like that?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Doesn't matter what I think.
|
|
if (response == "s_3b315f68")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "whisper");
|
|
|
|
//-- NPC: Some people prefer the Rebels.
|
|
string_id message = new string_id (c_stringFile, "s_2b25d03f");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: SOME PEOPLE should talk about this later, when we're not on duty.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_1d418957");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 134);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What's not to like?
|
|
if (response == "s_c5fdab6d")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "rub_chin_thoughtful");
|
|
|
|
//-- NPC: Yeah...Imperials...they're good for the economy. OK never mind. Back to business. Your new mission targets a criminal of a different type. I'm talking about diplomats.
|
|
string_id message = new string_id (c_stringFile, "s_942ba0c6");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Why do you work with the RSF if you hate politicians so much?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_335");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 140);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch134 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Some people prefer the Rebels.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: SOME PEOPLE should talk about this later, when we're not on duty.
|
|
if (response == "s_1d418957")
|
|
{
|
|
doAnimationAction (player, "whisper");
|
|
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "rub_chin_thoughtful");
|
|
|
|
//-- NPC: OK. Maybe we will. But back to business. Your new mission targets a criminal of a different type. I'm talking about diplomats.
|
|
string_id message = new string_id (c_stringFile, "s_4ebef758");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Why do you work with the RSF if you hate politicians so much?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_317");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 135);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch135 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: OK. Maybe we will. But back to business. Your new mission targets a criminal of a different type. I'm talking about diplomats.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Why do you work with the RSF if you hate politicians so much?
|
|
if (response == "s_317")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shrug_shoulders");
|
|
|
|
//-- NPC: The benefits are good. Now listen up. Naboo is hosting a conference. Diplomats are coming in from all over. And odds are, some of them are carrying contraband.
|
|
string_id message = new string_id (c_stringFile, "s_319");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Why would they take that chance?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_321");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 136);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch136 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The benefits are good. Now listen up. Naboo is hosting a conference. Diplomats are coming in from all over. And odds are, some of them are carrying contraband.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Why would they take that chance?
|
|
if (response == "s_321")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "stretch");
|
|
|
|
//-- NPC: To be honest, it's probably not them. It's probably smugglers taking advantage of the opportunity, and hiding gear on their ship. Doesn't matter. Same difference.
|
|
string_id message = new string_id (c_stringFile, "s_323");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Where are these diplomats?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_325");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 137);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch137 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: To be honest, it's probably not them. It's probably smugglers taking advantage of the opportunity, and hiding gear on their ship. Doesn't matter. Same difference.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where are these diplomats?
|
|
if (response == "s_325")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: En route. Fly out to the waypoint and get ready to inspect each and every one of them.
|
|
string_id message = new string_id (c_stringFile, "s_327");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: You got it.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_329");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 138);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch138 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: En route. Fly out to the waypoint and get ready to inspect each and every one of them.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You got it.
|
|
if (response == "s_329")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "dismiss");
|
|
|
|
naboo_privateer_tier3_action_grantQuestThree (player, npc);
|
|
|
|
//-- NPC: Coordinates are in your ship. You're clear to leave.
|
|
string_id message = new string_id (c_stringFile, "s_331");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch140 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yeah...Imperials...they're good for the economy. OK never mind. Back to business. Your new mission targets a criminal of a different type. I'm talking about diplomats.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Why do you work with the RSF if you hate politicians so much?
|
|
if (response == "s_335")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shrug_shoulders");
|
|
|
|
//-- NPC: The benefits are good. Now listen up. Naboo is hosting a conference. Diplomats are coming in from all over. And odds are, some of them are carrying contraband.
|
|
string_id message = new string_id (c_stringFile, "s_337");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Why would they take that chance?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_339");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 141);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch141 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: The benefits are good. Now listen up. Naboo is hosting a conference. Diplomats are coming in from all over. And odds are, some of them are carrying contraband.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Why would they take that chance?
|
|
if (response == "s_339")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
//-- NPC: To be honest, it's probably not them. It's probably smugglers taking advantage of the opportunity, and hiding gear on their ship. Doesn't matter. Same difference.
|
|
string_id message = new string_id (c_stringFile, "s_341");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Where are these diplomats?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_343");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 142);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch142 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: To be honest, it's probably not them. It's probably smugglers taking advantage of the opportunity, and hiding gear on their ship. Doesn't matter. Same difference.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where are these diplomats?
|
|
if (response == "s_343")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: En route. Fly out to the waypoint and get ready to inspect each and every one of them.
|
|
string_id message = new string_id (c_stringFile, "s_345");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: You got it.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_347");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 143);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch143 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: En route. Fly out to the waypoint and get ready to inspect each and every one of them.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You got it.
|
|
if (response == "s_347")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "dismiss");
|
|
|
|
naboo_privateer_tier3_action_grantQuestThree (player, npc);
|
|
|
|
//-- NPC: Coordinates are in your ship. You're clear to leave.
|
|
string_id message = new string_id (c_stringFile, "s_349");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch145 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE] You haven't done quest four yet, so go do it.
|
|
//-- NPC: OK, %NU, no more busywork. Time for some good old-fashioned killing. How does that sound?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Like a dream come true.
|
|
if (response == "s_5a889c20")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "accept_affection");
|
|
|
|
//-- NPC: Then let me share the joy. You intercepted some pretty serious data on your last mission. We've got information on a whole host of assassins, terrorists, and assorted bad guys.
|
|
string_id message = new string_id (c_stringFile, "s_2b9a70e4");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Anybody at the top of the list?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_7339c95e");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 146);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Depends. Am I killing bad guys?
|
|
if (response == "s_5a2317e2")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "nod_head_once");
|
|
|
|
//-- NPC: Oh yeah. The worst of the worst. That data you intercepted has led us to a real hornet's nest of assassins and terrorists.
|
|
string_id message = new string_id (c_stringFile, "s_47152ac5");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Glad to hear it.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_f69a2921");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 150);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch146 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Then let me share the joy. You intercepted some pretty serious data on your last mission. We've got information on a whole host of assassins, terrorists, and assorted bad guys.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Anybody at the top of the list?
|
|
if (response == "s_7339c95e")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "nod_head_once");
|
|
|
|
//-- NPC: A human, name of Beldini. The worst of the bunch. He'd kill ya as soon as look at ya.
|
|
string_id message = new string_id (c_stringFile, "s_5ed53186");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Then I guess I better shoot first.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_981c060d");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 147);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch147 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: A human, name of Beldini. The worst of the bunch. He'd kill ya as soon as look at ya.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Then I guess I better shoot first.
|
|
if (response == "s_981c060d")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Sounds like a plan. Go to the Dantooine system. Follow the coordinates on your ship's nav system; should lead you right to him. And you've got the element of surprise - I think.
|
|
string_id message = new string_id (c_stringFile, "s_f6976b78");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: When can I leave?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_9d1fa2a2");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 148);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch148 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Sounds like a plan. Go to the Dantooine system. Follow the coordinates on your ship's nav system; should lead you right to him. And you've got the element of surprise - I think.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: When can I leave?
|
|
if (response == "s_9d1fa2a2")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "wave_on_dismissing");
|
|
|
|
naboo_privateer_tier3_action_grantQuestFour (player, npc);
|
|
|
|
//-- NPC: The sooner the better.
|
|
string_id message = new string_id (c_stringFile, "s_d9c145dd");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch150 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Oh yeah. The worst of the worst. That data you intercepted has led us to a real hornet's nest of assassins and terrorists.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Glad to hear it.
|
|
if (response == "s_f69a2921")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "slit_throat");
|
|
|
|
//-- NPC: These guys pose a SERIOUS threat to the royal family - hell, to this entire planet.
|
|
string_id message = new string_id (c_stringFile, "s_666cac71");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Don't have to sell it to me.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_e49c6b33");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 151);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch151 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: These guys pose a SERIOUS threat to the royal family - hell, to this entire planet.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Don't have to sell it to me.
|
|
if (response == "s_e49c6b33")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Right. Your first target is a human, Beldini. Terrorist, killer, all-around bad guy.
|
|
string_id message = new string_id (c_stringFile, "s_3c432969");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Where can I find this charmer?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_692788e8");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 152);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int naboo_privateer_tier3_handleBranch152 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Right. Your first target is a human, Beldini. Terrorist, killer, all-around bad guy.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where can I find this charmer?
|
|
if (response == "s_692788e8")
|
|
{
|
|
//-- [NOTE]
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
naboo_privateer_tier3_action_grantQuestFour (player, npc);
|
|
|
|
//-- NPC: First, go to Dantooine. Just follow the data in your nav system. And keep your eyes open. This guy's a professional.
|
|
string_id message = new string_id (c_stringFile, "s_46eb0ec8");
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
// ======================================================================
|
|
// User Script Triggers
|
|
// ======================================================================
|
|
|
|
trigger OnInitialize ()
|
|
{
|
|
if ((!isMob (self)) || (isPlayer (self)))
|
|
detachScript(self, "conversation.naboo_privateer_tier3");
|
|
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
setInvulnerable( self, true );
|
|
setCondition( self, CONDITION_SPACE_INTERESTING );
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnAttach ()
|
|
{
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
setInvulnerable( self, true );
|
|
setCondition( self, CONDITION_SPACE_INTERESTING );
|
|
|
|
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);
|
|
|
|
faceTo( self, player );
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnIncapacitated (obj_id killer)
|
|
{
|
|
clearCondition (self, CONDITION_CONVERSABLE);
|
|
detachScript (self, "conversation.naboo_privateer_tier3");
|
|
|
|
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 (!naboo_privateer_tier3_condition_isPilot (player, npc))
|
|
{
|
|
doAnimationAction (npc, "wave_on_dismissing");
|
|
|
|
//-- NPC: Looks like you took a wrong turn somewhere. Scram.
|
|
string_id message = new string_id (c_stringFile, "s_406e1216");
|
|
chat.chat (npc, player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] You're the wrong faction.
|
|
if (!naboo_privateer_tier3_condition_isCorrectFaction (player, npc))
|
|
{
|
|
doAnimationAction (npc, "dismiss");
|
|
|
|
//-- NPC: Keep walking.
|
|
string_id message = new string_id (c_stringFile, "s_2734ffac");
|
|
chat.chat (npc, player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!naboo_privateer_tier3_condition_onMyTrack (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shake_head_no");
|
|
|
|
//-- NPC: I don't think I know you. And Mama told me not to talk to strangers. Beat it.
|
|
string_id message = new string_id (c_stringFile, "s_843db48d");
|
|
chat.chat (npc, player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] You're not through tier2 yet!
|
|
if (!naboo_privateer_tier3_condition_isReadyForTier3 (player, npc))
|
|
{
|
|
doAnimationAction (npc, "check_wrist_device");
|
|
|
|
//-- NPC: Looks like you took a wrong turn somewhere. Get outta here.
|
|
string_id message = new string_id (c_stringFile, "s_6");
|
|
chat.chat (npc, player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] You are busy. Already on a quest. Go do it.
|
|
if (naboo_privateer_tier3_condition_isOnQuest (player, npc))
|
|
{
|
|
doAnimationAction (npc, "stretch");
|
|
|
|
//-- NPC: Start earning your pay and stop wasting my time.
|
|
string_id message = new string_id (c_stringFile, "s_e15039ea");
|
|
chat.chat (npc, player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] You failed quest one. You must start over.
|
|
if (naboo_privateer_tier3_condition_failedQuestOne (player, npc))
|
|
{
|
|
doAnimationAction (npc, "snap_finger1");
|
|
|
|
//-- NPC: That Rodian is giving you a run for your money.
|
|
string_id message = new string_id (c_stringFile, "s_cae364a9");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Just for now; I'm not done yet.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Looks that way.
|
|
boolean hasResponse1 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5a236288");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c551ea96");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 6);
|
|
|
|
npcStartConversation (player, npc, "naboo_privateer_tier3", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] You failed quest two. You must start over.
|
|
if (naboo_privateer_tier3_condition_failedQuestTwo (player, npc))
|
|
{
|
|
doAnimationAction (npc, "applause_polite");
|
|
|
|
//-- NPC: Welcome back. I'm so happy you're here.
|
|
string_id message = new string_id (c_stringFile, "s_41480145");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: No you're not. I haven't finished my job.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: You are?
|
|
boolean hasResponse1 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_800745bc");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_19425c2f");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 9);
|
|
|
|
npcStartConversation (player, npc, "naboo_privateer_tier3", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] You failed quest three. You must start over.
|
|
if (naboo_privateer_tier3_condition_failedQuestThree (player, npc))
|
|
{
|
|
//-- NPC: This Royal Security Forces assignment isn't so easy after all, is it?
|
|
string_id message = new string_id (c_stringFile, "s_97e76dd");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Nothing I can't handle.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'll take care of it.
|
|
boolean hasResponse1 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_b144d69b");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a5fe9928");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 12);
|
|
|
|
npcStartConversation (player, npc, "naboo_privateer_tier3", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] You failed quest four. You must start over.
|
|
if (naboo_privateer_tier3_condition_failedQuestFour (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shake_head_no");
|
|
|
|
//-- NPC: You're starting to get a bad reputation.
|
|
string_id message = new string_id (c_stringFile, "s_53daee1c");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: You telling stories about me?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Why?
|
|
boolean hasResponse1 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_83b47a80");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_841d27db");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 15);
|
|
|
|
npcStartConversation (player, npc, "naboo_privateer_tier3", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] You are here to collect your reward for quest one, so here it is!
|
|
if (naboo_privateer_tier3_condition_collectingQuestOneReward (player, npc))
|
|
{
|
|
doAnimationAction (npc, "nod_head_once");
|
|
|
|
naboo_privateer_tier3_action_rewardForQuestOne (player, npc);
|
|
|
|
//-- NPC: OK! That's one less Rodian messing up the place. Nice work. Time to get back to your training.
|
|
string_id message = new string_id (c_stringFile, "s_b61d6d4f");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What kind of training am I going to get?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_368");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 18);
|
|
|
|
npcStartConversation (player, npc, "naboo_privateer_tier3", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] You are here to collect your reward for quest two, so here it is!
|
|
if (naboo_privateer_tier3_condition_collectingQuestTwoReward (player, npc))
|
|
{
|
|
naboo_privateer_tier3_action_rewardForQuestTwo (player, npc);
|
|
|
|
//-- NPC: Ready for more training?
|
|
string_id message = new string_id (c_stringFile, "s_530e5eb4");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What kind of training am I going to get?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_368");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 18);
|
|
|
|
npcStartConversation (player, npc, "naboo_privateer_tier3", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] You are here to collect your reward for quest three, so here it is!
|
|
if (naboo_privateer_tier3_condition_collectingQuestThreeReward (player, npc))
|
|
{
|
|
doAnimationAction (npc, "offer_affection");
|
|
|
|
naboo_privateer_tier3_action_rewardForQuestThree (player, npc);
|
|
|
|
//-- NPC: You're keeping the galaxy safe. The least I can do is offer more training.
|
|
string_id message = new string_id (c_stringFile, "s_f765036a");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What kind of training am I going to get?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_368");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 18);
|
|
|
|
npcStartConversation (player, npc, "naboo_privateer_tier3", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] You are here to collect your reward for quest four, so here it is!
|
|
if (naboo_privateer_tier3_condition_collectingQuestFourReward (player, npc))
|
|
{
|
|
doAnimationAction (npc, "salute1");
|
|
|
|
naboo_privateer_tier3_action_rewardForQuestFour (player, npc);
|
|
|
|
//-- NPC: I salute you, %TU. You're one heck of a pilot. How about a little more training?
|
|
string_id message = new string_id (c_stringFile, "s_ae2d3229");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What kind of training am I going to get?
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_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_368");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 18);
|
|
|
|
prose_package pp = new prose_package ();
|
|
pp.stringId = message;
|
|
pp.actor.set (player);
|
|
pp.target.set (npc);
|
|
|
|
npcStartConversation (player, npc, "naboo_privateer_tier3", null, pp, responses);
|
|
}
|
|
else
|
|
{
|
|
prose_package pp = new prose_package ();
|
|
pp.stringId = message;
|
|
pp.actor.set (player);
|
|
pp.target.set (npc);
|
|
|
|
chat.chat (npc, player, null, null, pp);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!naboo_privateer_tier3_condition_hasCompletedQuestOne (player, npc))
|
|
{
|
|
doAnimationAction (npc, "beckon");
|
|
|
|
//-- NPC: %TU. You're the new one.
|
|
string_id message = new string_id (c_stringFile, "s_a31b65f9");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Looks that way.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: [says nothing]
|
|
boolean hasResponse1 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_42");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_89ae25d4");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 26);
|
|
|
|
prose_package pp = new prose_package ();
|
|
pp.stringId = message;
|
|
pp.actor.set (player);
|
|
pp.target.set (npc);
|
|
|
|
npcStartConversation (player, npc, "naboo_privateer_tier3", null, pp, responses);
|
|
}
|
|
else
|
|
{
|
|
prose_package pp = new prose_package ();
|
|
pp.stringId = message;
|
|
pp.actor.set (player);
|
|
pp.target.set (npc);
|
|
|
|
chat.chat (npc, player, null, null, pp);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] You haven't done quest two yet, so go do it.
|
|
if (!naboo_privateer_tier3_condition_hasCompletedQuestTwo (player, npc))
|
|
{
|
|
doAnimationAction (npc, "weeping");
|
|
|
|
//-- NPC: I'm really going to miss that Saymonz Varg.
|
|
string_id message = new string_id (c_stringFile, "s_8de81731");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yeah right.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I thought you hated guys like him.
|
|
boolean hasResponse1 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Who?
|
|
boolean hasResponse2 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_98427ee4");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2ca7d4f4");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_719a036e");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 78);
|
|
|
|
npcStartConversation (player, npc, "naboo_privateer_tier3", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] You haven't done quest three yet, so go do it.
|
|
if (!naboo_privateer_tier3_condition_hasCompletedQuestThree (player, npc))
|
|
{
|
|
doAnimationAction (npc, "laugh");
|
|
|
|
//-- NPC: Those pirates really wanted that cargo, eh?
|
|
string_id message = new string_id (c_stringFile, "s_29a181c");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: They sure did. Tell me what it was!
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Too bad for them.
|
|
boolean hasResponse1 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d5b8e3f8");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_f2697794");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 115);
|
|
|
|
npcStartConversation (player, npc, "naboo_privateer_tier3", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] You haven't done quest four yet, so go do it.
|
|
if (!naboo_privateer_tier3_condition_hasCompletedQuestFour (player, npc))
|
|
{
|
|
doAnimationAction (npc, "salute1");
|
|
|
|
//-- NPC: OK, %NU, no more busywork. Time for some good old-fashioned killing. How does that sound?
|
|
string_id message = new string_id (c_stringFile, "s_70e76a9a");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Like a dream come true.
|
|
boolean hasResponse0 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Depends. Am I killing bad guys?
|
|
boolean hasResponse1 = false;
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5a889c20");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5a2317e2");
|
|
|
|
utils.setScriptVar (player, "conversation.naboo_privateer_tier3.branchId", 145);
|
|
|
|
prose_package pp = new prose_package ();
|
|
pp.stringId = message;
|
|
pp.actor.set (player);
|
|
pp.target.set (npc);
|
|
|
|
npcStartConversation (player, npc, "naboo_privateer_tier3", null, pp, responses);
|
|
}
|
|
else
|
|
{
|
|
prose_package pp = new prose_package ();
|
|
pp.stringId = message;
|
|
pp.actor.set (player);
|
|
pp.target.set (npc);
|
|
|
|
chat.chat (npc, player, null, null, pp);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] You must have completed tier3 completely. Hope you have all your skills! Now I will tell you to go talk to a tier-4 guy.
|
|
if (naboo_privateer_tier3_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Aw. I think I'm actually going to miss you - maybe. But duty calls. You're now assigned to Admiral Diness Imler, down the hall - she'll be giving you orders from now on. See ya, %TU.
|
|
string_id message = new string_id (c_stringFile, "s_4fc6a099");
|
|
prose_package pp = new prose_package ();
|
|
pp.stringId = message;
|
|
pp.actor.set (player);
|
|
pp.target.set (npc);
|
|
|
|
chat.chat (npc, player, null, null, pp);
|
|
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 != "naboo_privateer_tier3")
|
|
return SCRIPT_CONTINUE;
|
|
|
|
obj_id npc = self;
|
|
|
|
int branchId = utils.getIntScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
if (branchId == 6 && naboo_privateer_tier3_handleBranch6 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 9 && naboo_privateer_tier3_handleBranch9 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 12 && naboo_privateer_tier3_handleBranch12 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 15 && naboo_privateer_tier3_handleBranch15 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 18 && naboo_privateer_tier3_handleBranch18 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 23 && naboo_privateer_tier3_handleBranch23 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 24 && naboo_privateer_tier3_handleBranch24 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 25 && naboo_privateer_tier3_handleBranch25 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 26 && naboo_privateer_tier3_handleBranch26 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 27 && naboo_privateer_tier3_handleBranch27 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 28 && naboo_privateer_tier3_handleBranch28 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 29 && naboo_privateer_tier3_handleBranch29 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 30 && naboo_privateer_tier3_handleBranch30 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 31 && naboo_privateer_tier3_handleBranch31 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 32 && naboo_privateer_tier3_handleBranch32 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 33 && naboo_privateer_tier3_handleBranch33 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 34 && naboo_privateer_tier3_handleBranch34 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 35 && naboo_privateer_tier3_handleBranch35 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 37 && naboo_privateer_tier3_handleBranch37 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 38 && naboo_privateer_tier3_handleBranch38 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 39 && naboo_privateer_tier3_handleBranch39 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 41 && naboo_privateer_tier3_handleBranch41 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 42 && naboo_privateer_tier3_handleBranch42 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 44 && naboo_privateer_tier3_handleBranch44 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 45 && naboo_privateer_tier3_handleBranch45 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 46 && naboo_privateer_tier3_handleBranch46 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 47 && naboo_privateer_tier3_handleBranch47 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 48 && naboo_privateer_tier3_handleBranch48 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 49 && naboo_privateer_tier3_handleBranch49 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 51 && naboo_privateer_tier3_handleBranch51 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 52 && naboo_privateer_tier3_handleBranch52 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 53 && naboo_privateer_tier3_handleBranch53 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 54 && naboo_privateer_tier3_handleBranch54 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 55 && naboo_privateer_tier3_handleBranch55 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 57 && naboo_privateer_tier3_handleBranch57 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 58 && naboo_privateer_tier3_handleBranch58 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 59 && naboo_privateer_tier3_handleBranch59 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 60 && naboo_privateer_tier3_handleBranch60 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 61 && naboo_privateer_tier3_handleBranch61 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 63 && naboo_privateer_tier3_handleBranch63 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 64 && naboo_privateer_tier3_handleBranch64 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 65 && naboo_privateer_tier3_handleBranch65 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 66 && naboo_privateer_tier3_handleBranch66 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 67 && naboo_privateer_tier3_handleBranch67 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 68 && naboo_privateer_tier3_handleBranch68 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 69 && naboo_privateer_tier3_handleBranch69 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 70 && naboo_privateer_tier3_handleBranch70 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 72 && naboo_privateer_tier3_handleBranch72 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 73 && naboo_privateer_tier3_handleBranch73 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 74 && naboo_privateer_tier3_handleBranch74 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 75 && naboo_privateer_tier3_handleBranch75 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 76 && naboo_privateer_tier3_handleBranch76 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 78 && naboo_privateer_tier3_handleBranch78 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 79 && naboo_privateer_tier3_handleBranch79 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 80 && naboo_privateer_tier3_handleBranch80 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 81 && naboo_privateer_tier3_handleBranch81 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 82 && naboo_privateer_tier3_handleBranch82 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 83 && naboo_privateer_tier3_handleBranch83 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 84 && naboo_privateer_tier3_handleBranch84 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 85 && naboo_privateer_tier3_handleBranch85 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 86 && naboo_privateer_tier3_handleBranch86 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 87 && naboo_privateer_tier3_handleBranch87 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 89 && naboo_privateer_tier3_handleBranch89 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 90 && naboo_privateer_tier3_handleBranch90 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 91 && naboo_privateer_tier3_handleBranch91 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 92 && naboo_privateer_tier3_handleBranch92 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 93 && naboo_privateer_tier3_handleBranch93 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 94 && naboo_privateer_tier3_handleBranch94 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 95 && naboo_privateer_tier3_handleBranch95 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 96 && naboo_privateer_tier3_handleBranch96 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 98 && naboo_privateer_tier3_handleBranch98 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 99 && naboo_privateer_tier3_handleBranch99 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 100 && naboo_privateer_tier3_handleBranch100 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 101 && naboo_privateer_tier3_handleBranch101 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 102 && naboo_privateer_tier3_handleBranch102 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 104 && naboo_privateer_tier3_handleBranch104 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 105 && naboo_privateer_tier3_handleBranch105 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 106 && naboo_privateer_tier3_handleBranch106 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 107 && naboo_privateer_tier3_handleBranch107 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 108 && naboo_privateer_tier3_handleBranch108 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 109 && naboo_privateer_tier3_handleBranch109 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 110 && naboo_privateer_tier3_handleBranch110 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 111 && naboo_privateer_tier3_handleBranch111 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 112 && naboo_privateer_tier3_handleBranch112 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 113 && naboo_privateer_tier3_handleBranch113 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 115 && naboo_privateer_tier3_handleBranch115 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 116 && naboo_privateer_tier3_handleBranch116 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 117 && naboo_privateer_tier3_handleBranch117 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 118 && naboo_privateer_tier3_handleBranch118 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 119 && naboo_privateer_tier3_handleBranch119 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 120 && naboo_privateer_tier3_handleBranch120 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 121 && naboo_privateer_tier3_handleBranch121 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 122 && naboo_privateer_tier3_handleBranch122 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 124 && naboo_privateer_tier3_handleBranch124 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 125 && naboo_privateer_tier3_handleBranch125 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 126 && naboo_privateer_tier3_handleBranch126 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 127 && naboo_privateer_tier3_handleBranch127 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 128 && naboo_privateer_tier3_handleBranch128 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 129 && naboo_privateer_tier3_handleBranch129 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 131 && naboo_privateer_tier3_handleBranch131 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 132 && naboo_privateer_tier3_handleBranch132 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 133 && naboo_privateer_tier3_handleBranch133 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 134 && naboo_privateer_tier3_handleBranch134 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 135 && naboo_privateer_tier3_handleBranch135 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 136 && naboo_privateer_tier3_handleBranch136 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 137 && naboo_privateer_tier3_handleBranch137 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 138 && naboo_privateer_tier3_handleBranch138 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 140 && naboo_privateer_tier3_handleBranch140 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 141 && naboo_privateer_tier3_handleBranch141 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 142 && naboo_privateer_tier3_handleBranch142 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 143 && naboo_privateer_tier3_handleBranch143 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 145 && naboo_privateer_tier3_handleBranch145 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 146 && naboo_privateer_tier3_handleBranch146 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 147 && naboo_privateer_tier3_handleBranch147 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 148 && naboo_privateer_tier3_handleBranch148 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 150 && naboo_privateer_tier3_handleBranch150 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 151 && naboo_privateer_tier3_handleBranch151 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 152 && naboo_privateer_tier3_handleBranch152 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
chat.chat (npc, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
|
|
|
|
utils.removeScriptVar (player, "conversation.naboo_privateer_tier3.branchId");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
|