mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
987 lines
33 KiB
Plaintext
987 lines
33 KiB
Plaintext
// ======================================================================
|
|
//
|
|
// coa3wvacca.script
|
|
//
|
|
//
|
|
//
|
|
// DO NOT EDIT THIS AUTO-GENERATED FILE. PLEASE USE THE CONVERATION EDITOR!
|
|
//
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Library Includes
|
|
// ======================================================================
|
|
|
|
include library.ai_lib;
|
|
include library.badge;
|
|
include library.chat;
|
|
|
|
// ======================================================================
|
|
// Script Constants
|
|
// ======================================================================
|
|
|
|
string c_stringFile = "conversation/coa3wvacca";
|
|
|
|
// ======================================================================
|
|
// Script Conditions
|
|
// ======================================================================
|
|
|
|
boolean coa3wvacca_condition__defaultCondition (obj_id player, obj_id npc)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean coa3wvacca_condition_hasCOA2Badge (obj_id player, obj_id npc)
|
|
{
|
|
// Check if the player has badge 40 from completing Act 2 and coa3.convTracker < -400;
|
|
return (getIntObjVar (player, "coa3.convTracker") < -400 && badge.hasBadge(player, "event_coa2_rebel"));
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean coa3wvacca_condition_notReadyToTalk (obj_id player, obj_id npc)
|
|
{
|
|
return (getIntObjVar (player, "coa3.convTracker") > -400);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean coa3wvacca_condition_isReadyToTalk (obj_id player, obj_id npc)
|
|
{
|
|
return (getIntObjVar (player, "coa3.convTracker") < -400);
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Actions
|
|
// ======================================================================
|
|
|
|
void coa3wvacca_action__defaultAction (obj_id player, obj_id npc)
|
|
{
|
|
}
|
|
|
|
// ======================================================================
|
|
// User Script Triggers
|
|
// ======================================================================
|
|
|
|
trigger OnInitialize ()
|
|
{
|
|
if ((!isMob (self)) || (isPlayer (self)))
|
|
detachScript(self, "npc.conversation.coa3wvacca");
|
|
|
|
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.coa3wvacca");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Triggers
|
|
// ======================================================================
|
|
|
|
trigger OnStartNpcConversation (obj_id player)
|
|
{
|
|
if (ai_lib.isInCombat (self) || ai_lib.isInCombat (player))
|
|
return SCRIPT_OVERRIDE;
|
|
|
|
//-- [NOTE] The COA3ConvTracker is greater then -400 so the player is not yet at this part of the mission.
|
|
if (coa3wvacca_condition_notReadyToTalk (player, self))
|
|
{
|
|
//-- NPC: Oh. Hello. I'm sorry, but they really don't want me to talk to anyone not associated with the project. You understand.
|
|
string_id message = new string_id (c_stringFile, "s_8e697de4");
|
|
chat.chat (self, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] The COA3ConvTracker is less then -400 and the player has the COA2 Rebel Badge.
|
|
if (coa3wvacca_condition_hasCOA2Badge (player, self))
|
|
{
|
|
//-- NPC: You're the one who sent me the message from the Princess. I really have to thank you. I was deluding myself for far too long about the Empire. I'm glad I was able to give Dead Eye to the Rebellion .
|
|
string_id message = new string_id (c_stringFile, "s_913b747e");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What's the status of Dead Eye?
|
|
boolean hasResponse0 = false;
|
|
if (coa3wvacca_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Why did you choose the Rebellion?
|
|
boolean hasResponse1 = false;
|
|
if (coa3wvacca_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_11d4164");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bbc96393");
|
|
|
|
setObjVar (player, "conversation.coa3wvacca.branchId", 2);
|
|
|
|
npcStartConversation (player, self, "coa3wvacca", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (self, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE] The objvar is less then -400 so Vacca will talk to them.
|
|
if (coa3wvacca_condition_isReadyToTalk (player, self))
|
|
{
|
|
//-- NPC: Ah, you're the one who is helping us fight the Empire for Dead Eye.
|
|
string_id message = new string_id (c_stringFile, "s_be18866d");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What's the status of Dead Eye?
|
|
boolean hasResponse0 = false;
|
|
if (coa3wvacca_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Why did you choose the Rebellion?
|
|
boolean hasResponse1 = false;
|
|
if (coa3wvacca_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_11d4164");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_bbc96393");
|
|
|
|
setObjVar (player, "conversation.coa3wvacca.branchId", 11);
|
|
|
|
npcStartConversation (player, self, "coa3wvacca", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (self, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (coa3wvacca_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Oh. Hello. I'm sorry, but they really don't want me to talk to anyone not associated with the project. You understand.
|
|
string_id message = new string_id (c_stringFile, "s_8e697de4");
|
|
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 != "coa3wvacca")
|
|
return SCRIPT_CONTINUE;
|
|
|
|
int branchId = getIntObjVar (player, "conversation.coa3wvacca.branchId");
|
|
|
|
//-- [BRANCH NOTE] The COA3ConvTracker is less then -400 and the player has the COA2 Rebel Badge.
|
|
//-- NPC: You're the one who sent me the message from the Princess. I really have to thank you. I was deluding myself for far too long about the Empire. I'm glad I was able to give Dead Eye to the Rebellion .
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What's the status of Dead Eye?
|
|
if (branchId == 2 && response == "s_11d4164")
|
|
{
|
|
//-- [NOTE]
|
|
if (coa3wvacca_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Right now we have some stores of Alderaanian Flora, but my home planet was the last place it grew. Once it runs out Dead Eye will be useless.
|
|
string_id message = new string_id (c_stringFile, "s_11b13f7a");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What can be done?
|
|
boolean hasResponse0 = false;
|
|
if (coa3wvacca_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_b2b7f750");
|
|
|
|
setObjVar (player, "conversation.coa3wvacca.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.coa3wvacca.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'You're the one who sent me the message from the Princess. I really have to thank you. I was deluding myself for far too long about the Empire. I'm glad I was able to give Dead Eye to the Rebellion .' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] The COA3ConvTracker is less then -400 and the player has the COA2 Rebel Badge.
|
|
//-- NPC: You're the one who sent me the message from the Princess. I really have to thank you. I was deluding myself for far too long about the Empire. I'm glad I was able to give Dead Eye to the Rebellion .
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Why did you choose the Rebellion?
|
|
if (branchId == 2 && response == "s_bbc96393")
|
|
{
|
|
//-- [NOTE]
|
|
if (coa3wvacca_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: After reading the message from Princess Leia I realized that I had blinded myself to the evils of the Empire. After further communications I had my eyes opened to the real reason Alderaan was destroyed.
|
|
string_id message = new string_id (c_stringFile, "s_ba517076");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What was the reason?
|
|
boolean hasResponse0 = false;
|
|
if (coa3wvacca_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_96405da8");
|
|
|
|
setObjVar (player, "conversation.coa3wvacca.branchId", 7);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.coa3wvacca.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'You're the one who sent me the message from the Princess. I really have to thank you. I was deluding myself for far too long about the Empire. I'm glad I was able to give Dead Eye to the Rebellion .' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Right now we have some stores of Alderaanian Flora, but my home planet was the last place it grew. Once it runs out Dead Eye will be useless.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What can be done?
|
|
if (branchId == 3 && response == "s_b2b7f750")
|
|
{
|
|
//-- [NOTE]
|
|
if (coa3wvacca_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: If we can find an alternative flora resource, we can try to make another version. We have a number of research stations scattered about a number of planets testing various samples.
|
|
string_id message = new string_id (c_stringFile, "s_d24fb27");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Why did you choose the Rebellion?
|
|
boolean hasResponse0 = false;
|
|
if (coa3wvacca_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_bbc96393");
|
|
|
|
setObjVar (player, "conversation.coa3wvacca.branchId", 4);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.coa3wvacca.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Right now we have some stores of Alderaanian Flora, but my home planet was the last place it grew. Once it runs out Dead Eye will be useless.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: If we can find an alternative flora resource, we can try to make another version. We have a number of research stations scattered about a number of planets testing various samples.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Why did you choose the Rebellion?
|
|
if (branchId == 4 && response == "s_bbc96393")
|
|
{
|
|
//-- [NOTE]
|
|
if (coa3wvacca_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: After reading the message from Princess Leia I realized that I had blinded myself to the evils of the Empire. After further communications I had my eyes opened to the real reason Alderaan was destroyed.
|
|
string_id message = new string_id (c_stringFile, "s_ba517076");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What was the reason?
|
|
boolean hasResponse0 = false;
|
|
if (coa3wvacca_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_96405da8");
|
|
|
|
setObjVar (player, "conversation.coa3wvacca.branchId", 5);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.coa3wvacca.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'If we can find an alternative flora resource, we can try to make another version. We have a number of research stations scattered about a number of planets testing various samples.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: After reading the message from Princess Leia I realized that I had blinded myself to the evils of the Empire. After further communications I had my eyes opened to the real reason Alderaan was destroyed.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What was the reason?
|
|
if (branchId == 5 && response == "s_96405da8")
|
|
{
|
|
//-- [NOTE]
|
|
if (coa3wvacca_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: It wasn't because of Rebel activity. It was a whim. A cold, heartless, whim of Grand Moff Tarkin. He wanted a demonstration of the Empire's power, so he killed an entire planet. I now know the truth, so I couldn't work for them anymore.
|
|
string_id message = new string_id (c_stringFile, "s_6d583b5");
|
|
removeObjVar (player, "conversation.coa3wvacca.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'After reading the message from Princess Leia I realized that I had blinded myself to the evils of the Empire. After further communications I had my eyes opened to the real reason Alderaan was destroyed.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: After reading the message from Princess Leia I realized that I had blinded myself to the evils of the Empire. After further communications I had my eyes opened to the real reason Alderaan was destroyed.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What was the reason?
|
|
if (branchId == 7 && response == "s_96405da8")
|
|
{
|
|
//-- [NOTE]
|
|
if (coa3wvacca_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: It wasn't because of Rebel activity. It was a whim. A cold, heartless, whim of Grand Moff Tarkin. He wanted a demonstration of the Empire's power, so he killed an entire planet. I now know the truth, so I couldn't work for them anymore.
|
|
string_id message = new string_id (c_stringFile, "s_6d583b5");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What's the status of Dead Eye?
|
|
boolean hasResponse0 = false;
|
|
if (coa3wvacca_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_11d4164");
|
|
|
|
setObjVar (player, "conversation.coa3wvacca.branchId", 8);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.coa3wvacca.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'After reading the message from Princess Leia I realized that I had blinded myself to the evils of the Empire. After further communications I had my eyes opened to the real reason Alderaan was destroyed.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: It wasn't because of Rebel activity. It was a whim. A cold, heartless, whim of Grand Moff Tarkin. He wanted a demonstration of the Empire's power, so he killed an entire planet. I now know the truth, so I couldn't work for them anymore.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What's the status of Dead Eye?
|
|
if (branchId == 8 && response == "s_11d4164")
|
|
{
|
|
//-- [NOTE]
|
|
if (coa3wvacca_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Right now we have some stores of Alderaanian Flora, but my home planet was the last place it grew. Once it runs out Dead Eye will be useless.
|
|
string_id message = new string_id (c_stringFile, "s_11b13f7a");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What can be done?
|
|
boolean hasResponse0 = false;
|
|
if (coa3wvacca_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_b2b7f750");
|
|
|
|
setObjVar (player, "conversation.coa3wvacca.branchId", 9);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.coa3wvacca.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'It wasn't because of Rebel activity. It was a whim. A cold, heartless, whim of Grand Moff Tarkin. He wanted a demonstration of the Empire's power, so he killed an entire planet. I now know the truth, so I couldn't work for them anymore.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Right now we have some stores of Alderaanian Flora, but my home planet was the last place it grew. Once it runs out Dead Eye will be useless.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What can be done?
|
|
if (branchId == 9 && response == "s_b2b7f750")
|
|
{
|
|
//-- [NOTE]
|
|
if (coa3wvacca_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: If we can find an alternative flora resource, we can try to make another version. We have a number of research stations scattered about a number of planets testing various samples.
|
|
string_id message = new string_id (c_stringFile, "s_d24fb27");
|
|
removeObjVar (player, "conversation.coa3wvacca.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Right now we have some stores of Alderaanian Flora, but my home planet was the last place it grew. Once it runs out Dead Eye will be useless.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] The objvar is less then -400 so Vacca will talk to them.
|
|
//-- NPC: Ah, you're the one who is helping us fight the Empire for Dead Eye.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What's the status of Dead Eye?
|
|
if (branchId == 11 && response == "s_11d4164")
|
|
{
|
|
//-- [NOTE]
|
|
if (coa3wvacca_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Right now we have some stores of Alderaanian Flora, but my home planet was the last place it grew. Once it runs out Dead Eye will be useless.
|
|
string_id message = new string_id (c_stringFile, "s_11b13f7a");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What can be done?
|
|
boolean hasResponse0 = false;
|
|
if (coa3wvacca_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_b2b7f750");
|
|
|
|
setObjVar (player, "conversation.coa3wvacca.branchId", 12);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.coa3wvacca.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Ah, you're the one who is helping us fight the Empire for Dead Eye.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE] The objvar is less then -400 so Vacca will talk to them.
|
|
//-- NPC: Ah, you're the one who is helping us fight the Empire for Dead Eye.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Why did you choose the Rebellion?
|
|
if (branchId == 11 && response == "s_bbc96393")
|
|
{
|
|
//-- [NOTE]
|
|
if (coa3wvacca_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: After reading the message from Princess Leia I realized that I had blinded myself to the evils of the Empire. After further communications I had my eyes opened to the real reason Alderaan was destroyed.
|
|
string_id message = new string_id (c_stringFile, "s_ba517076");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What was the reason?
|
|
boolean hasResponse0 = false;
|
|
if (coa3wvacca_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_96405da8");
|
|
|
|
setObjVar (player, "conversation.coa3wvacca.branchId", 16);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.coa3wvacca.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Ah, you're the one who is helping us fight the Empire for Dead Eye.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Right now we have some stores of Alderaanian Flora, but my home planet was the last place it grew. Once it runs out Dead Eye will be useless.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What can be done?
|
|
if (branchId == 12 && response == "s_b2b7f750")
|
|
{
|
|
//-- [NOTE]
|
|
if (coa3wvacca_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: If we can find an alternative flora resource, we can try to make another version. We have a number of research stations scattered about a number of planets testing various samples.
|
|
string_id message = new string_id (c_stringFile, "s_d24fb27");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Why did you choose the Rebellion?
|
|
boolean hasResponse0 = false;
|
|
if (coa3wvacca_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_bbc96393");
|
|
|
|
setObjVar (player, "conversation.coa3wvacca.branchId", 13);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.coa3wvacca.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Right now we have some stores of Alderaanian Flora, but my home planet was the last place it grew. Once it runs out Dead Eye will be useless.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: If we can find an alternative flora resource, we can try to make another version. We have a number of research stations scattered about a number of planets testing various samples.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Why did you choose the Rebellion?
|
|
if (branchId == 13 && response == "s_bbc96393")
|
|
{
|
|
//-- [NOTE]
|
|
if (coa3wvacca_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: After reading the message from Princess Leia I realized that I had blinded myself to the evils of the Empire. After further communications I had my eyes opened to the real reason Alderaan was destroyed.
|
|
string_id message = new string_id (c_stringFile, "s_ba517076");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What was the reason?
|
|
boolean hasResponse0 = false;
|
|
if (coa3wvacca_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_96405da8");
|
|
|
|
setObjVar (player, "conversation.coa3wvacca.branchId", 14);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.coa3wvacca.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'If we can find an alternative flora resource, we can try to make another version. We have a number of research stations scattered about a number of planets testing various samples.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: After reading the message from Princess Leia I realized that I had blinded myself to the evils of the Empire. After further communications I had my eyes opened to the real reason Alderaan was destroyed.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What was the reason?
|
|
if (branchId == 14 && response == "s_96405da8")
|
|
{
|
|
//-- [NOTE]
|
|
if (coa3wvacca_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: It wasn't because of Rebel activity. It was a whim. A cold, heartless, whim of Grand Moff Tarkin. He wanted a demonstration of the Empire's power, so he killed an entire planet. I now know the truth, so I couldn't work for them anymore.
|
|
string_id message = new string_id (c_stringFile, "s_6d583b5");
|
|
removeObjVar (player, "conversation.coa3wvacca.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'After reading the message from Princess Leia I realized that I had blinded myself to the evils of the Empire. After further communications I had my eyes opened to the real reason Alderaan was destroyed.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: After reading the message from Princess Leia I realized that I had blinded myself to the evils of the Empire. After further communications I had my eyes opened to the real reason Alderaan was destroyed.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What was the reason?
|
|
if (branchId == 16 && response == "s_96405da8")
|
|
{
|
|
//-- [NOTE]
|
|
if (coa3wvacca_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: It wasn't because of Rebel activity. It was a whim. A cold, heartless, whim of Grand Moff Tarkin. He wanted a demonstration of the Empire's power, so he killed an entire planet. I now know the truth, so I couldn't work for them anymore.
|
|
string_id message = new string_id (c_stringFile, "s_6d583b5");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What's the status of Dead Eye?
|
|
boolean hasResponse0 = false;
|
|
if (coa3wvacca_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_11d4164");
|
|
|
|
setObjVar (player, "conversation.coa3wvacca.branchId", 17);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.coa3wvacca.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'After reading the message from Princess Leia I realized that I had blinded myself to the evils of the Empire. After further communications I had my eyes opened to the real reason Alderaan was destroyed.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: It wasn't because of Rebel activity. It was a whim. A cold, heartless, whim of Grand Moff Tarkin. He wanted a demonstration of the Empire's power, so he killed an entire planet. I now know the truth, so I couldn't work for them anymore.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What's the status of Dead Eye?
|
|
if (branchId == 17 && response == "s_11d4164")
|
|
{
|
|
//-- [NOTE]
|
|
if (coa3wvacca_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Right now we have some stores of Alderaanian Flora, but my home planet was the last place it grew. Once it runs out Dead Eye will be useless.
|
|
string_id message = new string_id (c_stringFile, "s_11b13f7a");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What can be done?
|
|
boolean hasResponse0 = false;
|
|
if (coa3wvacca_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_b2b7f750");
|
|
|
|
setObjVar (player, "conversation.coa3wvacca.branchId", 18);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.coa3wvacca.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'It wasn't because of Rebel activity. It was a whim. A cold, heartless, whim of Grand Moff Tarkin. He wanted a demonstration of the Empire's power, so he killed an entire planet. I now know the truth, so I couldn't work for them anymore.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Right now we have some stores of Alderaanian Flora, but my home planet was the last place it grew. Once it runs out Dead Eye will be useless.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What can be done?
|
|
if (branchId == 18 && response == "s_b2b7f750")
|
|
{
|
|
//-- [NOTE]
|
|
if (coa3wvacca_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: If we can find an alternative flora resource, we can try to make another version. We have a number of research stations scattered about a number of planets testing various samples.
|
|
string_id message = new string_id (c_stringFile, "s_d24fb27");
|
|
removeObjVar (player, "conversation.coa3wvacca.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Right now we have some stores of Alderaanian Flora, but my home planet was the last place it grew. Once it runs out Dead Eye will be useless.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
|
|
|
|
removeObjVar (player, "conversation.coa3wvacca.branchId");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
|