mirror of
https://bitbucket.org/seefoe/dsrc.git
synced 2026-07-31 01:15:55 -04:00
673 lines
19 KiB
Plaintext
673 lines
19 KiB
Plaintext
// ======================================================================
|
|
//
|
|
// lifeday04b.script
|
|
//
|
|
//
|
|
//
|
|
// Created with SwgConversationEditor 1.28 - DO NOT EDIT THIS AUTO-GENERATED FILE!
|
|
//
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Library Includes
|
|
// ======================================================================
|
|
|
|
include library.ai_lib;
|
|
include library.chat;
|
|
include library.utils;
|
|
|
|
// ======================================================================
|
|
// Script Constants
|
|
// ======================================================================
|
|
|
|
string c_stringFile = "conversation/lifeday04b";
|
|
|
|
// ======================================================================
|
|
// Script Conditions
|
|
// ======================================================================
|
|
|
|
boolean lifeday04b_condition__defaultCondition (obj_id player, obj_id npc)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lifeday04b_condition_hasNotStarted (obj_id player, obj_id npc)
|
|
{
|
|
if(!hasObjVar(player, "lifeday04.convTracker") && !hasObjVar(player, "lifeday04.rewarded"))
|
|
return true;
|
|
else
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lifeday04b_condition_hasBeenRewarded (obj_id player, obj_id npc)
|
|
{
|
|
if(hasObjVar(player, "lifeday04.rewarded"))
|
|
return true;
|
|
else
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lifeday04b_condition_hasTalkedToCityGuy (obj_id player, obj_id npc)
|
|
{
|
|
int convTracker = getIntObjVar(player, "lifeday04.convTracker");
|
|
|
|
if(convTracker >= 0 && convTracker < 15)
|
|
return true;
|
|
else
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lifeday04b_condition_spokeWithEveryone (obj_id player, obj_id npc)
|
|
{
|
|
int convTracker = getIntObjVar(player, "lifeday04.convTracker");
|
|
|
|
if (convTracker == 15)
|
|
return true;
|
|
else
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lifeday04b_condition_isOldEnoughNotaWookiee (obj_id player, obj_id npc)
|
|
{
|
|
int timeData = getPlayerBirthDate(player);
|
|
int rightNow = getCurrentBirthDate();
|
|
int delta = rightNow - timeData;
|
|
int species = getSpecies(player);
|
|
|
|
if(species != SPECIES_WOOKIEE)
|
|
return true;
|
|
else
|
|
return false;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean lifeday04b_condition_isOldEnoughIsaWookiee (obj_id player, obj_id npc)
|
|
{
|
|
int timeData = getPlayerBirthDate(player);
|
|
int rightNow = getCurrentBirthDate();
|
|
int delta = rightNow - timeData;
|
|
int species = getSpecies(player);
|
|
|
|
if(species == SPECIES_WOOKIEE)
|
|
return true;
|
|
else
|
|
return false;
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Actions
|
|
// ======================================================================
|
|
|
|
void lifeday04b_action_giveRandomGift (obj_id player, obj_id npc)
|
|
{
|
|
obj_id playerInventory = utils.getInventoryContainer(player);
|
|
|
|
string[] reward = { "object/tangible/loot/quest/lifeday_orb.iff",
|
|
"object/tangible/painting/painting_wookiee_m.iff",
|
|
"object/tangible/painting/painting_wookiee_f.iff",
|
|
"object/tangible/painting/painting_trees_s01.iff"
|
|
};
|
|
|
|
int roll = rand(0, 3);
|
|
|
|
obj_id createdObject = createObject(reward[roll], playerInventory, "");
|
|
|
|
if(isIdValid(createdObject))
|
|
{
|
|
setObjVar(player, "lifeday04.rewarded", 1);
|
|
removeObjVar(player, "lifeday04.convTracker");
|
|
}
|
|
else
|
|
{
|
|
sendSystemMessage(player, new string_id("quest/lifeday/lifeday", "full_inv"));
|
|
}
|
|
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void lifeday04b_action_giveLifeDayRobe (obj_id player, obj_id npc)
|
|
{
|
|
obj_id playerInventory = utils.getInventoryContainer(player);
|
|
obj_id createdObject = createObject("object/tangible/wearables/wookiee/wke_lifeday_robe.iff", playerInventory, "");
|
|
|
|
if(isIdValid(createdObject))
|
|
{
|
|
setObjVar(player, "lifeday04.rewarded", 1);
|
|
removeObjVar(player, "lifeday04.convTracker");
|
|
}
|
|
else
|
|
{
|
|
sendSystemMessage(player, new string_id("quest/lifeday/lifeday", "full_inv"));
|
|
}
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void lifeday04b_action_setSpokeWithElder (obj_id player, obj_id npc)
|
|
{
|
|
int convTracker = getIntObjVar(player, "lifeday04.convTracker");
|
|
|
|
if(convTracker == 0)
|
|
setObjVar(player, "lifeday04.convTracker", 1);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void lifeday04b_action_notOldEnoughBoned (obj_id player, obj_id npc)
|
|
{
|
|
setObjVar(player, "lifeday04.rewarded", 1);
|
|
removeObjVar(player, "lifeday04.convTracker");
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script %TO Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Script %DI Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Script %DF Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// handleBranch<n> Functions
|
|
// ======================================================================
|
|
|
|
int lifeday04b_handleBranch3 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: (Translated from Shyriiwook) Happy Life Day, friend! We are glad to have you celebrate with us.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thank you. What do I do?
|
|
if (response == "s_8a712dbc")
|
|
{
|
|
lifeday04b_action_setSpokeWithElder (player, npc);
|
|
|
|
//-- [NOTE]
|
|
if (lifeday04b_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Speak with all those assembled to learn about our holiday. Once you have heard what we have to say, I will see if we can find a Life Day gift for you.
|
|
string_id message = new string_id (c_stringFile, "s_d8cde9a");
|
|
utils.removeScriptVar (player, "conversation.lifeday04b.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I think I will do this later.
|
|
if (response == "s_6cd2786a")
|
|
{
|
|
//-- [NOTE]
|
|
if (lifeday04b_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "nod_head_once");
|
|
|
|
//-- NPC: I understand, but if you wait too long, the time will pass and you will have to wait until next year to join us. Be safe, friend.
|
|
string_id message = new string_id (c_stringFile, "s_feeecf48");
|
|
utils.removeScriptVar (player, "conversation.lifeday04b.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int lifeday04b_handleBranch6 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: (Translated from Shyriiwook) You have spoken to those assembled and learned of our ways. Hopefully this day brings you closer to freedom and to harmony and to peace. May you hold Life Day as dear as we do.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I have learned a lot.
|
|
if (response == "s_ebbd31aa")
|
|
{
|
|
//-- [NOTE]
|
|
if (lifeday04b_condition_isOldEnoughNotaWookiee (player, npc))
|
|
{
|
|
doAnimationAction (npc, "nod_head_once");
|
|
|
|
//-- NPC: (Translated from Shyriiwook) For those beings that have been a part of our community for at least thirty cycles, we have collected gifts to help you remember this day.
|
|
string_id message = new string_id (c_stringFile, "s_af9f8883");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What sort of gifts?
|
|
boolean hasResponse0 = false;
|
|
if (lifeday04b_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_afabf3ac");
|
|
|
|
utils.setScriptVar (player, "conversation.lifeday04b.branchId", 7);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.lifeday04b.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lifeday04b_condition_isOldEnoughIsaWookiee (player, npc))
|
|
{
|
|
doAnimationAction (npc, "nod_head_once");
|
|
|
|
//-- NPC: (Translated from Shyriiwook) Since you are one of our own, you have a choice. You may choose a traditional Life Day robe that may only be worn by Wookiees or you may receive another gift.
|
|
string_id message = new string_id (c_stringFile, "s_f0f674e2");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I would like the Wookiee Life Day Robe.
|
|
boolean hasResponse0 = false;
|
|
if (lifeday04b_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I would like another Life Day gift.
|
|
boolean hasResponse1 = false;
|
|
if (lifeday04b_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_352585ec");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_52645cdc");
|
|
|
|
utils.setScriptVar (player, "conversation.lifeday04b.branchId", 9);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.lifeday04b.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lifeday04b_condition__defaultCondition (player, npc))
|
|
{
|
|
doAnimationAction (npc, "nod_head_once");
|
|
|
|
lifeday04b_action_notOldEnoughBoned (player, npc);
|
|
|
|
//-- NPC: (Translated from Shyriiwook) I hope you have learned something of our ways. Since you have not been with our community for thirty cycles, I do not have a gift for you, but I hope you will keep the spirit of Life Day alive in your heart and return to us next year.
|
|
string_id message = new string_id (c_stringFile, "s_b85028af");
|
|
utils.removeScriptVar (player, "conversation.lifeday04b.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int lifeday04b_handleBranch7 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: (Translated from Shyriiwook) For those beings that have been a part of our community for at least thirty cycles, we have collected gifts to help you remember this day.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What sort of gifts?
|
|
if (response == "s_afabf3ac")
|
|
{
|
|
lifeday04b_action_giveRandomGift (player, npc);
|
|
|
|
//-- [NOTE]
|
|
if (lifeday04b_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: (Translated from Shyriiwook) This is a gift that reflects our Wookiee heritage. We hope you will display your gift with pride and remember your time with us.
|
|
string_id message = new string_id (c_stringFile, "s_66b5743f");
|
|
utils.removeScriptVar (player, "conversation.lifeday04b.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int lifeday04b_handleBranch9 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: (Translated from Shyriiwook) Since you are one of our own, you have a choice. You may choose a traditional Life Day robe that may only be worn by Wookiees or you may receive another gift.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I would like the Wookiee Life Day Robe.
|
|
if (response == "s_352585ec")
|
|
{
|
|
lifeday04b_action_giveLifeDayRobe (player, npc);
|
|
|
|
//-- [NOTE]
|
|
if (lifeday04b_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: (Translated from Shyriiwook) Enjoy your gift. Happy Life Day to you.
|
|
string_id message = new string_id (c_stringFile, "s_de3b1306");
|
|
utils.removeScriptVar (player, "conversation.lifeday04b.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I would like another Life Day gift.
|
|
if (response == "s_52645cdc")
|
|
{
|
|
lifeday04b_action_giveRandomGift (player, npc);
|
|
|
|
//-- [NOTE]
|
|
if (lifeday04b_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: (Translated from Shyriiwook) Enjoy your gift. Happy Life Day to you.
|
|
string_id message = new string_id (c_stringFile, "s_de3b1306");
|
|
utils.removeScriptVar (player, "conversation.lifeday04b.branchId");
|
|
|
|
chat.chat (npc, player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
// ======================================================================
|
|
// User Script Triggers
|
|
// ======================================================================
|
|
|
|
trigger OnInitialize ()
|
|
{
|
|
if ((!isMob (self)) || (isPlayer (self)))
|
|
detachScript(self, "conversation.lifeday04b");
|
|
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnAttach ()
|
|
{
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnObjectMenuRequest (obj_id player, menu_info menuInfo)
|
|
{
|
|
int menu = menuInfo.addRootMenu (menu_info_types.CONVERSE_START, null);
|
|
menu_info_data menuInfoData = menuInfo.getMenuItemById (menu);
|
|
menuInfoData.setServerNotify (false);
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnIncapacitated (obj_id killer)
|
|
{
|
|
clearCondition (self, CONDITION_CONVERSABLE);
|
|
detachScript (self, "conversation.lifeday04b");
|
|
|
|
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 (lifeday04b_condition_hasNotStarted (player, npc))
|
|
{
|
|
doAnimationAction (npc, "refuse_offer_affection");
|
|
|
|
//-- NPC: (Translated from Shyriiwook) I'm sorry, This is a private gathering for family and friends.
|
|
string_id message = new string_id (c_stringFile, "s_5bd07d67");
|
|
chat.chat (npc, player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lifeday04b_condition_hasBeenRewarded (player, npc))
|
|
{
|
|
doAnimationAction (npc, "bow2");
|
|
|
|
doAnimationAction (player, "nod_head_once");
|
|
|
|
//-- NPC: (Translated from Shyriiwook) It is good to see you again. Thank you for taking part in our celebration. We hope to see you next year.
|
|
string_id message = new string_id (c_stringFile, "s_fe83540d");
|
|
chat.chat (npc, player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lifeday04b_condition_hasTalkedToCityGuy (player, npc))
|
|
{
|
|
doAnimationAction (npc, "beckon");
|
|
|
|
//-- NPC: (Translated from Shyriiwook) Happy Life Day, friend! We are glad to have you celebrate with us.
|
|
string_id message = new string_id (c_stringFile, "s_f0c65663");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thank you. What do I do?
|
|
boolean hasResponse0 = false;
|
|
if (lifeday04b_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think I will do this later.
|
|
boolean hasResponse1 = false;
|
|
if (lifeday04b_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_8a712dbc");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_6cd2786a");
|
|
|
|
utils.setScriptVar (player, "conversation.lifeday04b.branchId", 3);
|
|
|
|
npcStartConversation (player, npc, "lifeday04b", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (lifeday04b_condition_spokeWithEveryone (player, npc))
|
|
{
|
|
doAnimationAction (npc, "explain");
|
|
|
|
//-- NPC: (Translated from Shyriiwook) You have spoken to those assembled and learned of our ways. Hopefully this day brings you closer to freedom and to harmony and to peace. May you hold Life Day as dear as we do.
|
|
string_id message = new string_id (c_stringFile, "s_b874dc09");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I have learned a lot.
|
|
boolean hasResponse0 = false;
|
|
if (lifeday04b_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_ebbd31aa");
|
|
|
|
utils.setScriptVar (player, "conversation.lifeday04b.branchId", 6);
|
|
|
|
npcStartConversation (player, npc, "lifeday04b", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (npc, "Error: All conditions for OnStartNpcConversation were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
trigger OnNpcConversationResponse (string conversationId, obj_id player, string_id response)
|
|
{
|
|
if (conversationId != "lifeday04b")
|
|
return SCRIPT_CONTINUE;
|
|
|
|
obj_id npc = self;
|
|
|
|
int branchId = utils.getIntScriptVar (player, "conversation.lifeday04b.branchId");
|
|
|
|
if (branchId == 3 && lifeday04b_handleBranch3 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 6 && lifeday04b_handleBranch6 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 7 && lifeday04b_handleBranch7 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 9 && lifeday04b_handleBranch9 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
chat.chat (npc, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
|
|
|
|
utils.removeScriptVar (player, "conversation.lifeday04b.branchId");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
|