mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-27 16:56:48 -04:00
721 lines
22 KiB
Plaintext
721 lines
22 KiB
Plaintext
// ======================================================================
|
|
//
|
|
// fs_village_convo7.script
|
|
//
|
|
//
|
|
//
|
|
// DO NOT EDIT THIS AUTO-GENERATED FILE. PLEASE USE THE CONVERATION EDITOR!
|
|
//
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Library Includes
|
|
// ======================================================================
|
|
|
|
include library.ai_lib;
|
|
include library.chat;
|
|
|
|
// ======================================================================
|
|
// Script Constants
|
|
// ======================================================================
|
|
|
|
string c_stringFile = "conversation/fs_village_convo7";
|
|
|
|
// ======================================================================
|
|
// Script Conditions
|
|
// ======================================================================
|
|
|
|
boolean fs_village_convo7_condition__defaultCondition (obj_id player, obj_id npc)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Actions
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Script %TO Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Script %DI Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Script %DF Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// User Script Triggers
|
|
// ======================================================================
|
|
|
|
trigger OnInitialize ()
|
|
{
|
|
if ((!isMob (self)) || (isPlayer (self)))
|
|
detachScript(self, "npc.conversation.fs_village_convo7");
|
|
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnAttach ()
|
|
{
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnObjectMenuRequest (obj_id player, menu_info menuInfo)
|
|
{
|
|
int menu = menuInfo.addRootMenu (menu_info_types.CONVERSE_START, null);
|
|
menu_info_data menuInfoData = menuInfo.getMenuItemById (menu);
|
|
menuInfoData.setServerNotify (false);
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnIncapacitated (obj_id killer)
|
|
{
|
|
clearCondition (self, CONDITION_CONVERSABLE);
|
|
detachScript (self, "npc.conversation.fs_village_convo7");
|
|
|
|
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)
|
|
{
|
|
if (ai_lib.isInCombat (self) || ai_lib.isInCombat (player))
|
|
return SCRIPT_OVERRIDE;
|
|
|
|
//-- [NOTE]
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
doAnimationAction (self, "forage");
|
|
|
|
//-- NPC: We're never going to get our planting done in time with everything else that's going on.
|
|
string_id message = new string_id (c_stringFile, "s_6cf0908b");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Planting? You people are farmers?
|
|
boolean hasResponse0 = false;
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: What has been going on?
|
|
boolean hasResponse1 = false;
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_2c9520b6");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c7fdb62e");
|
|
|
|
setObjVar (player, "conversation.fs_village_convo7.branchId", 1);
|
|
|
|
npcStartConversation (player, self, "fs_village_convo7", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (self, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnStartNpcConversation were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
trigger OnNpcConversationResponse (string conversationId, obj_id player, string_id response)
|
|
{
|
|
if (conversationId != "fs_village_convo7")
|
|
return SCRIPT_CONTINUE;
|
|
|
|
int branchId = getIntObjVar (player, "conversation.fs_village_convo7.branchId");
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: We're never going to get our planting done in time with everything else that's going on.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Planting? You people are farmers?
|
|
if (branchId == 1 && response == "s_2c9520b6")
|
|
{
|
|
//-- [NOTE]
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
doAnimationAction (self, "nod_head_once");
|
|
|
|
//-- NPC: Yes, but we'll never make the planting in time for this season now.
|
|
string_id message = new string_id (c_stringFile, "s_a9fdde5e");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: How can you grow anything in this dead brown dirt?
|
|
boolean hasResponse0 = false;
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
++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_52cf32e2");
|
|
|
|
setObjVar (player, "conversation.fs_village_convo7.branchId", 2);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.fs_village_convo7.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'We're never going to get our planting done in time with everything else that's going on.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: We're never going to get our planting done in time with everything else that's going on.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What has been going on?
|
|
if (branchId == 1 && response == "s_c7fdb62e")
|
|
{
|
|
//-- [NOTE]
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
doAnimationAction (self, "explain");
|
|
|
|
//-- NPC: We've been attacked by a group of mercenaries calling themselves the Sith Shadows.
|
|
string_id message = new string_id (c_stringFile, "s_76ef710f");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Sith? Are you serious?
|
|
boolean hasResponse0 = false;
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
++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_a232b8a1");
|
|
|
|
setObjVar (player, "conversation.fs_village_convo7.branchId", 10);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.fs_village_convo7.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'We're never going to get our planting done in time with everything else that's going on.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes, but we'll never make the planting in time for this season now.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: How can you grow anything in this dead brown dirt?
|
|
if (branchId == 2 && response == "s_52cf32e2")
|
|
{
|
|
//-- [NOTE]
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: We manage. It takes plenty of high nutrient fertilizer and quite a bit of water, but it can be done.
|
|
string_id message = new string_id (c_stringFile, "s_20f19cdd");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Why do you bother farming here?
|
|
boolean hasResponse0 = false;
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
++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_c031923");
|
|
|
|
setObjVar (player, "conversation.fs_village_convo7.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.fs_village_convo7.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes, but we'll never make the planting in time for this season now.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: We manage. It takes plenty of high nutrient fertilizer and quite a bit of water, but it can be done.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Why do you bother farming here?
|
|
if (branchId == 3 && response == "s_c031923")
|
|
{
|
|
//-- [NOTE]
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: What do you mean?
|
|
string_id message = new string_id (c_stringFile, "s_77e48d5b");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: There are other more fertile areas of Dathomir.
|
|
boolean hasResponse0 = false;
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
++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_af8eece8");
|
|
|
|
setObjVar (player, "conversation.fs_village_convo7.branchId", 4);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.fs_village_convo7.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'We manage. It takes plenty of high nutrient fertilizer and quite a bit of water, but it can be done.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What do you mean?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: There are other more fertile areas of Dathomir.
|
|
if (branchId == 4 && response == "s_af8eece8")
|
|
{
|
|
//-- [NOTE]
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
doAnimationAction (self, "explain");
|
|
|
|
//-- NPC: This was too when we arrived. Green and fertile as the eye could see. You should have seen it, as lush a land that has ever been in the galaxy.
|
|
string_id message = new string_id (c_stringFile, "s_bc23678f");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What happened?
|
|
boolean hasResponse0 = false;
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
++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_e00ac98e");
|
|
|
|
setObjVar (player, "conversation.fs_village_convo7.branchId", 5);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.fs_village_convo7.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'What do you mean?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: This was too when we arrived. Green and fertile as the eye could see. You should have seen it, as lush a land that has ever been in the galaxy.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What happened?
|
|
if (branchId == 5 && response == "s_e00ac98e")
|
|
{
|
|
//-- [NOTE]
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
doAnimationAction (self, "shrug_hands");
|
|
|
|
//-- NPC: Well we don't really know, but the Elder believes some sort climatological shift occurred and we ended up like this.
|
|
string_id message = new string_id (c_stringFile, "s_c24ab601");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: You don't sound so sure.
|
|
boolean hasResponse0 = false;
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
++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_9f2c88cd");
|
|
|
|
setObjVar (player, "conversation.fs_village_convo7.branchId", 6);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.fs_village_convo7.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'This was too when we arrived. Green and fertile as the eye could see. You should have seen it, as lush a land that has ever been in the galaxy.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Well we don't really know, but the Elder believes some sort climatological shift occurred and we ended up like this.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You don't sound so sure.
|
|
if (branchId == 6 && response == "s_9f2c88cd")
|
|
{
|
|
//-- [NOTE]
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
doAnimationAction (self, "shake_head_no");
|
|
|
|
//-- NPC: Well... No, I shouldn't speak of it.
|
|
string_id message = new string_id (c_stringFile, "s_5d7bd117");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I am not sure I can help such secretive people.
|
|
boolean hasResponse0 = false;
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
++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_1bb44cf9");
|
|
|
|
setObjVar (player, "conversation.fs_village_convo7.branchId", 7);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.fs_village_convo7.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Well we don't really know, but the Elder believes some sort climatological shift occurred and we ended up like this.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Well... No, I shouldn't speak of it.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I am not sure I can help such secretive people.
|
|
if (branchId == 7 && response == "s_1bb44cf9")
|
|
{
|
|
//-- [NOTE]
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
doAnimationAction (self, "whisper");
|
|
|
|
//-- NPC: Ok, ok. I will tell you. I think we were cursed by those evil Nightsisters. They found out we were in tune with the Force and wanted to destroy us, or at least drive us off.
|
|
string_id message = new string_id (c_stringFile, "s_bf08330a");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: You haven't left? I would find better land.
|
|
boolean hasResponse0 = false;
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
++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_76887815");
|
|
|
|
setObjVar (player, "conversation.fs_village_convo7.branchId", 8);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.fs_village_convo7.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Well... No, I shouldn't speak of it.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Ok, ok. I will tell you. I think we were cursed by those evil Nightsisters. They found out we were in tune with the Force and wanted to destroy us, or at least drive us off.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You haven't left? I would find better land.
|
|
if (branchId == 8 && response == "s_76887815")
|
|
{
|
|
//-- [NOTE]
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I don't know about the rest but I stay more because of that very reason now than anything else. I will not be intimidated by anyone...or anything.
|
|
string_id message = new string_id (c_stringFile, "s_fb0e2a0");
|
|
removeObjVar (player, "conversation.fs_village_convo7.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Ok, ok. I will tell you. I think we were cursed by those evil Nightsisters. They found out we were in tune with the Force and wanted to destroy us, or at least drive us off.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: We've been attacked by a group of mercenaries calling themselves the Sith Shadows.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Sith? Are you serious?
|
|
if (branchId == 10 && response == "s_a232b8a1")
|
|
{
|
|
//-- [NOTE]
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
doAnimationAction (self, "shake_head_no");
|
|
|
|
//-- NPC: I don't think they are really Sith, but they sure believe in the evil ideals of that race. They seem to want us all dead.
|
|
string_id message = new string_id (c_stringFile, "s_50b2b480");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Well, I am sure I can help in some way.
|
|
boolean hasResponse0 = false;
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
++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_ecdfe4b4");
|
|
|
|
setObjVar (player, "conversation.fs_village_convo7.branchId", 11);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.fs_village_convo7.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'We've been attacked by a group of mercenaries calling themselves the Sith Shadows.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I don't think they are really Sith, but they sure believe in the evil ideals of that race. They seem to want us all dead.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Well, I am sure I can help in some way.
|
|
if (branchId == 11 && response == "s_ecdfe4b4")
|
|
{
|
|
//-- [NOTE]
|
|
if (fs_village_convo7_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Go see the Village Elder near the center of the village. He can help you.
|
|
string_id message = new string_id (c_stringFile, "s_d948941a");
|
|
removeObjVar (player, "conversation.fs_village_convo7.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I don't think they are really Sith, but they sure believe in the evil ideals of that race. They seem to want us all dead.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
|
|
|
|
removeObjVar (player, "conversation.fs_village_convo7.branchId");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
|