mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
2670 lines
71 KiB
Plaintext
2670 lines
71 KiB
Plaintext
// ======================================================================
|
|
//
|
|
// ep3_omwaan.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.utils;
|
|
|
|
// ======================================================================
|
|
// Script Constants
|
|
// ======================================================================
|
|
|
|
string c_stringFile = "conversation/ep3_omwaan";
|
|
|
|
// ======================================================================
|
|
// Script Conditions
|
|
// ======================================================================
|
|
|
|
boolean ep3_omwaan_condition__defaultCondition (obj_id player, obj_id npc)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean ep3_omwaan_condition_doesnt_know_Shiryyywook (obj_id player, obj_id npc)
|
|
{
|
|
return utils.canSpeakWookiee(player,npc);
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Actions
|
|
// ======================================================================
|
|
|
|
void ep3_omwaan_action_grantSkill_Shiryyywook (obj_id player, obj_id npc)
|
|
{
|
|
playMusic(player, "sound/music_acq_academic.snd");
|
|
grantSkill(player, "social_language_wookiee_comprehend");
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script %TO Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Script %DI Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Script %DF Tokens
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// handleBranch<n> Functions
|
|
// ======================================================================
|
|
|
|
int ep3_omwaan_handleBranch1 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Listen. You would be wise to pick up the Wookiee language if you want to do business here on Kashyyyk.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Can you teach me?
|
|
if (response == "s_246")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: I would be happy to teach you. But I'm curious... what brings you to Kashyyyk?
|
|
string_id message = new string_id (c_stringFile, "s_248");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Adventure.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: It is the will of the Emperor.
|
|
boolean hasResponse1 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: The Force has drawn me to this world.
|
|
boolean hasResponse2 = false;
|
|
if (ep3_omwaan_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_250");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_298");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_306");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 2);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm not interested in that.
|
|
if (response == "s_374")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Suit yourself. But I think you will find it hard to make your way on this planet without knowing how to converse with the locals.
|
|
string_id message = new string_id (c_stringFile, "s_376");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Good bye.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_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_378");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 34);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch2 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I would be happy to teach you. But I'm curious... what brings you to Kashyyyk?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Adventure.
|
|
if (response == "s_250")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: There's plenty of that around here. What sort of adventure do you seek? Hunting? Most travelers prefer hunting! Makes sense, too. Many powerful beasts are indigenous to Kashyyyk. Some are legend across the galaxy! All of them are superb prizes for a master hunter.
|
|
string_id message = new string_id (c_stringFile, "s_252");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: You bet! That sounds exciting!
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm not hunting creatures.
|
|
boolean hasResponse1 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Would you mind teaching me now?
|
|
boolean hasResponse2 = false;
|
|
if (ep3_omwaan_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_254");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_262");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_282");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: It is the will of the Emperor.
|
|
if (response == "s_298")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Ah. Heh. Yes! But of course! You know, I tend to keep my nose out of politics. The Galactic Civil War is certainly fascinating... troubling and tragic... but still...
|
|
string_id message = new string_id (c_stringFile, "s_300");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Teach me the Wookiee language now.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_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_302");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 15);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: The Force has drawn me to this world.
|
|
if (response == "s_306")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: I tend to agree. This planet has a strong mystical energy. There are many strange happenings... many strange things.
|
|
string_id message = new string_id (c_stringFile, "s_308");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Like what?
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Will you teach me the Wookiee language?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_omwaan_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_310");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_362");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 17);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch3 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: There's plenty of that around here. What sort of adventure do you seek? Hunting? Most travelers prefer hunting! Makes sense, too. Many powerful beasts are indigenous to Kashyyyk. Some are legend across the galaxy! All of them are superb prizes for a master hunter.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You bet! That sounds exciting!
|
|
if (response == "s_254")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
ep3_omwaan_action_grantSkill_Shiryyywook (player, npc);
|
|
|
|
//-- NPC: Ah yes! The excitement and challenge are second to none! And things are much simpler when you know the Wookiee language.
|
|
string_id message = new string_id (c_stringFile, "s_256");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thank you!
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_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_258");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 4);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm not hunting creatures.
|
|
if (response == "s_262")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Oh... I see.
|
|
string_id message = new string_id (c_stringFile, "s_264");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What I hunt is far more dangerous.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Teach me the language!
|
|
boolean hasResponse1 = false;
|
|
if (ep3_omwaan_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_266");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_278");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 6);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Would you mind teaching me now?
|
|
if (response == "s_282")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
ep3_omwaan_action_grantSkill_Shiryyywook (player, npc);
|
|
|
|
//-- NPC: I was just making idle chat. A lot of interesting travelers come this way... I like to say hello when I get the chance. You can't blame me for that.
|
|
string_id message = new string_id (c_stringFile, "s_284");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thank you!
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Good bye.
|
|
boolean hasResponse1 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: You should mind your own business!
|
|
boolean hasResponse2 = false;
|
|
if (ep3_omwaan_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_286");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_290");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_294");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 11);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch4 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Ah yes! The excitement and challenge are second to none! And things are much simpler when you know the Wookiee language.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thank you!
|
|
if (response == "s_258")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You are most welcome!
|
|
string_id message = new string_id (c_stringFile, "s_260");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch6 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Oh... I see.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What I hunt is far more dangerous.
|
|
if (response == "s_266")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
ep3_omwaan_action_grantSkill_Shiryyywook (player, npc);
|
|
|
|
//-- NPC: Understood. I don't think I need to know any more than that, my friend.
|
|
string_id message = new string_id (c_stringFile, "s_268");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: A wise choice.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Thank you.
|
|
boolean hasResponse1 = false;
|
|
if (ep3_omwaan_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_270");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_274");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 7);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Teach me the language!
|
|
if (response == "s_278")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
ep3_omwaan_action_grantSkill_Shiryyywook (player, npc);
|
|
|
|
//-- NPC: Relax! Whatever you say... here you go.
|
|
string_id message = new string_id (c_stringFile, "s_280");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch7 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Understood. I don't think I need to know any more than that, my friend.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: A wise choice.
|
|
if (response == "s_270")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Farewell.
|
|
string_id message = new string_id (c_stringFile, "s_272");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thank you.
|
|
if (response == "s_274")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You're welcome.
|
|
string_id message = new string_id (c_stringFile, "s_276");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch11 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I was just making idle chat. A lot of interesting travelers come this way... I like to say hello when I get the chance. You can't blame me for that.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thank you!
|
|
if (response == "s_286")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You are most welcome!
|
|
string_id message = new string_id (c_stringFile, "s_288");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Good bye.
|
|
if (response == "s_290")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Be careful, my friend.
|
|
string_id message = new string_id (c_stringFile, "s_292");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You should mind your own business!
|
|
if (response == "s_294")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Hmph!
|
|
string_id message = new string_id (c_stringFile, "s_296");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch15 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Ah. Heh. Yes! But of course! You know, I tend to keep my nose out of politics. The Galactic Civil War is certainly fascinating... troubling and tragic... but still...
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Teach me the Wookiee language now.
|
|
if (response == "s_302")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
ep3_omwaan_action_grantSkill_Shiryyywook (player, npc);
|
|
|
|
//-- NPC: As you wish.
|
|
string_id message = new string_id (c_stringFile, "s_304");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch17 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I tend to agree. This planet has a strong mystical energy. There are many strange happenings... many strange things.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Like what?
|
|
if (response == "s_310")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: I have heard tales of a place... a vast cavern found deep in the Dead Forest... brimming with mystery. I hope to visit there once my arm is repaired.
|
|
string_id message = new string_id (c_stringFile, "s_312");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What is wrong with your arm?
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Is that a cybernetic arm?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'd like to learn the Wookiee language now.
|
|
boolean hasResponse2 = false;
|
|
if (ep3_omwaan_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_314");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_326");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_350");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 18);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Will you teach me the Wookiee language?
|
|
if (response == "s_362")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
ep3_omwaan_action_grantSkill_Shiryyywook (player, npc);
|
|
|
|
//-- NPC: Of course!
|
|
string_id message = new string_id (c_stringFile, "s_364");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thank you!
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Good bye.
|
|
boolean hasResponse1 = false;
|
|
if (ep3_omwaan_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_366");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_370");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 31);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch18 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I have heard tales of a place... a vast cavern found deep in the Dead Forest... brimming with mystery. I hope to visit there once my arm is repaired.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What is wrong with your arm?
|
|
if (response == "s_314")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Well, my left arm is pretty healthy... My right arm, on the other hand, sustained heavy damage in a battle with bandits just outside of the city.
|
|
string_id message = new string_id (c_stringFile, "s_316");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Bandits?
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_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_318");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 19);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Is that a cybernetic arm?
|
|
if (response == "s_326")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Yes! And it would be very beneficial to me were it not for the damage I sustained in my last encounter.
|
|
string_id message = new string_id (c_stringFile, "s_328");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Encounter with whom?
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_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_330");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 22);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'd like to learn the Wookiee language now.
|
|
if (response == "s_350")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
ep3_omwaan_action_grantSkill_Shiryyywook (player, npc);
|
|
|
|
//-- NPC: Of course!
|
|
string_id message = new string_id (c_stringFile, "s_352");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thank you!
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Good bye.
|
|
boolean hasResponse1 = false;
|
|
if (ep3_omwaan_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_354");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_358");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 28);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch19 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Well, my left arm is pretty healthy... My right arm, on the other hand, sustained heavy damage in a battle with bandits just outside of the city.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Bandits?
|
|
if (response == "s_318")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
ep3_omwaan_action_grantSkill_Shiryyywook (player, npc);
|
|
|
|
//-- NPC: Rotten lousy bandits! They patrol the forest outside of Kachirho to prey on adventurers like you and me. Be very careful out there.
|
|
string_id message = new string_id (c_stringFile, "s_320");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thank you!
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_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_322");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 20);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch20 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Rotten lousy bandits! They patrol the forest outside of Kachirho to prey on adventurers like you and me. Be very careful out there.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thank you!
|
|
if (response == "s_322")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You're welcome!
|
|
string_id message = new string_id (c_stringFile, "s_324");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch22 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! And it would be very beneficial to me were it not for the damage I sustained in my last encounter.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Encounter with whom?
|
|
if (response == "s_330")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Bandits. Just outside of town... be very careful!
|
|
string_id message = new string_id (c_stringFile, "s_332");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I will.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm not afraid!
|
|
boolean hasResponse1 = false;
|
|
if (ep3_omwaan_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_334");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_342");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 23);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch23 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Bandits. Just outside of town... be very careful!
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I will.
|
|
if (response == "s_334")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
ep3_omwaan_action_grantSkill_Shiryyywook (player, npc);
|
|
|
|
//-- NPC: Good! Very good idea. Oh... and let's discuss the Wookiee language, now.
|
|
string_id message = new string_id (c_stringFile, "s_336");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thank you!
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_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_338");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 24);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm not afraid!
|
|
if (response == "s_342")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
ep3_omwaan_action_grantSkill_Shiryyywook (player, npc);
|
|
|
|
//-- NPC: Of course not! And why should you be? Say - let me tell you about the Wookiee's native tongue...
|
|
string_id message = new string_id (c_stringFile, "s_344");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Thank you!
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_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_346");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 26);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch24 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Good! Very good idea. Oh... and let's discuss the Wookiee language, now.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thank you!
|
|
if (response == "s_338")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Not a problem!
|
|
string_id message = new string_id (c_stringFile, "s_340");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch26 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Of course not! And why should you be? Say - let me tell you about the Wookiee's native tongue...
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thank you!
|
|
if (response == "s_346")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Not a problem!
|
|
string_id message = new string_id (c_stringFile, "s_348");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch28 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Of course!
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thank you!
|
|
if (response == "s_354")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You're welcome, my friend!
|
|
string_id message = new string_id (c_stringFile, "s_356");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Good bye.
|
|
if (response == "s_358")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Farewell!
|
|
string_id message = new string_id (c_stringFile, "s_360");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch31 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Of course!
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Thank you!
|
|
if (response == "s_366")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You're welcome, my friend!
|
|
string_id message = new string_id (c_stringFile, "s_368");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Good bye.
|
|
if (response == "s_370")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Farewell!
|
|
string_id message = new string_id (c_stringFile, "s_372");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch34 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Suit yourself. But I think you will find it hard to make your way on this planet without knowing how to converse with the locals.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Good bye.
|
|
if (response == "s_378")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Farewell!
|
|
string_id message = new string_id (c_stringFile, "s_380");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch36 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: This place has changed a lot since I was last here. The Empire has exerted much tighter control... and while they've modernized much of Kachirho, they've also dragged their war along with them!
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm looking for adventure.
|
|
if (response == "s_384")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Have you visited the great tree here in Kachirho? There are many prominent figures there - many that can show you the way to high adventure on Kashyyyk.
|
|
string_id message = new string_id (c_stringFile, "s_386");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Good idea!
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No. Not yet.
|
|
boolean hasResponse1 = false;
|
|
if (ep3_omwaan_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_388");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_392");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 37);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Modern? This place?
|
|
if (response == "s_396")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Sure! You see the starport over there? The Imperial communications tower? The invisible personnel scanning matrix? Well, I guess you can't 'see' that, exactly.
|
|
string_id message = new string_id (c_stringFile, "s_398");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: You dislike technology?
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: This place looks pretty primitive to me.
|
|
boolean hasResponse1 = false;
|
|
if (ep3_omwaan_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_400");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_440");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 40);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Ah! The war's not so bad.
|
|
if (response == "s_444")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Really? What makes you say that? I can only imagine that you are unfamiliar with the far-reaching impact of the horror of this conflict! Perhaps you have been in a coma of some sort?
|
|
string_id message = new string_id (c_stringFile, "s_446");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: The Empire will win this war.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: The Empire is doomed.
|
|
boolean hasResponse1 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I don't care about the war.
|
|
boolean hasResponse2 = false;
|
|
if (ep3_omwaan_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_404");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_420");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_436");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 41);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch37 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Have you visited the great tree here in Kachirho? There are many prominent figures there - many that can show you the way to high adventure on Kashyyyk.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Good idea!
|
|
if (response == "s_388")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: You should also talk to my friend here, Vryyyr. He is an accomplished hunter and native of Kashyyyk!
|
|
string_id message = new string_id (c_stringFile, "s_390");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No. Not yet.
|
|
if (response == "s_392")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Then I recommend it! You should also talk to my friend here, Vryyyr. He is an accomplished hunter and native of Kashyyyk!
|
|
string_id message = new string_id (c_stringFile, "s_394");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch40 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Sure! You see the starport over there? The Imperial communications tower? The invisible personnel scanning matrix? Well, I guess you can't 'see' that, exactly.
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You dislike technology?
|
|
if (response == "s_400")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Of course not! I invested in this cybernetic arm didn't I? Don't get me wrong: I'm not concerned about the modernization of Kashyyyk. I'm just concerned that the Empire is at war... and they're here...
|
|
string_id message = new string_id (c_stringFile, "s_402");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: The Empire will win this war.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: The Empire is doomed.
|
|
boolean hasResponse1 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I don't care about the war.
|
|
boolean hasResponse2 = false;
|
|
if (ep3_omwaan_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_404");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_420");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_436");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 41);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: This place looks pretty primitive to me.
|
|
if (response == "s_440")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Yes. You're right. Overall you will find Kashyyyk to be a very primitive planet. The Wookiees do not favor advanced technology. While they have some impressive engineering, they don't embrace modern technology as the Galactic Empire does.
|
|
string_id message = new string_id (c_stringFile, "s_442");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch41 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Of course not! I invested in this cybernetic arm didn't I? Don't get me wrong: I'm not concerned about the modernization of Kashyyyk. I'm just concerned that the Empire is at war... and they're here...
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: The Empire will win this war.
|
|
if (response == "s_404")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: And you think this will be a good thing for the galaxy?
|
|
string_id message = new string_id (c_stringFile, "s_406");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: The best thing.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No. It will ruin us all.
|
|
boolean hasResponse1 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: [Glare at him with intensity.]
|
|
boolean hasResponse2 = false;
|
|
if (ep3_omwaan_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_408");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_412");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_416");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 42);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: The Empire is doomed.
|
|
if (response == "s_420")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Oh really? What have you heard that makes you think the Empire is going to lose the war?
|
|
string_id message = new string_id (c_stringFile, "s_422");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Let's just say I know things...
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: The Rebellion has dealt crushing blows!
|
|
boolean hasResponse1 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: It's simple: they're idiots!
|
|
boolean hasResponse2 = false;
|
|
if (ep3_omwaan_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_424");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_428");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_432");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 46);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I don't care about the war.
|
|
if (response == "s_436")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Fortunate for you. I wish I could forget about it.
|
|
string_id message = new string_id (c_stringFile, "s_438");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch42 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: And you think this will be a good thing for the galaxy?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: The best thing.
|
|
if (response == "s_408")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Well... it's good to meet a person of conviction!
|
|
string_id message = new string_id (c_stringFile, "s_410");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: No. It will ruin us all.
|
|
if (response == "s_412")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: I can't say if I agree with you one hundred percent, but I have a very bad feeling about it...
|
|
string_id message = new string_id (c_stringFile, "s_414");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: [Glare at him with intensity.]
|
|
if (response == "s_416")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Maybe we shouldn't talk politics, my friend.
|
|
string_id message = new string_id (c_stringFile, "s_418");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch46 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Oh really? What have you heard that makes you think the Empire is going to lose the war?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Let's just say I know things...
|
|
if (response == "s_424")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Let's also say that I would prefer not to know things that could put my life in jeopardy!
|
|
string_id message = new string_id (c_stringFile, "s_426");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: The Rebellion has dealt crushing blows!
|
|
if (response == "s_428")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: It would be wise to keep discussion of the Rebellion to a minimum when in the shadow of an Imperial military outpost!
|
|
string_id message = new string_id (c_stringFile, "s_430");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: It's simple: they're idiots!
|
|
if (response == "s_432")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Heh. Keep your voice down. The Imperial watchtower at the starport can hear every word we say... if they wish...
|
|
string_id message = new string_id (c_stringFile, "s_434");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
int ep3_omwaan_handleBranch52 (obj_id player, obj_id npc, string_id response)
|
|
{
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Really? What makes you say that? I can only imagine that you are unfamiliar with the far-reaching impact of the horror of this conflict! Perhaps you have been in a coma of some sort?
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: The Empire will win this war.
|
|
if (response == "s_404")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: And you think this will be a good thing for the galaxy?
|
|
string_id message = new string_id (c_stringFile, "s_406");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: The best thing.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: No. It will ruin us all.
|
|
boolean hasResponse1 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: [Glare at him with intensity.]
|
|
boolean hasResponse2 = false;
|
|
if (ep3_omwaan_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_408");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_412");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_416");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 42);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: The Empire is doomed.
|
|
if (response == "s_420")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Oh really? What have you heard that makes you think the Empire is going to lose the war?
|
|
string_id message = new string_id (c_stringFile, "s_422");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Let's just say I know things...
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: The Rebellion has dealt crushing blows!
|
|
boolean hasResponse1 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: It's simple: they're idiots!
|
|
boolean hasResponse2 = false;
|
|
if (ep3_omwaan_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_424");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_428");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_432");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 46);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I don't care about the war.
|
|
if (response == "s_436")
|
|
{
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: Fortunate for you. I wish I could forget about it.
|
|
string_id message = new string_id (c_stringFile, "s_438");
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
npcEndConversationWithMessage (player, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
}
|
|
|
|
return SCRIPT_DEFAULT;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
// ======================================================================
|
|
// User Script Triggers
|
|
// ======================================================================
|
|
|
|
trigger OnInitialize ()
|
|
{
|
|
if ((!isMob (self)) || (isPlayer (self)))
|
|
detachScript(self, "conversation.ep3_omwaan");
|
|
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
setCondition (self, CONDITION_INTERESTING);
|
|
setInvulnerable(self, true);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnAttach ()
|
|
{
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
setCondition (self, CONDITION_INTERESTING);
|
|
setInvulnerable(self, true);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnObjectMenuRequest (obj_id player, menu_info menuInfo)
|
|
{
|
|
int menu = menuInfo.addRootMenu (menu_info_types.CONVERSE_START, null);
|
|
menu_info_data menuInfoData = menuInfo.getMenuItemById (menu);
|
|
menuInfoData.setServerNotify (false);
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnIncapacitated (obj_id killer)
|
|
{
|
|
clearCondition (self, CONDITION_CONVERSABLE);
|
|
detachScript (self, "conversation.ep3_omwaan");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Triggers
|
|
// ======================================================================
|
|
|
|
//-- This function should move to base_class.java
|
|
boolean npcStartConversation(obj_id player, obj_id npc, string convoName, string_id greetingId, prose_package greetingProse, string_id[] responses)
|
|
{
|
|
Object[] objects = new Object[responses.length];
|
|
System.arraycopy(responses, 0, objects, 0, responses.length);
|
|
return npcStartConversation(player, npc, convoName, greetingId, greetingProse, objects);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
trigger OnStartNpcConversation (obj_id player)
|
|
{
|
|
obj_id npc = self;
|
|
|
|
if (ai_lib.isInCombat (npc) || ai_lib.isInCombat (player))
|
|
return SCRIPT_OVERRIDE;
|
|
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition_doesnt_know_Shiryyywook (player, npc))
|
|
{
|
|
//-- NPC: Listen. You would be wise to pick up the Wookiee language if you want to do business here on Kashyyyk.
|
|
string_id message = new string_id (c_stringFile, "s_244");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Can you teach me?
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm not interested in that.
|
|
boolean hasResponse1 = false;
|
|
if (ep3_omwaan_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_246");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_374");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 1);
|
|
|
|
npcStartConversation (player, npc, "ep3_omwaan", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
//-- NPC: This place has changed a lot since I was last here. The Empire has exerted much tighter control... and while they've modernized much of Kachirho, they've also dragged their war along with them!
|
|
string_id message = new string_id (c_stringFile, "s_382");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'm looking for adventure.
|
|
boolean hasResponse0 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Modern? This place?
|
|
boolean hasResponse1 = false;
|
|
if (ep3_omwaan_condition__defaultCondition (player, npc))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Ah! The war's not so bad.
|
|
boolean hasResponse2 = false;
|
|
if (ep3_omwaan_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_384");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_396");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_444");
|
|
|
|
utils.setScriptVar (player, "conversation.ep3_omwaan.branchId", 36);
|
|
|
|
npcStartConversation (player, npc, "ep3_omwaan", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (npc, player, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (npc, "Error: All conditions for OnStartNpcConversation were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
trigger OnNpcConversationResponse (string conversationId, obj_id player, string_id response)
|
|
{
|
|
if (conversationId != "ep3_omwaan")
|
|
return SCRIPT_CONTINUE;
|
|
|
|
obj_id npc = self;
|
|
|
|
int branchId = utils.getIntScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
if (branchId == 1 && ep3_omwaan_handleBranch1 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 2 && ep3_omwaan_handleBranch2 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 3 && ep3_omwaan_handleBranch3 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 4 && ep3_omwaan_handleBranch4 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 6 && ep3_omwaan_handleBranch6 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 7 && ep3_omwaan_handleBranch7 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 11 && ep3_omwaan_handleBranch11 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 15 && ep3_omwaan_handleBranch15 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 17 && ep3_omwaan_handleBranch17 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 18 && ep3_omwaan_handleBranch18 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 19 && ep3_omwaan_handleBranch19 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 20 && ep3_omwaan_handleBranch20 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 22 && ep3_omwaan_handleBranch22 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 23 && ep3_omwaan_handleBranch23 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 24 && ep3_omwaan_handleBranch24 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 26 && ep3_omwaan_handleBranch26 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 28 && ep3_omwaan_handleBranch28 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 31 && ep3_omwaan_handleBranch31 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 34 && ep3_omwaan_handleBranch34 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 36 && ep3_omwaan_handleBranch36 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 37 && ep3_omwaan_handleBranch37 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 40 && ep3_omwaan_handleBranch40 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 41 && ep3_omwaan_handleBranch41 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 42 && ep3_omwaan_handleBranch42 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 46 && ep3_omwaan_handleBranch46 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
if (branchId == 52 && ep3_omwaan_handleBranch52 (player, npc, response) == SCRIPT_CONTINUE)
|
|
return SCRIPT_CONTINUE;
|
|
|
|
chat.chat (npc, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
|
|
|
|
utils.removeScriptVar (player, "conversation.ep3_omwaan.branchId");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
|