mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-01 01:15:59 -04:00
3789 lines
98 KiB
Plaintext
3789 lines
98 KiB
Plaintext
// ======================================================================
|
|
//
|
|
// ep3_rodian_fop.script
|
|
// Copyright 2004, Sony Online Entertainment
|
|
// All Rights Reserved.
|
|
//
|
|
// Created with SwgConversationEditor 1.28 - DO NOT EDIT THIS AUTO-GENERATED FILE!
|
|
//
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Library Includes
|
|
// ======================================================================
|
|
|
|
include library.ai_lib;
|
|
include library.chat;
|
|
include library.utils;
|
|
|
|
// ======================================================================
|
|
// Script Constants
|
|
// ======================================================================
|
|
|
|
string c_stringFile = "conversation/ep3_rodian_fop";
|
|
|
|
// ======================================================================
|
|
// Script Conditions
|
|
// ======================================================================
|
|
|
|
boolean ep3_rodian_fop_condition__defaultCondition (obj_id player, obj_id npc)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean ep3_rodian_fop_condition_hasFinishedQuest1 (obj_id player, obj_id npc)
|
|
{
|
|
int questId = questGetQuestId("quest/ep3_rodian_fop_1");
|
|
return questIsQuestComplete(questId, player);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean ep3_rodian_fop_condition_hasFinishedQuest2 (obj_id player, obj_id npc)
|
|
{
|
|
int questId = questGetQuestId("quest/ep3_rodian_fop_2");
|
|
return questIsQuestComplete(questId, player);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean ep3_rodian_fop_condition_hasFinishedQuest3 (obj_id player, obj_id npc)
|
|
{
|
|
int questId = questGetQuestId("quest/ep3_rodian_fop_3");
|
|
return questIsQuestComplete(questId, player);
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Actions
|
|
// ======================================================================
|
|
|
|
void ep3_rodian_fop_action_giveQuestOne (obj_id player, obj_id npc)
|
|
{
|
|
// Apply the first quest to the player here
|
|
int questId = questGetQuestId("quest/ep3_rodian_fop_1");
|
|
questActivateQuest(questId, player, npc);
|
|
playClientEffectLoc(player, "clienteffect/voc_npc_cnv_rodian_medium.cef", getLocation(npc), 0f);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void ep3_rodian_fop_action_giveQuestTwo (obj_id player, obj_id npc)
|
|
{
|
|
// Apply the second quest to the player here.
|
|
int questId = questGetQuestId("quest/ep3_rodian_fop_2");
|
|
questActivateQuest(questId, player, npc);
|
|
playClientEffectLoc(player, "clienteffect/voc_npc_cnv_rodian_medium.cef", getLocation(npc), 0f);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void ep3_rodian_fop_action_clearQuests (obj_id player, obj_id npc)
|
|
{
|
|
// REMOVE QUEST using the questClearQuest command
|
|
int questId1 = questGetQuestId("quest/ep3_rodian_fop_1");
|
|
int questId2 = questGetQuestId("quest/ep3_rodian_fop_2");
|
|
int questId3 = questGetQuestId("quest/ep3_rodian_fop_3");
|
|
questClearQuest(questId1, player);
|
|
questClearQuest(questId2, player);
|
|
questClearQuest(questId3, player);
|
|
playClientEffectLoc(player, "clienteffect/voc_npc_cnv_rodian_short.cef", getLocation(npc), 0f);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void ep3_rodian_fop_action_speak_SHORT (obj_id player, obj_id npc)
|
|
{
|
|
playClientEffectLoc(player, "clienteffect/voc_npc_cnv_rodian_short.cef", getLocation(npc), 0f);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void ep3_rodian_fop_action_speak_MEDIUM (obj_id player, obj_id npc)
|
|
{
|
|
playClientEffectLoc(player, "clienteffect/voc_npc_cnv_rodian_medium.cef", getLocation(npc), 0f);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void ep3_rodian_fop_action_speak_LONG (obj_id player, obj_id npc)
|
|
{
|
|
playClientEffectLoc(player, "clienteffect/voc_npc_cnv_rodian_long.cef", getLocation(npc), 0f);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void ep3_rodian_fop_action_giveQuestThree (obj_id player, obj_id npc)
|
|
{
|
|
int questId = questGetQuestId("quest/ep3_rodian_fop_3");
|
|
questActivateQuest(questId, player, npc);
|
|
playClientEffectLoc(player, "clienteffect/voc_npc_cnv_rodian_short.cef", getLocation(npc), 0f);
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script %TO Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Script %DI Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Script %DF Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// handleBranch<n> Functions
|
|
// ======================================================================
|
|
|
|
int ep3_rodian_fop_handleBranch1 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: DEFAULT CONVO. Which quest in my series do you want to talk about?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Destroy Rills to prove myself.
|
|
if (response == "s_ce7e4cd9")
|
|
{
|
|
doAnimationAction (player, "pound_fist_palm");
|
|
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
ep3_rodian_fop_action_speak_LONG (player, npc);
|
|
|
|
//-- NPC: You know these Rills are really a pain in my ass. They said something to me. I want you to get revenge. Sound good?
|
|
string_id message = new string_id (c_stringFile, "s_1af1928c");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: (Add Han Solo Response)
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_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_a9504589");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 2);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Destroy Slavers to retrieve paystubs.
|
|
if (response == "s_4b16bcf")
|
|
{
|
|
doAnimationAction (player, "pound_fist_chest");
|
|
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shrug_hands");
|
|
|
|
//-- NPC: Did you hear what happened to your paystubs?
|
|
string_id message = new string_id (c_stringFile, "s_9d3e4637");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I hear things, yes.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I don't care.
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_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_8aaad6");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_7c997a0f");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 6);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Test links and labels
|
|
if (response == "s_faa659eb")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shrug_shoulders");
|
|
|
|
//-- NPC: What sort of stuff do you want to talk about?
|
|
string_id message = new string_id (c_stringFile, "s_21fea0de");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Kashyyyk.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: What about these slavers?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Ever been off this planet?
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Nothing. Let's get back to the quests.
|
|
boolean hasResponse3 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5c203304");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_17afa2c1");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_239d72a7");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6a4b471a");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 10);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Clear my quests.
|
|
if (response == "s_24d697f1")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "manipulate_medium");
|
|
|
|
ep3_rodian_fop_action_clearQuests (player, npc);
|
|
|
|
//-- NPC: All cleared.
|
|
string_id message = new string_id (c_stringFile, "s_1f2267dd");
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_rodian_fop_handleBranch2 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You know these Rills are really a pain in my ass. They said something to me. I want you to get revenge. Sound good?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: (Add Han Solo Response)
|
|
if (response == "s_a9504589")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "gesticulate_wildly");
|
|
|
|
ep3_rodian_fop_action_speak_MEDIUM (player, npc);
|
|
|
|
//-- NPC: Kid? Who you calling kid? Look there's fifty bucks in this for you. You want it or not?
|
|
string_id message = new string_id (c_stringFile, "s_b4a2635a");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'll take it!
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No thanks.
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_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_e8b238c6");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d6695e83");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_rodian_fop_handleBranch3 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Kid? Who you calling kid? Look there's fifty bucks in this for you. You want it or not?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'll take it!
|
|
if (response == "s_e8b238c6")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "goodbye");
|
|
|
|
ep3_rodian_fop_action_giveQuestOne (player, npc);
|
|
|
|
//-- NPC: Sounds great! Come back when you're finished.
|
|
string_id message = new string_id (c_stringFile, "s_98f012fb");
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No thanks.
|
|
if (response == "s_d6695e83")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "wave_on_dismissing");
|
|
|
|
ep3_rodian_fop_action_speak_SHORT (player, npc);
|
|
|
|
//-- NPC: Then fine.
|
|
string_id message = new string_id (c_stringFile, "s_a5f02cb6");
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_rodian_fop_handleBranch6 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Did you hear what happened to your paystubs?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I hear things, yes.
|
|
if (response == "s_8aaad6")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "pound_fist_palm");
|
|
|
|
//-- NPC: Those Trandoshan Slavers took em! What say you teach them a lesson in... dying?
|
|
string_id message = new string_id (c_stringFile, "s_5788ca33");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: You got it. How much?
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_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_638a7a62");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 7);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I don't care.
|
|
if (response == "s_7c997a0f")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "wave_on_dismissing");
|
|
|
|
//-- NPC: Fine!
|
|
string_id message = new string_id (c_stringFile, "s_3fa4f0ff");
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_rodian_fop_handleBranch7 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Those Trandoshan Slavers took em! What say you teach them a lesson in... dying?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You got it. How much?
|
|
if (response == "s_638a7a62")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "goodbye");
|
|
|
|
ep3_rodian_fop_action_giveQuestTwo (player, npc);
|
|
|
|
//-- NPC: I'll pay you a thousand. Get back three paystubs.
|
|
string_id message = new string_id (c_stringFile, "s_add1e6bf");
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_rodian_fop_handleBranch10 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What sort of stuff do you want to talk about?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me about Kashyyyk.
|
|
if (response == "s_5c203304")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Not much to tell. What do you want to know?
|
|
string_id message = new string_id (c_stringFile, "s_350e80d0");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Know any good Wookiees?
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: The Empire is here, eh?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Forget it.
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_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_8d19943f");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_8aaea660");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ca932c28");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 11);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What about these slavers?
|
|
if (response == "s_17afa2c1")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Yeah. What about them! They really do a lot of slaving. Figure it's big money?
|
|
string_id message = new string_id (c_stringFile, "s_1f9504f1");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Kashyyyk.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: What about these slavers?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Ever been off this planet?
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Nothing. Let's get back to the quests.
|
|
boolean hasResponse3 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5c203304");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_17afa2c1");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_239d72a7");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6a4b471a");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 10);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Ever been off this planet?
|
|
if (response == "s_239d72a7")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Yes. Are you crazy? I'm from Rodia. You see the Rodian all over me? Get out of here!
|
|
string_id message = new string_id (c_stringFile, "s_31d5e344");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Kashyyyk.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: What about these slavers?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Ever been off this planet?
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Nothing. Let's get back to the quests.
|
|
boolean hasResponse3 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5c203304");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_17afa2c1");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_239d72a7");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6a4b471a");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 10);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Nothing. Let's get back to the quests.
|
|
if (response == "s_6a4b471a")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Sounds good. Which of my quests do you want to take?
|
|
string_id message = new string_id (c_stringFile, "s_59a3429f");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Destroy Rills to prove myself.
|
|
boolean hasResponse0 = false;
|
|
if (!ep3_rodian_fop_condition_hasFinishedQuest1 (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Destroy Slavers to retrieve paystubs.
|
|
boolean hasResponse1 = false;
|
|
if (!ep3_rodian_fop_condition_hasFinishedQuest2 (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Test links and labels
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Clear my quests.
|
|
boolean hasResponse3 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ce7e4cd9");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_4b16bcf");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_faa659eb");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_24d697f1");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 1);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_rodian_fop_handleBranch11 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Not much to tell. What do you want to know?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Know any good Wookiees?
|
|
if (response == "s_8d19943f")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: There was a guy name of Chewbacca - but he left.
|
|
string_id message = new string_id (c_stringFile, "s_97a6b800");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Know any good Wookiees?
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: The Empire is here, eh?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Forget it.
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_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_8d19943f");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_8aaea660");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ca932c28");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 11);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: The Empire is here, eh?
|
|
if (response == "s_8aaea660")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Don't get me started.
|
|
string_id message = new string_id (c_stringFile, "s_41bfc9bc");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Know any good Wookiees?
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: The Empire is here, eh?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Forget it.
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_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_8d19943f");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_8aaea660");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ca932c28");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 11);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Forget it.
|
|
if (response == "s_ca932c28")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: That's cool.
|
|
string_id message = new string_id (c_stringFile, "s_6942f23");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Kashyyyk.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: What about these slavers?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Ever been off this planet?
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Nothing. Let's get back to the quests.
|
|
boolean hasResponse3 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5c203304");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_17afa2c1");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_239d72a7");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6a4b471a");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 10);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_rodian_fop_handleBranch12 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: There was a guy name of Chewbacca - but he left.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Know any good Wookiees?
|
|
if (response == "s_8d19943f")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: There was a guy name of Chewbacca - but he left.
|
|
string_id message = new string_id (c_stringFile, "s_97a6b800");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Know any good Wookiees?
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: The Empire is here, eh?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Forget it.
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_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_8d19943f");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_8aaea660");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ca932c28");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 11);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: The Empire is here, eh?
|
|
if (response == "s_8aaea660")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Don't get me started.
|
|
string_id message = new string_id (c_stringFile, "s_41bfc9bc");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Know any good Wookiees?
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: The Empire is here, eh?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Forget it.
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_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_8d19943f");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_8aaea660");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ca932c28");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 11);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Forget it.
|
|
if (response == "s_ca932c28")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: That's cool.
|
|
string_id message = new string_id (c_stringFile, "s_6942f23");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Kashyyyk.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: What about these slavers?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Ever been off this planet?
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Nothing. Let's get back to the quests.
|
|
boolean hasResponse3 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5c203304");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_17afa2c1");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_239d72a7");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6a4b471a");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 10);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_rodian_fop_handleBranch13 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Don't get me started.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Know any good Wookiees?
|
|
if (response == "s_8d19943f")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: There was a guy name of Chewbacca - but he left.
|
|
string_id message = new string_id (c_stringFile, "s_97a6b800");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Know any good Wookiees?
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: The Empire is here, eh?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Forget it.
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_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_8d19943f");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_8aaea660");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ca932c28");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 11);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: The Empire is here, eh?
|
|
if (response == "s_8aaea660")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Don't get me started.
|
|
string_id message = new string_id (c_stringFile, "s_41bfc9bc");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Know any good Wookiees?
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: The Empire is here, eh?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Forget it.
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_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_8d19943f");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_8aaea660");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ca932c28");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 11);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Forget it.
|
|
if (response == "s_ca932c28")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: That's cool.
|
|
string_id message = new string_id (c_stringFile, "s_6942f23");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Kashyyyk.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: What about these slavers?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Ever been off this planet?
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Nothing. Let's get back to the quests.
|
|
boolean hasResponse3 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5c203304");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_17afa2c1");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_239d72a7");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6a4b471a");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 10);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_rodian_fop_handleBranch14 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: That's cool.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me about Kashyyyk.
|
|
if (response == "s_5c203304")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Not much to tell. What do you want to know?
|
|
string_id message = new string_id (c_stringFile, "s_350e80d0");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Know any good Wookiees?
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: The Empire is here, eh?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Forget it.
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_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_8d19943f");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_8aaea660");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ca932c28");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 11);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What about these slavers?
|
|
if (response == "s_17afa2c1")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Yeah. What about them! They really do a lot of slaving. Figure it's big money?
|
|
string_id message = new string_id (c_stringFile, "s_1f9504f1");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Kashyyyk.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: What about these slavers?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Ever been off this planet?
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Nothing. Let's get back to the quests.
|
|
boolean hasResponse3 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5c203304");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_17afa2c1");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_239d72a7");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6a4b471a");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 10);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Ever been off this planet?
|
|
if (response == "s_239d72a7")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Yes. Are you crazy? I'm from Rodia. You see the Rodian all over me? Get out of here!
|
|
string_id message = new string_id (c_stringFile, "s_31d5e344");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Kashyyyk.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: What about these slavers?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Ever been off this planet?
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Nothing. Let's get back to the quests.
|
|
boolean hasResponse3 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5c203304");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_17afa2c1");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_239d72a7");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6a4b471a");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 10);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Nothing. Let's get back to the quests.
|
|
if (response == "s_6a4b471a")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Sounds good. Which of my quests do you want to take?
|
|
string_id message = new string_id (c_stringFile, "s_59a3429f");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Destroy Rills to prove myself.
|
|
boolean hasResponse0 = false;
|
|
if (!ep3_rodian_fop_condition_hasFinishedQuest1 (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Destroy Slavers to retrieve paystubs.
|
|
boolean hasResponse1 = false;
|
|
if (!ep3_rodian_fop_condition_hasFinishedQuest2 (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Test links and labels
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Clear my quests.
|
|
boolean hasResponse3 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ce7e4cd9");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_4b16bcf");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_faa659eb");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_24d697f1");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 1);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_rodian_fop_handleBranch15 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yeah. What about them! They really do a lot of slaving. Figure it's big money?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me about Kashyyyk.
|
|
if (response == "s_5c203304")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Not much to tell. What do you want to know?
|
|
string_id message = new string_id (c_stringFile, "s_350e80d0");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Know any good Wookiees?
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: The Empire is here, eh?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Forget it.
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_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_8d19943f");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_8aaea660");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ca932c28");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 11);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What about these slavers?
|
|
if (response == "s_17afa2c1")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Yeah. What about them! They really do a lot of slaving. Figure it's big money?
|
|
string_id message = new string_id (c_stringFile, "s_1f9504f1");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Kashyyyk.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: What about these slavers?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Ever been off this planet?
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Nothing. Let's get back to the quests.
|
|
boolean hasResponse3 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5c203304");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_17afa2c1");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_239d72a7");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6a4b471a");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 10);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Ever been off this planet?
|
|
if (response == "s_239d72a7")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Yes. Are you crazy? I'm from Rodia. You see the Rodian all over me? Get out of here!
|
|
string_id message = new string_id (c_stringFile, "s_31d5e344");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Kashyyyk.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: What about these slavers?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Ever been off this planet?
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Nothing. Let's get back to the quests.
|
|
boolean hasResponse3 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5c203304");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_17afa2c1");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_239d72a7");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6a4b471a");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 10);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Nothing. Let's get back to the quests.
|
|
if (response == "s_6a4b471a")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Sounds good. Which of my quests do you want to take?
|
|
string_id message = new string_id (c_stringFile, "s_59a3429f");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Destroy Rills to prove myself.
|
|
boolean hasResponse0 = false;
|
|
if (!ep3_rodian_fop_condition_hasFinishedQuest1 (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Destroy Slavers to retrieve paystubs.
|
|
boolean hasResponse1 = false;
|
|
if (!ep3_rodian_fop_condition_hasFinishedQuest2 (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Test links and labels
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Clear my quests.
|
|
boolean hasResponse3 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ce7e4cd9");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_4b16bcf");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_faa659eb");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_24d697f1");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 1);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_rodian_fop_handleBranch16 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes. Are you crazy? I'm from Rodia. You see the Rodian all over me? Get out of here!
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tell me about Kashyyyk.
|
|
if (response == "s_5c203304")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Not much to tell. What do you want to know?
|
|
string_id message = new string_id (c_stringFile, "s_350e80d0");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Know any good Wookiees?
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: The Empire is here, eh?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Forget it.
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_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_8d19943f");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_8aaea660");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ca932c28");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 11);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What about these slavers?
|
|
if (response == "s_17afa2c1")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Yeah. What about them! They really do a lot of slaving. Figure it's big money?
|
|
string_id message = new string_id (c_stringFile, "s_1f9504f1");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Kashyyyk.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: What about these slavers?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Ever been off this planet?
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Nothing. Let's get back to the quests.
|
|
boolean hasResponse3 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5c203304");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_17afa2c1");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_239d72a7");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6a4b471a");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 10);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Ever been off this planet?
|
|
if (response == "s_239d72a7")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Yes. Are you crazy? I'm from Rodia. You see the Rodian all over me? Get out of here!
|
|
string_id message = new string_id (c_stringFile, "s_31d5e344");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Kashyyyk.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: What about these slavers?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Ever been off this planet?
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Nothing. Let's get back to the quests.
|
|
boolean hasResponse3 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5c203304");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_17afa2c1");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_239d72a7");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6a4b471a");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 10);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Nothing. Let's get back to the quests.
|
|
if (response == "s_6a4b471a")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Sounds good. Which of my quests do you want to take?
|
|
string_id message = new string_id (c_stringFile, "s_59a3429f");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Destroy Rills to prove myself.
|
|
boolean hasResponse0 = false;
|
|
if (!ep3_rodian_fop_condition_hasFinishedQuest1 (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Destroy Slavers to retrieve paystubs.
|
|
boolean hasResponse1 = false;
|
|
if (!ep3_rodian_fop_condition_hasFinishedQuest2 (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Test links and labels
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Clear my quests.
|
|
boolean hasResponse3 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ce7e4cd9");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_4b16bcf");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_faa659eb");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_24d697f1");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 1);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_rodian_fop_handleBranch17 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Sounds good. Which of my quests do you want to take?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Destroy Rills to prove myself.
|
|
if (response == "s_ce7e4cd9")
|
|
{
|
|
doAnimationAction (player, "pound_fist_palm");
|
|
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
ep3_rodian_fop_action_speak_LONG (player, npc);
|
|
|
|
//-- NPC: You know these Rills are really a pain in my ass. They said something to me. I want you to get revenge. Sound good?
|
|
string_id message = new string_id (c_stringFile, "s_1af1928c");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: (Add Han Solo Response)
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_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_a9504589");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 2);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Destroy Slavers to retrieve paystubs.
|
|
if (response == "s_4b16bcf")
|
|
{
|
|
doAnimationAction (player, "pound_fist_chest");
|
|
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shrug_hands");
|
|
|
|
//-- NPC: Did you hear what happened to your paystubs?
|
|
string_id message = new string_id (c_stringFile, "s_9d3e4637");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I hear things, yes.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I don't care.
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_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_8aaad6");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_7c997a0f");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 6);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Test links and labels
|
|
if (response == "s_faa659eb")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "shrug_shoulders");
|
|
|
|
//-- NPC: What sort of stuff do you want to talk about?
|
|
string_id message = new string_id (c_stringFile, "s_21fea0de");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Tell me about Kashyyyk.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: What about these slavers?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Ever been off this planet?
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Nothing. Let's get back to the quests.
|
|
boolean hasResponse3 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_5c203304");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_17afa2c1");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_239d72a7");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6a4b471a");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 10);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Clear my quests.
|
|
if (response == "s_24d697f1")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "manipulate_medium");
|
|
|
|
ep3_rodian_fop_action_clearQuests (player, npc);
|
|
|
|
//-- NPC: All cleared.
|
|
string_id message = new string_id (c_stringFile, "s_1f2267dd");
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_rodian_fop_handleBranch19 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Salutations, poor traveler. Are you here to take part in the hunt?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes I am.
|
|
if (response == "s_d335136f")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "point_forward");
|
|
|
|
ep3_rodian_fop_action_speak_LONG (player, npc);
|
|
|
|
//-- NPC: Then it is a lucky day for you! We have an opening at the lowest level of the hunt. If you are interested, I will sign you up.
|
|
string_id message = new string_id (c_stringFile, "s_b0e55a4a");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I am interested.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No thanks.
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_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_d324732");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d6695e83");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 20);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No thanks.
|
|
if (response == "s_d6695e83")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "goodbye");
|
|
|
|
//-- NPC: In that case, farewell.
|
|
string_id message = new string_id (c_stringFile, "s_258b522b");
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_rodian_fop_handleBranch20 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Then it is a lucky day for you! We have an opening at the lowest level of the hunt. If you are interested, I will sign you up.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I am interested.
|
|
if (response == "s_d324732")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "goodbye");
|
|
|
|
ep3_rodian_fop_action_giveQuestOne (player, npc);
|
|
|
|
//-- NPC: The task is to eliminate four rill creatures. Should be simple. Many rill can be found just outside the gate. Good luck!
|
|
string_id message = new string_id (c_stringFile, "s_2fed2a17");
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No thanks.
|
|
if (response == "s_d6695e83")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "goodbye");
|
|
|
|
ep3_rodian_fop_action_speak_SHORT (player, npc);
|
|
|
|
//-- NPC: In that case, farewell.
|
|
string_id message = new string_id (c_stringFile, "s_258b522b");
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_rodian_fop_handleBranch24 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Good job with the rill, my friend. Are you ready for a greater challenge?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes I am.
|
|
if (response == "s_d335136f")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
ep3_rodian_fop_action_speak_LONG (player, npc);
|
|
|
|
//-- NPC: Several Trandoshan slavers have invaded our camp. We suspect that they have stolen our pay vouchers. I need you to make things right.
|
|
string_id message = new string_id (c_stringFile, "s_2551a79");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Sounds good.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_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_5e2a2bb1");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 25);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No thanks.
|
|
if (response == "s_d6695e83")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "goodbye");
|
|
|
|
ep3_rodian_fop_action_speak_SHORT (player, npc);
|
|
|
|
//-- NPC: In that case, farewell.
|
|
string_id message = new string_id (c_stringFile, "s_258b522b");
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_rodian_fop_handleBranch25 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Several Trandoshan slavers have invaded our camp. We suspect that they have stolen our pay vouchers. I need you to make things right.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Sounds good.
|
|
if (response == "s_5e2a2bb1")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "goodbye");
|
|
|
|
ep3_rodian_fop_action_giveQuestTwo (player, npc);
|
|
|
|
//-- NPC: Excellent! Do battle with the nearby Trandoshan slavers. Recover at least three pay vouchers and return to me.
|
|
string_id message = new string_id (c_stringFile, "s_6488c3cb");
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_rodian_fop_handleBranch28 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Thank you for recovering our paystubs! Seems those Trandoshans didn't want to give them up!
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I didn't give them a choice.
|
|
if (response == "s_74505020")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "rub_chin_thoughtful");
|
|
|
|
ep3_rodian_fop_action_speak_SHORT (player, npc);
|
|
|
|
//-- NPC: Good job! Say - would you be interested in running one more errand for me?
|
|
string_id message = new string_id (c_stringFile, "s_5a51ce2b");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Sure. Why not?
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_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_81fdc173");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 29);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_rodian_fop_handleBranch29 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Good job! Say - would you be interested in running one more errand for me?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Sure. Why not?
|
|
if (response == "s_81fdc173")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
ep3_rodian_fop_action_speak_LONG (player, npc);
|
|
|
|
//-- NPC: One of my old business associates... a wookiee... has gone missing. I am concerned that he was picked up by the Trandoshans. Would you be kind enough to check out the Trando's prison area and report back to me?
|
|
string_id message = new string_id (c_stringFile, "s_2962225f");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: No problem.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_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_c261cfae");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 30);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_rodian_fop_handleBranch30 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: One of my old business associates... a wookiee... has gone missing. I am concerned that he was picked up by the Trandoshans. Would you be kind enough to check out the Trando's prison area and report back to me?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No problem.
|
|
if (response == "s_c261cfae")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "pound_fist_palm");
|
|
|
|
ep3_rodian_fop_action_giveQuestThree (player, npc);
|
|
|
|
//-- NPC: Excellent! You'll find the Trando's prison yard just south of here.
|
|
string_id message = new string_id (c_stringFile, "s_bdf6c22c");
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_rodian_fop_handleBranch32 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Ah yes! You have completed all three of the quests that I have to assign. Would you like them cleared so we can do this again?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Clear my quests.
|
|
if (response == "s_24d697f1")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "manipulate_medium");
|
|
|
|
ep3_rodian_fop_action_clearQuests (player, npc);
|
|
|
|
//-- NPC: There you go! All cleared up, now.
|
|
string_id message = new string_id (c_stringFile, "s_da6e65ae");
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
// ======================================================================
|
|
// User Script Triggers
|
|
// ======================================================================
|
|
|
|
trigger OnInitialize ()
|
|
{
|
|
if ((!isMob (self)) || (isPlayer (self)))
|
|
detachScript(self, "conversation.ep3_rodian_fop");
|
|
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
setCondition (self, CONDITION_SPACE_INTERESTING);
|
|
setInvulnerable (self, true);
|
|
setName (self, "Questor");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnAttach ()
|
|
{
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
setCondition (self, CONDITION_SPACE_INTERESTING);
|
|
setInvulnerable (self, true);
|
|
setName (self, "Questor");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnObjectMenuRequest (obj_id player, menu_info menuInfo)
|
|
{
|
|
int menu = menuInfo.addRootMenu (menu_info_types.CONVERSE_START, null);
|
|
menu_info_data menuInfoData = menuInfo.getMenuItemById (menu);
|
|
menuInfoData.setServerNotify (false);
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnIncapacitated (obj_id killer)
|
|
{
|
|
clearCondition (self, CONDITION_CONVERSABLE);
|
|
detachScript (self, "conversation.ep3_rodian_fop");
|
|
|
|
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 (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "greet");
|
|
|
|
ep3_rodian_fop_action_speak_SHORT (player, npc);
|
|
|
|
//-- NPC: DEFAULT CONVO. Which quest in my series do you want to talk about?
|
|
string_id message = new string_id (c_stringFile, "s_c8fc6f31");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Destroy Rills to prove myself.
|
|
boolean hasResponse0 = false;
|
|
if (!ep3_rodian_fop_condition_hasFinishedQuest1 (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Destroy Slavers to retrieve paystubs.
|
|
boolean hasResponse1 = false;
|
|
if (!ep3_rodian_fop_condition_hasFinishedQuest2 (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Test links and labels
|
|
boolean hasResponse2 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse2 = true;
|
|
}
|
|
|
|
//-- PLAYER: Clear my quests.
|
|
boolean hasResponse3 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse3 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_ce7e4cd9");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_4b16bcf");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_faa659eb");
|
|
|
|
if (hasResponse3)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_24d697f1");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 1);
|
|
|
|
npcStartConversation (player, npc, "ep3_rodian_fop", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!ep3_rodian_fop_condition_hasFinishedQuest1 (player, npc))
|
|
{
|
|
doAnimationAction (npc, "greet");
|
|
|
|
ep3_rodian_fop_action_speak_SHORT (player, npc);
|
|
|
|
//-- NPC: Salutations, poor traveler. Are you here to take part in the hunt?
|
|
string_id message = new string_id (c_stringFile, "s_d628eb2d");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes I am.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No thanks.
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_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_d335136f");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d6695e83");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 19);
|
|
|
|
npcStartConversation (player, npc, "ep3_rodian_fop", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!ep3_rodian_fop_condition_hasFinishedQuest2 (player, npc))
|
|
{
|
|
ep3_rodian_fop_action_speak_SHORT (player, npc);
|
|
|
|
//-- NPC: Good job with the rill, my friend. Are you ready for a greater challenge?
|
|
string_id message = new string_id (c_stringFile, "s_affc3808");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes I am.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No thanks.
|
|
boolean hasResponse1 = false;
|
|
if (ep3_rodian_fop_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_d335136f");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d6695e83");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 24);
|
|
|
|
npcStartConversation (player, npc, "ep3_rodian_fop", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (!ep3_rodian_fop_condition_hasFinishedQuest3 (player, npc))
|
|
{
|
|
doAnimationAction (npc, "bow");
|
|
|
|
ep3_rodian_fop_action_speak_MEDIUM (player, npc);
|
|
|
|
//-- NPC: Thank you for recovering our paystubs! Seems those Trandoshans didn't want to give them up!
|
|
string_id message = new string_id (c_stringFile, "s_f3acc17c");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I didn't give them a choice.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_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_74505020");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 28);
|
|
|
|
npcStartConversation (player, npc, "ep3_rodian_fop", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (ep3_rodian_fop_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "bow");
|
|
|
|
ep3_rodian_fop_action_speak_MEDIUM (player, npc);
|
|
|
|
//-- NPC: Ah yes! You have completed all three of the quests that I have to assign. Would you like them cleared so we can do this again?
|
|
string_id message = new string_id (c_stringFile, "s_ef75f1bd");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Clear my quests.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_rodian_fop_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_24d697f1");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_rodian_fop.branchId", 32);
|
|
|
|
npcStartConversation (player, npc, "ep3_rodian_fop", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (npc, "Error: All conditions for OnStartNpcConversation were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
trigger OnNpcConversationResponse (string conversationId, obj_id player, string_id response)
|
|
{
|
|
if (conversationId != "ep3_rodian_fop")
|
|
return SCRIPT_CONTINUE;
|
|
|
|
obj_id npc = self;
|
|
|
|
int branchId = utils.getIntScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
if (branchId == 1 && ep3_rodian_fop_handleBranch1 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 2 && ep3_rodian_fop_handleBranch2 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 3 && ep3_rodian_fop_handleBranch3 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 6 && ep3_rodian_fop_handleBranch6 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 7 && ep3_rodian_fop_handleBranch7 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 10 && ep3_rodian_fop_handleBranch10 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 11 && ep3_rodian_fop_handleBranch11 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 12 && ep3_rodian_fop_handleBranch12 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 13 && ep3_rodian_fop_handleBranch13 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 14 && ep3_rodian_fop_handleBranch14 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 15 && ep3_rodian_fop_handleBranch15 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 16 && ep3_rodian_fop_handleBranch16 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 17 && ep3_rodian_fop_handleBranch17 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 19 && ep3_rodian_fop_handleBranch19 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 20 && ep3_rodian_fop_handleBranch20 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 24 && ep3_rodian_fop_handleBranch24 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 25 && ep3_rodian_fop_handleBranch25 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 28 && ep3_rodian_fop_handleBranch28 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 29 && ep3_rodian_fop_handleBranch29 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 30 && ep3_rodian_fop_handleBranch30 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 32 && ep3_rodian_fop_handleBranch32 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
chat.chat (npc, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
|
|
|
|
utils.removeScriptVar (player, "conversation.ep3_rodian_fop.branchId");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
|