Files
dsrc/sku.0/sys.server/compiled/game/script/conversation/wookiee_sidequest.script
T
2013-09-10 23:17:15 -07:00

3087 lines
98 KiB
Plaintext

// ======================================================================
//
// wookiee_sidequest.script
// Copyright 2004, Sony Online Entertainment
// All Rights Reserved.
//
// Created with SwgConversationEditor 1.35 - DO NOT EDIT THIS AUTO-GENERATED FILE!
//
// ======================================================================
// ======================================================================
// Library Includes
// ======================================================================
include library.ai_lib;
include library.chat;
include library.space_quest;
include library.utils;
include library.xp;
// ======================================================================
// Script Constants
// ======================================================================
string c_stringFile = "conversation/wookiee_sidequest";
// ======================================================================
// Script Conditions
// ======================================================================
boolean wookiee_sidequest_condition__defaultCondition (obj_id player, obj_id npc)
{
return true;
}
// ----------------------------------------------------------------------
boolean wookiee_sidequest_condition_WkeCheck (obj_id player, obj_id npc)
{
int species = getSpecies(player);
string speciesName = utils.getPlayerSpeciesName(species);
if ( speciesName.equals("wookiee") )
{
if(hasSkill(player, "pilot_imperial_navy_novice") || hasSkill (player, "pilot_rebel_navy_novice") || hasSkill(player, "pilot_neutral_novice"))
return true;
return false;
}
return false;
}
// ----------------------------------------------------------------------
boolean wookiee_sidequest_condition_NotPilotChk (obj_id player, obj_id npc)
{
int species = getSpecies(player);
string speciesName = utils.getPlayerSpeciesName(species);
if ( speciesName.equals("wookiee") )
{
if(!hasSkill(player, "pilot_imperial_navy_novice") || !hasSkill (player, "pilot_rebel_navy_novice") || !hasSkill(player, "pilot_neutral_novice"))
return true;
return false;
}
return false;
}
// ----------------------------------------------------------------------
boolean wookiee_sidequest_condition_RememberObj (obj_id player, obj_id npc)
{
if(hasObjVar(player, "space.wookiee.remember"))
return true;
return false;
}
// ----------------------------------------------------------------------
boolean wookiee_sidequest_condition_Chk1stMission (obj_id player, obj_id npc)
{
if (space_quest.hasQuest( player, "patrol", "naboo_wookiee_1" ))
return true;
return false;
}
// ----------------------------------------------------------------------
boolean wookiee_sidequest_condition_Chk2ndMission (obj_id player, obj_id npc)
{
if (space_quest.hasQuest( player, "patrol", "naboo_wookiee_2" ))
return true;
return false;
}
// ----------------------------------------------------------------------
boolean wookiee_sidequest_condition_refusedQuest (obj_id player, obj_id npc)
{
if (hasObjVar(player, "space.wookiee.no"))
return true;
return false;
}
// ----------------------------------------------------------------------
boolean wookiee_sidequest_condition_NoMissions (obj_id player, obj_id npc)
{
if (!space_quest.hasQuest( player, "patrol", "naboo_wookiee_1" ) || !space_quest.hasQuest( player, "inspect", "naboo_wookiee_2" ))
return true;
return false;
}
// ----------------------------------------------------------------------
boolean wookiee_sidequest_condition_Won1st (obj_id player, obj_id npc)
{
if ( space_quest.hasWonQuest( player, "patrol", "naboo_wookiee_1" ) )
return true;
return false;
}
// ----------------------------------------------------------------------
boolean wookiee_sidequest_condition_failed1st (obj_id player, obj_id npc)
{
if ( space_quest.hasFailedQuest( player, "patrol", "naboo_wookiee_1" ) ||
space_quest.hasAbortedQuest( player, "patrol", "naboo_wookiee_1" ))
return true;
return false;
}
// ----------------------------------------------------------------------
boolean wookiee_sidequest_condition_RewardChk1stMission (obj_id player, obj_id npc)
{
if (!space_quest.hasReceivedReward (player, "patrol", "naboo_wookiee_1"))
return true;
return false;
}
// ----------------------------------------------------------------------
boolean wookiee_sidequest_condition_failed2nd (obj_id player, obj_id npc)
{
if ( space_quest.hasFailedQuest( player, "patrol", "naboo_wookiee_2" ) ||
space_quest.hasAbortedQuest( player, "patrol", "naboo_wookiee_2" ))
return true;
return false;
}
// ----------------------------------------------------------------------
boolean wookiee_sidequest_condition_Won2nd (obj_id player, obj_id npc)
{
if ( space_quest.hasWonQuest( player, "patrol", "naboo_wookiee_2" ) )
return true;
return false;
}
// ----------------------------------------------------------------------
boolean wookiee_sidequest_condition_RewardChk2ndMission (obj_id player, obj_id npc)
{
if (!space_quest.hasReceivedReward (player, "patrol", "naboo_wookiee_2"))
return true;
return false;
}
// ----------------------------------------------------------------------
boolean wookiee_sidequest_condition_CompletedSeries (obj_id player, obj_id npc)
{
if (hasObjVar(player, "space.wookiee.done"))
return true;
return false;
}
// ----------------------------------------------------------------------
boolean wookiee_sidequest_condition_ChkMissions (obj_id player, obj_id npc)
{
if (space_quest.hasQuest( player, "patrol", "naboo_wookiee_1" ) ||
space_quest.hasQuest( player, "patrol", "naboo_wookiee_2" ))
return true;
return false;
}
// ======================================================================
// Script Actions
// ======================================================================
void wookiee_sidequest_action_animConverse (obj_id player, obj_id npc)
{
faceTo( npc, player );
doAnimationAction( npc, "conversation_1" );
}
// ----------------------------------------------------------------------
void wookiee_sidequest_action_animExplain (obj_id player, obj_id npc)
{
faceTo( npc, player );
doAnimationAction( npc, "explain" );
}
// ----------------------------------------------------------------------
void wookiee_sidequest_action_animDisgust (obj_id player, obj_id npc)
{
faceTo( npc, player );
doAnimationAction( npc, "shake_head_disgust" );
}
// ----------------------------------------------------------------------
void wookiee_sidequest_action_animPointAway (obj_id player, obj_id npc)
{
doAnimationAction( npc, "point_away" );
}
// ----------------------------------------------------------------------
void wookiee_sidequest_action_animFist (obj_id player, obj_id npc)
{
faceTo( npc, player );
doAnimationAction( npc, "pound_fist_palm" );
}
// ----------------------------------------------------------------------
void wookiee_sidequest_action_animSalute (obj_id player, obj_id npc)
{
faceTo( npc, player );
doAnimationAction( npc, "salute1" );
}
// ----------------------------------------------------------------------
void wookiee_sidequest_action_animSigh (obj_id player, obj_id npc)
{
faceTo( npc, player );
doAnimationAction( npc, "sigh_deeply" );
}
// ----------------------------------------------------------------------
void wookiee_sidequest_action_animBow (obj_id player, obj_id npc)
{
faceTo( npc, player );
doAnimationAction( npc, "bow" );
}
// ----------------------------------------------------------------------
void wookiee_sidequest_action_animNod (obj_id player, obj_id npc)
{
faceTo( npc, player );
doAnimationAction( npc, "nod_head_once" );
}
// ----------------------------------------------------------------------
void wookiee_sidequest_action_grant1stMission (obj_id player, obj_id npc)
{
space_quest.grantQuest( player, "patrol", "naboo_wookiee_1" );
doAnimationAction( npc, "salute1" );
setObjVar(player, "space.wookiee.remember", true);
removeObjVar(player, "space.wookiee.no");
}
// ----------------------------------------------------------------------
void wookiee_sidequest_action_npcRemember (obj_id player, obj_id npc)
{
setObjVar(player, "space.wookiee.remember", true);
}
// ----------------------------------------------------------------------
void wookiee_sidequest_action_grantRewardMission1 (obj_id player, obj_id npc)
{
faceTo( npc, player );
doAnimationAction( npc, "salute1" );
space_quest.giveReward( player, "patrol", "naboo_wookiee_1", 5000 );
xp.grant( player, "pilot_general", 200, true );
}
// ----------------------------------------------------------------------
void wookiee_sidequest_action_grant2ndMission (obj_id player, obj_id npc)
{
removeObjVar(player, "space_quest.patrol.naboo_wookiee_1" );
setObjVar(player, "space_quest.patrol.naboo_wookiee_2", 0 );
space_quest.grantQuest( player, "patrol", "naboo_wookiee_2" );
doAnimationAction( npc, "salute1" );
}
// ----------------------------------------------------------------------
void wookiee_sidequest_action_grantRewardMission2 (obj_id player, obj_id npc)
{
faceTo( npc, player );
doAnimationAction( npc, "salute1" );
space_quest.giveReward( player, "patrol", "naboo_wookiee_2", 5000 );
xp.grant( player, "pilot_general", 200, true );
removeObjVar(player, "space_quest.patrol.naboo_wookiee_2");
removeObjVar(player, "space_quest.patrol.naboo_wookiee_1");
removeObjVar(player, "space.wookiee.remember");
setObjVar(player, "space.wookiee.done", true);
}
// ----------------------------------------------------------------------
void wookiee_sidequest_action_setRememberDisgust (obj_id player, obj_id npc)
{
setObjVar(player, "space.wookiee.remember", true);
setObjVar(player, "space.wookiee.no", true);
faceTo( npc, player );
doAnimationAction( npc, "shake_head_disgust" );
}
// ----------------------------------------------------------------------
void wookiee_sidequest_action_setRememberSigh (obj_id player, obj_id npc)
{
setObjVar(player, "space.wookiee.remember", true);
setObjVar(player, "space.wookiee.no", true);
faceTo( npc, player );
doAnimationAction( npc, "sigh_deeply" );
}
// ----------------------------------------------------------------------
void wookiee_sidequest_action_animCelebrate (obj_id player, obj_id npc)
{
faceTo( npc, player );
doAnimationAction( npc, "celebrate" );
}
// ----------------------------------------------------------------------
void wookiee_sidequest_action_animAccuse (obj_id player, obj_id npc)
{
faceTo( npc, player );
doAnimationAction( npc, "point_accusingly" );
}
// ----------------------------------------------------------------------
void wookiee_sidequest_action_animNo (obj_id player, obj_id npc)
{
faceTo( npc, player );
doAnimationAction( npc, "shake_head_no" );
}
// ======================================================================
// Script %TO Tokens
// ======================================================================
// ======================================================================
// Script %DI Tokens
// ======================================================================
// ======================================================================
// Script %DF Tokens
// ======================================================================
// ======================================================================
// handleBranch<n> Functions
// ======================================================================
int wookiee_sidequest_handleBranch2 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) I see you have returned. What is your status? Can you offer me any updates?
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) I need more information about my mission.
if (response == "s_361ea065")
{
//-- [NOTE]
if (wookiee_sidequest_condition_Chk2ndMission (player, npc))
{
wookiee_sidequest_action_animExplain (player, npc);
//-- NPC: (in Shyriiwook) There is a shipment of chemicals that can render even the toughest Krayt Dragon unconcious. We must not let it be duplicated or distributed. It is your duty to find the squadron transporting the chemicals and correct the situation.
string_id message = new string_id (c_stringFile, "s_3c52272b");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) Thank you.
boolean hasResponse0 = false;
if (wookiee_sidequest_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_dff4891");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 3);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (wookiee_sidequest_condition_Chk1stMission (player, npc))
{
wookiee_sidequest_action_animExplain (player, npc);
//-- NPC: (in Shyriiwook) Our brethren have been captured on a ship en route to a prison in which they will, no doubt, suffer. It is your mission to find the ship before it reaches its destination. I have given you a point in which you must start looking. Keep your senses and systems open. It is likely they may try to send a distress signal to aid you. Do you understand?
string_id message = new string_id (c_stringFile, "s_caa1385e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) Yes, I do. Thank you for the information.
boolean hasResponse0 = false;
if (wookiee_sidequest_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_b269d401");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 5);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) What's your story?
if (response == "s_7c2446cd")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
//-- NPC: (in Shyriiwook) My story? Why would you take such an interest in me? It is a request I am not quite used to. I am merely a fellow wookiee, trying to find his place in such a vast galaxy. I was trained to be a pilot as soon as I can remember. I had a great life until my accident which tore my wings from me. I am blind, you see. Sparks erupted from the damage my ship took during one mission. I haven't been able to see since.
string_id message = new string_id (c_stringFile, "s_b5ee0393");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) That's horrible! You must be devastated.
boolean hasResponse0 = false;
if (wookiee_sidequest_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_98c8d9d0");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 7);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) I want the job you mentioned earlier.
if (response == "s_ce7c2b5d")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_animAccuse (player, npc);
//-- NPC: (in Shyriiwook) I was quite disappointed when you refused to aid our brethren. But... I am grateful for the assistance, but be sure you want to help us.
string_id message = new string_id (c_stringFile, "s_62be250f");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) I'm sure.
boolean hasResponse0 = false;
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: (in Shyriiwook) Mmm.. I'll get back to you on that.
boolean hasResponse1 = false;
if (wookiee_sidequest_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_b674edb2");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_b9bff63b");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 10);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) I failed to free the slaves.
if (response == "s_f24156ae")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_animSigh (player, npc);
//-- NPC: (in Shyriiwook) This undoubtedly depresses me. However, there is still time. Please try again. For the sake of our own. You will, correct?
string_id message = new string_id (c_stringFile, "s_1bd5f568");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) Of course!
boolean hasResponse0 = false;
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: (in Shyriiwook) I am too disappointed to try again.
boolean hasResponse1 = false;
if (wookiee_sidequest_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_de93f602");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_dc3b96b5");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 15);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) I failed to recover the shipments of spice.
if (response == "s_f83c0824")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_animSigh (player, npc);
//-- NPC: (in Shyriiwook) All is not lost. There's still time. Go out there and try again. There is no such thing as 'too late'.
string_id message = new string_id (c_stringFile, "s_c9c583c7");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) Yes, sir!
boolean hasResponse0 = false;
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: (in Shyriiwook) I cannot bear to try again.
boolean hasResponse1 = false;
if (wookiee_sidequest_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_b01c946e");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_c089c686");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 18);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) I was successful in freeing the slaves.
if (response == "s_6420b547")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_animCelebrate (player, npc);
//-- NPC: (in Shyriiwook) I'm glad to see you well, my friend. It is an honor to see you again. I have heard of your success. Very well done! I thank you as do the former slaves. However... happy moments must come with the ill-favored. I have more sad news.
string_id message = new string_id (c_stringFile, "s_19bc1717");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) Surely I deserve something for my efforts.
boolean hasResponse0 = false;
if (wookiee_sidequest_condition_RewardChk1stMission (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: (in Shyriiwook) That's terrible! I'm interested in hearing more, sir.
boolean hasResponse1 = false;
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: (in Shyriiwook) You know my requirements. Nothing is for free.
boolean hasResponse2 = false;
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: (in Shyriiwook) Go on.
boolean hasResponse3 = false;
if (wookiee_sidequest_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_3a2c3dd4");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_dfbfa15d");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_aedac34b");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_a6b8e0dd");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 21);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) I was successful in securing the shipments of spice.
if (response == "s_f8a39ed7")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
//-- NPC: (in Shyriiwook) You truly are a role-model for our young brethren. Thank you for your assistance during these hard times. I have no more tasks for you, but hope you'll come visit often.
string_id message = new string_id (c_stringFile, "s_3a2e34");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) Aren't you forgetting something?
boolean hasResponse0 = false;
if (wookiee_sidequest_condition_RewardChk2ndMission (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: (in Shyriiwook) I will. Good bye!
boolean hasResponse1 = false;
if (wookiee_sidequest_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_fd24ad6b");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_621bb7c1");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 38);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch3 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) There is a shipment of chemicals that can render even the toughest Krayt Dragon unconcious. We must not let it be duplicated or distributed. It is your duty to find the squadron transporting the chemicals and correct the situation.
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Thank you.
if (response == "s_dff4891")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_animSalute (player, npc);
//-- NPC: (in Shyriiwook) Go then and be victorious!
string_id message = new string_id (c_stringFile, "s_5264aa09");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch5 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) Our brethren have been captured on a ship en route to a prison in which they will, no doubt, suffer. It is your mission to find the ship before it reaches its destination. I have given you a point in which you must start looking. Keep your senses and systems open. It is likely they may try to send a distress signal to aid you. Do you understand?
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Yes, I do. Thank you for the information.
if (response == "s_b269d401")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_animSalute (player, npc);
//-- NPC: (in Shyriiwook) Indeed. Be safe and keeps your wits about you, my friend.
string_id message = new string_id (c_stringFile, "s_8dae50e8");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch7 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) My story? Why would you take such an interest in me? It is a request I am not quite used to. I am merely a fellow wookiee, trying to find his place in such a vast galaxy. I was trained to be a pilot as soon as I can remember. I had a great life until my accident which tore my wings from me. I am blind, you see. Sparks erupted from the damage my ship took during one mission. I haven't been able to see since.
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) That's horrible! You must be devastated.
if (response == "s_98c8d9d0")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_animNo (player, npc);
//-- NPC: (in Shyriiwook) Please! Do not pity me. I have since been elevated to a senior position. I am able to teach young pilots by words alone. I am still very happy. But yes, I do miss being able to fly; seeing the stars whiz past as I hurry into battle. Those were good days. I hope to see you earn the honor and reputation you deserve one day. Bah! I'm babbling. Do you not have a mission to do?
string_id message = new string_id (c_stringFile, "s_d6d7f320");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) Oh yeah! Sorry.
boolean hasResponse0 = false;
if (wookiee_sidequest_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_1e97d877");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 8);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch8 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) Please! Do not pity me. I have since been elevated to a senior position. I am able to teach young pilots by words alone. I am still very happy. But yes, I do miss being able to fly; seeing the stars whiz past as I hurry into battle. Those were good days. I hope to see you earn the honor and reputation you deserve one day. Bah! I'm babbling. Do you not have a mission to do?
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Oh yeah! Sorry.
if (response == "s_1e97d877")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_animSalute (player, npc);
//-- NPC: (in Shyriiwook) Be on your way. Make me proud, young friend. And thank you for taking an interest in an old wookiee like me. It warms my heart.
string_id message = new string_id (c_stringFile, "s_7f997ce7");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch10 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) I was quite disappointed when you refused to aid our brethren. But... I am grateful for the assistance, but be sure you want to help us.
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) I'm sure.
if (response == "s_b674edb2")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
//-- NPC: There is rumor that a ship, filled with wookiee slaves, is en route to where the 'cargo' will be dropped off and practically left for dead. We cannot let this pass. It will mean suffering for our fellows. You will need to patrol and keep your senses keen for signals from the ship.
string_id message = new string_id (c_stringFile, "s_220e79bb");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) I'm listening.
boolean hasResponse0 = false;
if (wookiee_sidequest_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_e2942645");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 11);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Mmm.. I'll get back to you on that.
if (response == "s_b9bff63b")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
//-- NPC: (in Shyriiwook) I see.
string_id message = new string_id (c_stringFile, "s_2a6fa56e");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch11 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: There is rumor that a ship, filled with wookiee slaves, is en route to where the 'cargo' will be dropped off and practically left for dead. We cannot let this pass. It will mean suffering for our fellows. You will need to patrol and keep your senses keen for signals from the ship.
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) I'm listening.
if (response == "s_e2942645")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_grant1stMission (player, npc);
//-- NPC: (in Shyriiwook) It is a possibility that the ship was abandoned in hostile space. Perhaps our fellows were strong enough to overrun the slave trader ship and have no need for our assistance. It is all uncertain. I respectfully suggest keeping your mind clear and wits about you. There's no telling what may happen. Space can be a treacherous place, indeed.
string_id message = new string_id (c_stringFile, "s_5c3cf25c");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) Thank you for the information.
boolean hasResponse0 = false;
if (wookiee_sidequest_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_e6017d65");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 12);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch12 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) It is a possibility that the ship was abandoned in hostile space. Perhaps our fellows were strong enough to overrun the slave trader ship and have no need for our assistance. It is all uncertain. I respectfully suggest keeping your mind clear and wits about you. There's no telling what may happen. Space can be a treacherous place, indeed.
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Thank you for the information.
if (response == "s_e6017d65")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_animSalute (player, npc);
//-- NPC: (in Shyriiwook) I am honored to have you fighting for us, my friend. I have entered the necessarily information into your datapad. Good luck!
string_id message = new string_id (c_stringFile, "s_418bd43b");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch15 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) This undoubtedly depresses me. However, there is still time. Please try again. For the sake of our own. You will, correct?
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Of course!
if (response == "s_de93f602")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_grant1stMission (player, npc);
//-- NPC: (in Shyriiwook) Your hungry response gives me hope. Go then, rescue our brethren from the clutches of despair!
string_id message = new string_id (c_stringFile, "s_66c52109");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) I am too disappointed to try again.
if (response == "s_dc3b96b5")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_animNod (player, npc);
//-- NPC: (in Shyriiwook) I see. More of our people will suffer then. Pity.
string_id message = new string_id (c_stringFile, "s_37ce251c");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch18 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) All is not lost. There's still time. Go out there and try again. There is no such thing as 'too late'.
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Yes, sir!
if (response == "s_b01c946e")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_grant2ndMission (player, npc);
//-- NPC: (in Shyriiwook) Good! Please try again. I am counting on you.
string_id message = new string_id (c_stringFile, "s_e5e0f00d");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) I cannot bear to try again.
if (response == "s_c089c686")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_animSigh (player, npc);
//-- NPC: (in Shyriiwook) I am saddened by this news. But if it is your wish.
string_id message = new string_id (c_stringFile, "s_5a73125d");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch21 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) I'm glad to see you well, my friend. It is an honor to see you again. I have heard of your success. Very well done! I thank you as do the former slaves. However... happy moments must come with the ill-favored. I have more sad news.
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Surely I deserve something for my efforts.
if (response == "s_3a2c3dd4")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_grantRewardMission1 (player, npc);
//-- NPC: (in Shyriiwook) Of course! How thoughtless of me. I present you with gratitude and a token of my appreciation.
string_id message = new string_id (c_stringFile, "s_e5d57a18");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) Thank you and goodbye.
boolean hasResponse0 = false;
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: (in Shyriiwook) Now.. what was this about another mission?
boolean hasResponse1 = false;
if (wookiee_sidequest_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_dd1be097");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_915d2cbf");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 22);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) That's terrible! I'm interested in hearing more, sir.
if (response == "s_dfbfa15d")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
//-- NPC: (in Shyriiwook) Our species is a strong one. This you know. However, with a certain mix of chemicals, we can fall much like the mightiest tree in a single blow. With help, I was able to track down a squadron of ships transporting such a chemical. We must intervene. It is the same chemicals used by the slavers to capture our people. It is imperative that we find the squadron and destroy them and find the chemicals.
string_id message = new string_id (c_stringFile, "s_e88fac47");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) I will help!
boolean hasResponse0 = false;
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: (in Shyriiwook) I'm going to pass on this mission.
boolean hasResponse1 = false;
if (wookiee_sidequest_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_54");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_58");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 27);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) You know my requirements. Nothing is for free.
if (response == "s_aedac34b")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
//-- NPC: (in Shyriiwook) The very fibers of your being disgust me. You will only help for a pinch of credits?
string_id message = new string_id (c_stringFile, "s_1fefaaf");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) That's correct.
boolean hasResponse0 = false;
if (wookiee_sidequest_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_f6c0338f");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 30);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Go on.
if (response == "s_a6b8e0dd")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
//-- NPC: (in Shyriiwook) Our species is a strong one. This you know. However, with a certain mix of chemicals, we can fall much like the mightiest tree in a single blow. With help, I was able to track down a squadron of ships transporting such a chemical. We must intervene. It is the same chemicals used by the slavers to capture our people. It is imperative that we find the squadron and destroy them and find the chemicals.
string_id message = new string_id (c_stringFile, "s_73");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) For our people.
boolean hasResponse0 = false;
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: (in Shyriiwook) I must refuse.
boolean hasResponse1 = false;
if (wookiee_sidequest_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_4273039a");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_8a54c987");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 35);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch22 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) Of course! How thoughtless of me. I present you with gratitude and a token of my appreciation.
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Thank you and goodbye.
if (response == "s_dd1be097")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
//-- NPC: (in Shyriiwook) May fortune shine upon you.
string_id message = new string_id (c_stringFile, "s_bcd42bbd");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Now.. what was this about another mission?
if (response == "s_915d2cbf")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_animExplain (player, npc);
//-- NPC: (in Shyriiwook) Oh, yes. Our species is a strong one. This you know. However, with a certain mix of chemicals, we can fall much like the mightiest tree in a single blow. With help, I was able to track down a squadron of ships transporting such a chemical. We must intervene. It is the same chemicals used by the slavers to capture our people. It is imperative that we find the squadron and destroy them and find the chemicals.
string_id message = new string_id (c_stringFile, "s_26343911");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) I will help!
boolean hasResponse0 = false;
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: (in Shyriiwook) I'm going to pass on this mission.
boolean hasResponse1 = false;
if (wookiee_sidequest_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_8dac9978");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_b20f0149");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 24);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch24 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) Oh, yes. Our species is a strong one. This you know. However, with a certain mix of chemicals, we can fall much like the mightiest tree in a single blow. With help, I was able to track down a squadron of ships transporting such a chemical. We must intervene. It is the same chemicals used by the slavers to capture our people. It is imperative that we find the squadron and destroy them and find the chemicals.
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) I will help!
if (response == "s_8dac9978")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_grant2ndMission (player, npc);
//-- NPC: (in Shyriiwook) You are a true testament to our people! Your enthusiasm brings me hope. The information has been uploaded to your datapad. May fortune shine upon you.
string_id message = new string_id (c_stringFile, "s_e34cea4e");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) I'm going to pass on this mission.
if (response == "s_b20f0149")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
//-- NPC: (in Shyriiwook) I see. If you must refuse, I have no choice but to accept your decision.
string_id message = new string_id (c_stringFile, "s_a5415008");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch27 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) Our species is a strong one. This you know. However, with a certain mix of chemicals, we can fall much like the mightiest tree in a single blow. With help, I was able to track down a squadron of ships transporting such a chemical. We must intervene. It is the same chemicals used by the slavers to capture our people. It is imperative that we find the squadron and destroy them and find the chemicals.
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) I will help!
if (response == "s_54")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_grant2ndMission (player, npc);
//-- NPC: (in Shyriiwook) You are a true testament to our people! Your enthusiasm brings me hope. The information has been uploaded to your datapad. May fortune shine upon you.
string_id message = new string_id (c_stringFile, "s_56");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) I'm going to pass on this mission.
if (response == "s_58")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
//-- NPC: (in Shyriiwook) I see. If you must refuse, I have no choice but to accept your decision.
string_id message = new string_id (c_stringFile, "s_60");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch30 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) The very fibers of your being disgust me. You will only help for a pinch of credits?
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) That's correct.
if (response == "s_f6c0338f")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_grant2ndMission (player, npc);
//-- NPC: (in Shyriiwook) Very well. I have no choice. It has been desperate times and I will accept the help of anyone. Even you. Let me go on... Our species is a strong one. This you know. However, with a certain mix of chemicals, we can fall much like the mightiest tree in a single blow. With help, I was able to track down a squadron of ships transporting such a chemical.
string_id message = new string_id (c_stringFile, "s_b6b02065");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) Yeah?
boolean hasResponse0 = false;
if (wookiee_sidequest_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_ee27bc0d");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 31);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch31 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) Very well. I have no choice. It has been desperate times and I will accept the help of anyone. Even you. Let me go on... Our species is a strong one. This you know. However, with a certain mix of chemicals, we can fall much like the mightiest tree in a single blow. With help, I was able to track down a squadron of ships transporting such a chemical.
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Yeah?
if (response == "s_ee27bc0d")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
//-- NPC: (in Shyriiwook) We must intervene. It is the same chemicals used by the slavers to capture our people. It is imperative that we find the squadron and destroy them and find the chemicals. Will you find these shipments and return?
string_id message = new string_id (c_stringFile, "s_ac48a861");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) I suppose.
boolean hasResponse0 = false;
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: (in Shyriiwook) No, now that I think about it.
boolean hasResponse1 = false;
if (wookiee_sidequest_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_fbb5fd3a");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_f584a39");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 32);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch32 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) We must intervene. It is the same chemicals used by the slavers to capture our people. It is imperative that we find the squadron and destroy them and find the chemicals. Will you find these shipments and return?
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) I suppose.
if (response == "s_fbb5fd3a")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_grant2ndMission (player, npc);
//-- NPC: (in Shyriiwook) Then go. I have uploaded the information to your datapad.
string_id message = new string_id (c_stringFile, "s_2934a8b2");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) No, now that I think about it.
if (response == "s_f584a39")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
//-- NPC: (in Shyriiwook) I am sure you enjoyed refusing to help. Leave now. I cannot bear to look upon your face.
string_id message = new string_id (c_stringFile, "s_a8f54dbe");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch35 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) Our species is a strong one. This you know. However, with a certain mix of chemicals, we can fall much like the mightiest tree in a single blow. With help, I was able to track down a squadron of ships transporting such a chemical. We must intervene. It is the same chemicals used by the slavers to capture our people. It is imperative that we find the squadron and destroy them and find the chemicals.
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) For our people.
if (response == "s_4273039a")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_grant2ndMission (player, npc);
//-- NPC: (in Shyriiwook) Your nerves of steel will prove to be an asset. I expect you to succeed. I have entered all the information, as I know it, into your datapad. Good luck.
string_id message = new string_id (c_stringFile, "s_134245b0");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) I must refuse.
if (response == "s_8a54c987")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
//-- NPC: (in Shyriiwook) And the day grows bleak. It truly is a sad day.
string_id message = new string_id (c_stringFile, "s_5f70e035");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch38 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) You truly are a role-model for our young brethren. Thank you for your assistance during these hard times. I have no more tasks for you, but hope you'll come visit often.
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Aren't you forgetting something?
if (response == "s_fd24ad6b")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_grantRewardMission2 (player, npc);
//-- NPC: (in Shyriiwook) Of course not. Thank you for helping us in these dark times. I hope to see you again in the future.
string_id message = new string_id (c_stringFile, "s_474df52d");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) I will. Good bye!
if (response == "s_621bb7c1")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
//-- NPC: (in Shyriiwook) Be safe, my young friend.
string_id message = new string_id (c_stringFile, "s_226ffd3d");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch41 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) I'm glad to see that one of my own has dared to brave the vastness of the galaxy. I trust your skill in piloting has been honed by the best teachers? You could very well need it if you agree to help me.. or should I say, 'us'. Members of our species are in trouble and could use someone like you to be their hero.
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Please tell me more, sir.
if (response == "s_a1689abe")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
//-- NPC: (in Shyriiwook) It is nice to see that such a young tree dweller hold such respect for others. Yes, you and I will get along very well. On to more important news... There is rumor that a ship, filled with wookiee slaves, is en route to where the 'cargo' will be dropped off and practically left for dead. We cannot let this pass. It will mean suffering for our fellows. You will need to patrol and keep your senses keen for signals from the ship.
string_id message = new string_id (c_stringFile, "s_1a7fb36b");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) Continue, sir.
boolean hasResponse0 = false;
if (wookiee_sidequest_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_ef2d67f1");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 42);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) If you're paying, I'm listening.
if (response == "s_8462e1e2")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_animFist (player, npc);
//-- NPC: (in Shyriiwook) Such a harsh answer. You would rather see our fellows suffer if not for a bit of monetary reward?
string_id message = new string_id (c_stringFile, "s_a74d5cf4");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) Pretty much, yeah.
boolean hasResponse0 = false;
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: (in Shyriiwook) I guess not. So you've got my interest.
boolean hasResponse1 = false;
if (wookiee_sidequest_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_40a86cc7");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_e8d13d8a");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 46);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Go on.
if (response == "s_119")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
//-- NPC: (in Shyriiwook) Your intent stare is unnerving. But if you can fly, then by all means, I am honored to have you aboard! There is rumor that a ship, filled with wookiee slaves, is en route to where the 'cargo' will be dropped off and practically left for dead. We cannot let this pass. It will mean suffering for our fellows. You will need to patrol and keep your senses keen for signals from the ship.
string_id message = new string_id (c_stringFile, "s_dd0ad352");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) Go on.
boolean hasResponse0 = false;
if (wookiee_sidequest_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_122");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 55);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch42 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) It is nice to see that such a young tree dweller hold such respect for others. Yes, you and I will get along very well. On to more important news... There is rumor that a ship, filled with wookiee slaves, is en route to where the 'cargo' will be dropped off and practically left for dead. We cannot let this pass. It will mean suffering for our fellows. You will need to patrol and keep your senses keen for signals from the ship.
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Continue, sir.
if (response == "s_ef2d67f1")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_animBow (player, npc);
//-- NPC: (in Shyriiwook) It is a possibility that the ship was abandoned in hostile space. Perhaps our fellows were strong enough to overrun the slave trader ship and have no need for our assistance. It is all uncertain. I respectfully suggest keeping your mind clear and wits about you. There's no telling what may happen. Space can be a treacherous place, indeed. What say you, fellow?
string_id message = new string_id (c_stringFile, "s_d4017dcd");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) I will help our friends, sir!
boolean hasResponse0 = false;
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: (in Shyriiwook) This mission sounds as if it would exceed my skills.
boolean hasResponse1 = false;
if (wookiee_sidequest_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_5ca1856a");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_9bcffeac");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 43);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch43 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) It is a possibility that the ship was abandoned in hostile space. Perhaps our fellows were strong enough to overrun the slave trader ship and have no need for our assistance. It is all uncertain. I respectfully suggest keeping your mind clear and wits about you. There's no telling what may happen. Space can be a treacherous place, indeed. What say you, fellow?
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) I will help our friends, sir!
if (response == "s_5ca1856a")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_grant1stMission (player, npc);
//-- NPC: (in Shyriiwook) I am honored to have you fighting for us, my friend. I have entered the necessarily information into your datapad. Good luck!
string_id message = new string_id (c_stringFile, "s_91");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) This mission sounds as if it would exceed my skills.
if (response == "s_9bcffeac")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_setRememberSigh (player, npc);
//-- NPC: (in Shyriiwook) I am disappointed. Let us hope I will find another one of us to aid in this situation.
string_id message = new string_id (c_stringFile, "s_24e34e5a");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch46 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) Such a harsh answer. You would rather see our fellows suffer if not for a bit of monetary reward?
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Pretty much, yeah.
if (response == "s_40a86cc7")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_setRememberDisgust (player, npc);
//-- NPC: (in Shyriiwook) I cannot bear to speak with you. I will find someone else to help our fellows. You are not fit to do so.
string_id message = new string_id (c_stringFile, "s_e3ae04b5");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) I guess not. So you've got my interest.
if (response == "s_e8d13d8a")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_animPointAway (player, npc);
//-- NPC: (in Shyriiwook) I do not like your attitude. Our species is respectful to all beings, including our own. Have you not learned that? *sigh* No matter. There is rumor that a ship, filled with wookiee slaves, is en route to where the 'cargo' will be dropped off and practically left for dead. We cannot let this pass. It will mean suffering for our fellows. You will need to patrol and keep your senses keen for signals from the ship.
string_id message = new string_id (c_stringFile, "s_ba31d7f4");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) Yeah?
boolean hasResponse0 = false;
if (wookiee_sidequest_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_101");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 48);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch48 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) I do not like your attitude. Our species is respectful to all beings, including our own. Have you not learned that? *sigh* No matter. There is rumor that a ship, filled with wookiee slaves, is en route to where the 'cargo' will be dropped off and practically left for dead. We cannot let this pass. It will mean suffering for our fellows. You will need to patrol and keep your senses keen for signals from the ship.
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Yeah?
if (response == "s_101")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_animExplain (player, npc);
//-- NPC: (in Shyriiwook) It is a possibility that the ship was abandoned in hostile space. Perhaps our fellows were strong enough to overrun the slave trader ship and have no need for our assistance. It is all uncertain. I respectfully suggest keeping your mind clear and wits about you. There's no telling what may happen. Space can be a treacherous place, indeed. What say you, fellow?
string_id message = new string_id (c_stringFile, "s_103");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) Sure, I guess.
boolean hasResponse0 = false;
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: (in Shyriiwook) I didn't hear anything mentioned about a reward.
boolean hasResponse1 = false;
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: (in Shyriiwook) Nah, I think I'm gonna pass.
boolean hasResponse2 = false;
if (wookiee_sidequest_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_d1b602c1");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_ac9e5091");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_115");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 49);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch49 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) It is a possibility that the ship was abandoned in hostile space. Perhaps our fellows were strong enough to overrun the slave trader ship and have no need for our assistance. It is all uncertain. I respectfully suggest keeping your mind clear and wits about you. There's no telling what may happen. Space can be a treacherous place, indeed. What say you, fellow?
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Sure, I guess.
if (response == "s_d1b602c1")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_grant1stMission (player, npc);
//-- NPC: (in Shyriiwook) Good. I have entered the necessarily information into your datapad. If you require additional information or help, I will be glad to answer your questions and help you. Good luck.
string_id message = new string_id (c_stringFile, "s_da183c96");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) I didn't hear anything mentioned about a reward.
if (response == "s_ac9e5091")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_animFist (player, npc);
//-- NPC: (in Shyriiwook) You will soon anger me. Will you help those of our species in need or not?
string_id message = new string_id (c_stringFile, "s_7164f5e");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) Sure, I guess.
boolean hasResponse0 = false;
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: (in Shyriiwook) Nah, I think I'm gonna pass.
boolean hasResponse1 = false;
if (wookiee_sidequest_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_109");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_e305d81d");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 51);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Nah, I think I'm gonna pass.
if (response == "s_115")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_animDisgust (player, npc);
//-- NPC: (in Shyriiwook) Just as I suspected. You are a disgrace to our species. Be gone with you!
string_id message = new string_id (c_stringFile, "s_117");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch51 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) You will soon anger me. Will you help those of our species in need or not?
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Sure, I guess.
if (response == "s_109")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_grant1stMission (player, npc);
//-- NPC: (in Shyriiwook) Good. I have entered the necessarily information into your datapad. If you require additional information or help, I will be glad to answer your questions and help you. Good luck.
string_id message = new string_id (c_stringFile, "s_111");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Nah, I think I'm gonna pass.
if (response == "s_e305d81d")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_animDisgust (player, npc);
//-- NPC: (in Shyriiwook) Just as I suspected. You are a disgrace to our species. Be gone with you!
string_id message = new string_id (c_stringFile, "s_2aa249ad");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch55 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) Your intent stare is unnerving. But if you can fly, then by all means, I am honored to have you aboard! There is rumor that a ship, filled with wookiee slaves, is en route to where the 'cargo' will be dropped off and practically left for dead. We cannot let this pass. It will mean suffering for our fellows. You will need to patrol and keep your senses keen for signals from the ship.
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) Go on.
if (response == "s_122")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
//-- NPC: (in Shyriiwook) It is a possibility that the ship was abandoned in hostile space. Perhaps our fellows were strong enough to overrun the slave trader ship and have no need for our assistance. It is all uncertain. I respectfully suggest keeping your mind clear and wits about you. There's no telling what may happen. Space can be a treacherous place, indeed. What say you, fellow?
string_id message = new string_id (c_stringFile, "s_124");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) For our species.
boolean hasResponse0 = false;
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: (in Shyriiwook) No. I have other matters to which I must attend.
boolean hasResponse1 = false;
if (wookiee_sidequest_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_7c2995a9");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_69e4801e");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 56);
npcSpeak (player, message);
npcSetConversationResponses (player, responses);
}
else
{
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
}
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
int wookiee_sidequest_handleBranch56 (obj_id player, obj_id npc, string_id response)
{
//-- [BRANCH NOTE]
//-- NPC: (in Shyriiwook) It is a possibility that the ship was abandoned in hostile space. Perhaps our fellows were strong enough to overrun the slave trader ship and have no need for our assistance. It is all uncertain. I respectfully suggest keeping your mind clear and wits about you. There's no telling what may happen. Space can be a treacherous place, indeed. What say you, fellow?
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) For our species.
if (response == "s_7c2995a9")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_grant1stMission (player, npc);
//-- NPC: (in Shyriiwook) I am encouraged by your steel composure and concentration of the tasks at hand. I have entered the necessarily information into your datapad. If you require additional information or help, I will be glad to answer your questions and help you. Good luck!
string_id message = new string_id (c_stringFile, "s_550c3e6c");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
//-- [RESPONSE NOTE]
//-- PLAYER: (in Shyriiwook) No. I have other matters to which I must attend.
if (response == "s_69e4801e")
{
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
wookiee_sidequest_action_setRememberSigh (player, npc);
//-- NPC: (in Shyriiwook) I see. I am quite disappointed. Perhaps I will be able to find another to help us. Pity. You held such promise.
string_id message = new string_id (c_stringFile, "s_65c23663");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
npcEndConversationWithMessage (player, message);
return SCRIPT_CONTINUE;
}
}
return SCRIPT_DEFAULT;
}
// ----------------------------------------------------------------------
// ======================================================================
// User Script Triggers
// ======================================================================
trigger OnInitialize ()
{
if ((!isMob (self)) || (isPlayer (self)))
detachScript(self, "conversation.wookiee_sidequest");
setCondition (self, CONDITION_CONVERSABLE);
setInvulnerable( self, true );
setCondition( self, CONDITION_SPACE_INTERESTING );
return SCRIPT_CONTINUE;
}
trigger OnAttach ()
{
setCondition (self, CONDITION_CONVERSABLE);
setInvulnerable( self, true );
setCondition( self, CONDITION_SPACE_INTERESTING );
return SCRIPT_CONTINUE;
}
trigger OnObjectMenuRequest (obj_id player, menu_info menuInfo)
{
int menu = menuInfo.addRootMenu (menu_info_types.CONVERSE_START, null);
menu_info_data menuInfoData = menuInfo.getMenuItemById (menu);
menuInfoData.setServerNotify (false);
setCondition (self, CONDITION_CONVERSABLE);
return SCRIPT_CONTINUE;
}
trigger OnIncapacitated (obj_id killer)
{
clearCondition (self, CONDITION_CONVERSABLE);
detachScript (self, "conversation.wookiee_sidequest");
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 (wookiee_sidequest_condition_CompletedSeries (player, npc))
{
wookiee_sidequest_action_animSalute (player, npc);
//-- NPC: (in Shyriiwook) Ah! Good to see you, my honorable friend. Alas, I have no more work for you but appreciate the visit. Indeed, I must return to my work. I must teach my fledgling pilots the art of formations via pictorial images and demonstration from my teaching assistants. Be safe and honorable.
string_id message = new string_id (c_stringFile, "s_c65fb1ba");
chat.chat (npc, player, message);
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (wookiee_sidequest_condition_RememberObj (player, npc))
{
//-- NPC: (in Shyriiwook) I see you have returned. What is your status? Can you offer me any updates?
string_id message = new string_id (c_stringFile, "s_e68cd354");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) I need more information about my mission.
boolean hasResponse0 = false;
if (wookiee_sidequest_condition_ChkMissions (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: (in Shyriiwook) What's your story?
boolean hasResponse1 = false;
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: (in Shyriiwook) I want the job you mentioned earlier.
boolean hasResponse2 = false;
if (wookiee_sidequest_condition_refusedQuest (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse2 = true;
}
//-- PLAYER: (in Shyriiwook) I failed to free the slaves.
boolean hasResponse3 = false;
if (wookiee_sidequest_condition_failed1st (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse3 = true;
}
//-- PLAYER: (in Shyriiwook) I failed to recover the shipments of spice.
boolean hasResponse4 = false;
if (wookiee_sidequest_condition_failed2nd (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse4 = true;
}
//-- PLAYER: (in Shyriiwook) I was successful in freeing the slaves.
boolean hasResponse5 = false;
if (wookiee_sidequest_condition_Won1st (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse5 = true;
}
//-- PLAYER: (in Shyriiwook) I was successful in securing the shipments of spice.
boolean hasResponse6 = false;
if (wookiee_sidequest_condition_Won2nd (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse6 = true;
}
if (hasResponse)
{
int responseIndex = 0;
string_id responses [] = new string_id [numberOfResponses];
if (hasResponse0)
responses [responseIndex++] = new string_id (c_stringFile, "s_361ea065");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_7c2446cd");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_ce7c2b5d");
if (hasResponse3)
responses [responseIndex++] = new string_id (c_stringFile, "s_f24156ae");
if (hasResponse4)
responses [responseIndex++] = new string_id (c_stringFile, "s_f83c0824");
if (hasResponse5)
responses [responseIndex++] = new string_id (c_stringFile, "s_6420b547");
if (hasResponse6)
responses [responseIndex++] = new string_id (c_stringFile, "s_f8a39ed7");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 2);
npcStartConversation (player, npc, "wookiee_sidequest", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (wookiee_sidequest_condition_WkeCheck (player, npc))
{
wookiee_sidequest_action_animConverse (player, npc);
//-- NPC: (in Shyriiwook) I'm glad to see that one of my own has dared to brave the vastness of the galaxy. I trust your skill in piloting has been honed by the best teachers? You could very well need it if you agree to help me.. or should I say, 'us'. Members of our species are in trouble and could use someone like you to be their hero.
string_id message = new string_id (c_stringFile, "s_77603222");
int numberOfResponses = 0;
boolean hasResponse = false;
//-- PLAYER: (in Shyriiwook) Please tell me more, sir.
boolean hasResponse0 = false;
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse0 = true;
}
//-- PLAYER: (in Shyriiwook) If you're paying, I'm listening.
boolean hasResponse1 = false;
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
++numberOfResponses;
hasResponse = true;
hasResponse1 = true;
}
//-- PLAYER: (in Shyriiwook) Go on.
boolean hasResponse2 = false;
if (wookiee_sidequest_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_a1689abe");
if (hasResponse1)
responses [responseIndex++] = new string_id (c_stringFile, "s_8462e1e2");
if (hasResponse2)
responses [responseIndex++] = new string_id (c_stringFile, "s_119");
utils.setScriptVar (player, "conversation.wookiee_sidequest.branchId", 41);
npcStartConversation (player, npc, "wookiee_sidequest", message, responses);
}
else
{
chat.chat (npc, player, message);
}
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (wookiee_sidequest_condition_NotPilotChk (player, npc))
{
wookiee_sidequest_action_animBow (player, npc);
//-- NPC: (in Shyriiwook) Ah, a fellow wookiee. It is good to meet you. And yet... it seems you are not a pilot. There is a certain manner in which commanders of their own ships hold their head. You do not possess such poise. Nonetheless... if you do happen to learn the skills of space, please come see me. I may have work for you to do. Carry on, then.
string_id message = new string_id (c_stringFile, "s_6c34509e");
chat.chat (npc, player, message);
return SCRIPT_CONTINUE;
}
//-- [NOTE]
if (wookiee_sidequest_condition__defaultCondition (player, npc))
{
//-- NPC: *enter correct wookie jarble here*
string_id message = new string_id (c_stringFile, "s_c8950314");
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 != "wookiee_sidequest")
return SCRIPT_CONTINUE;
obj_id npc = self;
int branchId = utils.getIntScriptVar (player, "conversation.wookiee_sidequest.branchId");
if (branchId == 2 && wookiee_sidequest_handleBranch2 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 3 && wookiee_sidequest_handleBranch3 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 5 && wookiee_sidequest_handleBranch5 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 7 && wookiee_sidequest_handleBranch7 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 8 && wookiee_sidequest_handleBranch8 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 10 && wookiee_sidequest_handleBranch10 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 11 && wookiee_sidequest_handleBranch11 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 12 && wookiee_sidequest_handleBranch12 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 15 && wookiee_sidequest_handleBranch15 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 18 && wookiee_sidequest_handleBranch18 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 21 && wookiee_sidequest_handleBranch21 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 22 && wookiee_sidequest_handleBranch22 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 24 && wookiee_sidequest_handleBranch24 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 27 && wookiee_sidequest_handleBranch27 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 30 && wookiee_sidequest_handleBranch30 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 31 && wookiee_sidequest_handleBranch31 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 32 && wookiee_sidequest_handleBranch32 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 35 && wookiee_sidequest_handleBranch35 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 38 && wookiee_sidequest_handleBranch38 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 41 && wookiee_sidequest_handleBranch41 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 42 && wookiee_sidequest_handleBranch42 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 43 && wookiee_sidequest_handleBranch43 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 46 && wookiee_sidequest_handleBranch46 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 48 && wookiee_sidequest_handleBranch48 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 49 && wookiee_sidequest_handleBranch49 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 51 && wookiee_sidequest_handleBranch51 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 55 && wookiee_sidequest_handleBranch55 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
if (branchId == 56 && wookiee_sidequest_handleBranch56 (player, npc, response) == SCRIPT_CONTINUE)
return SCRIPT_CONTINUE;
chat.chat (npc, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
utils.removeScriptVar (player, "conversation.wookiee_sidequest.branchId");
return SCRIPT_CONTINUE;
}
// ======================================================================