mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-08-03 03:15:55 -04:00
1025 lines
33 KiB
Plaintext
1025 lines
33 KiB
Plaintext
// ======================================================================
|
|
//
|
|
// heraldtatooine1.script
|
|
//
|
|
//
|
|
//
|
|
// DO NOT EDIT THIS AUTO-GENERATED FILE. PLEASE USE THE CONVERATION EDITOR!
|
|
//
|
|
// ======================================================================
|
|
|
|
// ======================================================================
|
|
// Library Includes
|
|
// ======================================================================
|
|
|
|
include library.ai_lib;
|
|
include library.chat;
|
|
|
|
// ======================================================================
|
|
// Script Constants
|
|
// ======================================================================
|
|
|
|
string c_stringFile = "conversation/heraldtatooine1";
|
|
|
|
// ======================================================================
|
|
// Script Conditions
|
|
// ======================================================================
|
|
|
|
boolean heraldtatooine1_condition__defaultCondition (obj_id player, obj_id npc)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Actions
|
|
// ======================================================================
|
|
|
|
void heraldtatooine1_action__defaultAction (obj_id player, obj_id npc)
|
|
{
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void heraldtatooine1_action_waypoint1 (obj_id player, obj_id npc)
|
|
{
|
|
location fort = new location(-3960, 0, 6233);
|
|
obj_id waypoint = createWaypointInDatapad(player, fort);
|
|
setWaypointName(waypoint, "Fort Tusken");
|
|
setWaypointColor( waypoint, "blue" );
|
|
setWaypointVisible( waypoint, true );
|
|
setWaypointActive( waypoint, true );
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void heraldtatooine1_action_waypoint2 (obj_id player, obj_id npc)
|
|
{
|
|
location village = new location(-5322, 0, -4444);
|
|
obj_id waypoint = createWaypointInDatapad(player, village);
|
|
setWaypointName(waypoint, "Tusken Village");
|
|
setWaypointColor( waypoint, "blue" );
|
|
setWaypointVisible( waypoint, true );
|
|
setWaypointActive( waypoint, true );
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void heraldtatooine1_action_shake (obj_id player, obj_id npc)
|
|
{
|
|
doAnimationAction(npc, "shake_head_no");
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Triggers
|
|
// ======================================================================
|
|
|
|
trigger OnInitialize ()
|
|
{
|
|
if ((!isMob (self)) || (isPlayer (self)))
|
|
detachScript(self, "npc.conversation.heraldtatooine1");
|
|
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
trigger OnAttach ()
|
|
{
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
trigger OnObjectMenuRequest (obj_id player, menu_info menuInfo)
|
|
{
|
|
int menu = menuInfo.addRootMenu (menu_info_types.CONVERSE_START, null);
|
|
menu_info_data menuInfoData = menuInfo.getMenuItemById (menu);
|
|
menuInfoData.setServerNotify (false);
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
// ----------------------------------------------------------------------
|
|
|
|
trigger OnIncapacitated (obj_id killer)
|
|
{
|
|
clearCondition (self, CONDITION_CONVERSABLE);
|
|
detachScript (self, "npc.conversation.heraldtatooine1");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
trigger OnStartNpcConversation (obj_id player)
|
|
{
|
|
if (ai_lib.isInCombat (self) || ai_lib.isInCombat (player))
|
|
return SCRIPT_OVERRIDE;
|
|
|
|
//-- [NOTE]
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: You seem a bit... weak. Are you a petty commoner? You must be. Otherwise, you'd have enough sense to stay away from a bounty hunter. What do you want, then?
|
|
string_id message = new string_id (c_stringFile, "s_70ffe9b9");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: There's no need to be rude, ma'am.
|
|
boolean hasResponse0 = false;
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Watch your tone!
|
|
boolean hasResponse1 = false;
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_7481bfea");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_11c73436");
|
|
|
|
setObjVar (player, "conversation.heraldtatooine1.branchId", 1);
|
|
|
|
npcStartConversation (player, self, "heraldtatooine1", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (self, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnStartNpcConversation were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
trigger OnNpcConversationResponse (string conversationId, obj_id player, string_id response)
|
|
{
|
|
if (conversationId != "heraldtatooine1")
|
|
return SCRIPT_CONTINUE;
|
|
|
|
int branchId = getIntObjVar (player, "conversation.heraldtatooine1.branchId");
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You seem a bit... weak. Are you a petty commoner? You must be. Otherwise, you'd have enough sense to stay away from a bounty hunter. What do you want, then?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: There's no need to be rude, ma'am.
|
|
if (branchId == 1 && response == "s_7481bfea")
|
|
{
|
|
//-- [NOTE]
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I have every reason to be. You have not suffered like I have suffered.
|
|
string_id message = new string_id (c_stringFile, "s_7133e831");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: How have you suffered?
|
|
boolean hasResponse0 = false;
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I don't have time for this. Bye!
|
|
boolean hasResponse1 = false;
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_8026269");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_e03237fd");
|
|
|
|
setObjVar (player, "conversation.heraldtatooine1.branchId", 2);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.heraldtatooine1.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'You seem a bit... weak. Are you a petty commoner? You must be. Otherwise, you'd have enough sense to stay away from a bounty hunter. What do you want, then?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You seem a bit... weak. Are you a petty commoner? You must be. Otherwise, you'd have enough sense to stay away from a bounty hunter. What do you want, then?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Watch your tone!
|
|
if (branchId == 1 && response == "s_11c73436")
|
|
{
|
|
//-- [NOTE]
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Excuse me? You are daft, aren't you? In fact, I'd bet you're so daft you'd be allied with those Tuskens. Tell me I'm right. Please.
|
|
string_id message = new string_id (c_stringFile, "s_c5e5fb33");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: You're trying to blame something on me.
|
|
boolean hasResponse0 = false;
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Filthy Tuskens? Never!
|
|
boolean hasResponse1 = false;
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_3cf68ea6");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d00b322a");
|
|
|
|
setObjVar (player, "conversation.heraldtatooine1.branchId", 5);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.heraldtatooine1.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'You seem a bit... weak. Are you a petty commoner? You must be. Otherwise, you'd have enough sense to stay away from a bounty hunter. What do you want, then?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I have every reason to be. You have not suffered like I have suffered.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: How have you suffered?
|
|
if (branchId == 2 && response == "s_8026269")
|
|
{
|
|
//-- [NOTE]
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
heraldtatooine1_action_shake (player, self);
|
|
|
|
//-- NPC: It's a painful subject, but if you must know: the Tuskens destroyed my family and I have brought it upon myself to rid Tatooine of their worthless existence.
|
|
string_id message = new string_id (c_stringFile, "s_65daca4c");
|
|
removeObjVar (player, "conversation.heraldtatooine1.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I have every reason to be. You have not suffered like I have suffered.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I have every reason to be. You have not suffered like I have suffered.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I don't have time for this. Bye!
|
|
if (branchId == 2 && response == "s_e03237fd")
|
|
{
|
|
//-- [NOTE]
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: May the desert worms rot your soul.
|
|
string_id message = new string_id (c_stringFile, "s_74f40f3a");
|
|
removeObjVar (player, "conversation.heraldtatooine1.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I have every reason to be. You have not suffered like I have suffered.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Excuse me? You are daft, aren't you? In fact, I'd bet you're so daft you'd be allied with those Tuskens. Tell me I'm right. Please.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You're trying to blame something on me.
|
|
if (branchId == 5 && response == "s_3cf68ea6")
|
|
{
|
|
//-- [NOTE]
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: I'm a tired bounty hunter and my patience is lacking. I've been so consumed with killing the Tuskens that I've been left empty, exhausted. But I must destroy them... it is my destiny.
|
|
string_id message = new string_id (c_stringFile, "s_c7330dee");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Why do you hate them so much?
|
|
boolean hasResponse0 = false;
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_e3ce72c0");
|
|
|
|
setObjVar (player, "conversation.heraldtatooine1.branchId", 6);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.heraldtatooine1.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Excuse me? You are daft, aren't you? In fact, I'd bet you're so daft you'd be allied with those Tuskens. Tell me I'm right. Please.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Excuse me? You are daft, aren't you? In fact, I'd bet you're so daft you'd be allied with those Tuskens. Tell me I'm right. Please.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Filthy Tuskens? Never!
|
|
if (branchId == 5 && response == "s_d00b322a")
|
|
{
|
|
//-- [NOTE]
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: You may actually have more sense than a kreetle. All right. I suppose I'll let you live. Filthy Tuskens, you say? I have information regarding the whereabouts of several. Interested?
|
|
string_id message = new string_id (c_stringFile, "s_fd76ac2c");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What will it cost me?
|
|
boolean hasResponse0 = false;
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Yes, I am.
|
|
boolean hasResponse1 = false;
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_9dbca073");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_36a4e374");
|
|
|
|
setObjVar (player, "conversation.heraldtatooine1.branchId", 12);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.heraldtatooine1.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Excuse me? You are daft, aren't you? In fact, I'd bet you're so daft you'd be allied with those Tuskens. Tell me I'm right. Please.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: I'm a tired bounty hunter and my patience is lacking. I've been so consumed with killing the Tuskens that I've been left empty, exhausted. But I must destroy them... it is my destiny.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Why do you hate them so much?
|
|
if (branchId == 6 && response == "s_e3ce72c0")
|
|
{
|
|
//-- [NOTE]
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
heraldtatooine1_action_shake (player, self);
|
|
|
|
//-- NPC: It's a painful subject, but if you must know: the Tuskens destroyed my family and I have brought it upon myself to rid Tatooine of their worthless existence.
|
|
string_id message = new string_id (c_stringFile, "s_65daca4c");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Let me help.
|
|
boolean hasResponse0 = false;
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Sad story. I wish I could help.
|
|
boolean hasResponse1 = false;
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_14495ea");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_f48827a8");
|
|
|
|
setObjVar (player, "conversation.heraldtatooine1.branchId", 7);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.heraldtatooine1.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I'm a tired bounty hunter and my patience is lacking. I've been so consumed with killing the Tuskens that I've been left empty, exhausted. But I must destroy them... it is my destiny.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: It's a painful subject, but if you must know: the Tuskens destroyed my family and I have brought it upon myself to rid Tatooine of their worthless existence.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Let me help.
|
|
if (branchId == 7 && response == "s_14495ea")
|
|
{
|
|
//-- [NOTE]
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: How could you help? Unless... you help me fight them. I have two locations in which I heavily hunt these desert fiends. Fort Tusken and the Tusken Village.
|
|
string_id message = new string_id (c_stringFile, "s_21aa21ca");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Where is Fort Tusken?
|
|
boolean hasResponse0 = false;
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Where is the Tusken Village?
|
|
boolean hasResponse1 = false;
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_39f16ceb");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_66f743cb");
|
|
|
|
setObjVar (player, "conversation.heraldtatooine1.branchId", 8);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.heraldtatooine1.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'It's a painful subject, but if you must know: the Tuskens destroyed my family and I have brought it upon myself to rid Tatooine of their worthless existence.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: It's a painful subject, but if you must know: the Tuskens destroyed my family and I have brought it upon myself to rid Tatooine of their worthless existence.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Sad story. I wish I could help.
|
|
if (branchId == 7 && response == "s_f48827a8")
|
|
{
|
|
//-- [NOTE]
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Yeah, thanks. Your sentiments are shallow. Get lost before your fate is like that of the Tuskens... friend.
|
|
string_id message = new string_id (c_stringFile, "s_1421ed7f");
|
|
removeObjVar (player, "conversation.heraldtatooine1.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'It's a painful subject, but if you must know: the Tuskens destroyed my family and I have brought it upon myself to rid Tatooine of their worthless existence.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: How could you help? Unless... you help me fight them. I have two locations in which I heavily hunt these desert fiends. Fort Tusken and the Tusken Village.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where is Fort Tusken?
|
|
if (branchId == 8 && response == "s_39f16ceb")
|
|
{
|
|
//-- [NOTE]
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
heraldtatooine1_action_waypoint1 (player, self);
|
|
|
|
//-- NPC: I'll download the information into your datapad. It's the most simple of explanations. It should be the exact location. I could find the place with my eyes closed.
|
|
string_id message = new string_id (c_stringFile, "s_845c935e");
|
|
removeObjVar (player, "conversation.heraldtatooine1.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'How could you help? Unless... you help me fight them. I have two locations in which I heavily hunt these desert fiends. Fort Tusken and the Tusken Village.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: How could you help? Unless... you help me fight them. I have two locations in which I heavily hunt these desert fiends. Fort Tusken and the Tusken Village.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Where is the Tusken Village?
|
|
if (branchId == 8 && response == "s_66f743cb")
|
|
{
|
|
//-- [NOTE]
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
heraldtatooine1_action_waypoint2 (player, self);
|
|
|
|
//-- NPC: The information will be downloaded into your datapad. If you find the place, don't bother to come back. I have no reward for you. Good bye.
|
|
string_id message = new string_id (c_stringFile, "s_ef7c85cf");
|
|
removeObjVar (player, "conversation.heraldtatooine1.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'How could you help? Unless... you help me fight them. I have two locations in which I heavily hunt these desert fiends. Fort Tusken and the Tusken Village.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You may actually have more sense than a kreetle. All right. I suppose I'll let you live. Filthy Tuskens, you say? I have information regarding the whereabouts of several. Interested?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What will it cost me?
|
|
if (branchId == 12 && response == "s_9dbca073")
|
|
{
|
|
//-- [NOTE]
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Nothing. I despise the Tuskens with every moment of my existence. I wouldn't mind hiring a few commoners to ease my woes in destroying them.
|
|
string_id message = new string_id (c_stringFile, "s_b88d9d9f");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Fight your own battles.
|
|
boolean hasResponse0 = false;
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I suppose I can help.
|
|
boolean hasResponse1 = false;
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_c370ec78");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_1ca645a4");
|
|
|
|
setObjVar (player, "conversation.heraldtatooine1.branchId", 13);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.heraldtatooine1.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'You may actually have more sense than a kreetle. All right. I suppose I'll let you live. Filthy Tuskens, you say? I have information regarding the whereabouts of several. Interested?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You may actually have more sense than a kreetle. All right. I suppose I'll let you live. Filthy Tuskens, you say? I have information regarding the whereabouts of several. Interested?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, I am.
|
|
if (branchId == 12 && response == "s_36a4e374")
|
|
{
|
|
//-- [NOTE]
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Which location? Tusken Village? Or the bigger target, Fort Tusken.
|
|
string_id message = new string_id (c_stringFile, "s_67880d8b");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Fort Tusken.
|
|
boolean hasResponse0 = false;
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Tusken Village.
|
|
boolean hasResponse1 = false;
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_dca89f7e");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_8ac3feb5");
|
|
|
|
setObjVar (player, "conversation.heraldtatooine1.branchId", 18);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.heraldtatooine1.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'You may actually have more sense than a kreetle. All right. I suppose I'll let you live. Filthy Tuskens, you say? I have information regarding the whereabouts of several. Interested?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Nothing. I despise the Tuskens with every moment of my existence. I wouldn't mind hiring a few commoners to ease my woes in destroying them.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Fight your own battles.
|
|
if (branchId == 13 && response == "s_c370ec78")
|
|
{
|
|
//-- [NOTE]
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: If you do not leave quickly, my next battle will be with you. Leave. Now.
|
|
string_id message = new string_id (c_stringFile, "s_68c8ab4e");
|
|
removeObjVar (player, "conversation.heraldtatooine1.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Nothing. I despise the Tuskens with every moment of my existence. I wouldn't mind hiring a few commoners to ease my woes in destroying them.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Nothing. I despise the Tuskens with every moment of my existence. I wouldn't mind hiring a few commoners to ease my woes in destroying them.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I suppose I can help.
|
|
if (branchId == 13 && response == "s_1ca645a4")
|
|
{
|
|
//-- [NOTE]
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: You've made a tired bounty hunter glad. Which location do you wish to hear of? Tusken Village or Fort Tusken?
|
|
string_id message = new string_id (c_stringFile, "s_886ada99");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Fort Tusken.
|
|
boolean hasResponse0 = false;
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Tusken Village.
|
|
boolean hasResponse1 = false;
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
if (hasResponse)
|
|
{
|
|
int responseIndex = 0;
|
|
string_id responses [] = new string_id [numberOfResponses];
|
|
|
|
if (hasResponse0)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_dca89f7e");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_8ac3feb5");
|
|
|
|
setObjVar (player, "conversation.heraldtatooine1.branchId", 15);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.heraldtatooine1.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Nothing. I despise the Tuskens with every moment of my existence. I wouldn't mind hiring a few commoners to ease my woes in destroying them.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You've made a tired bounty hunter glad. Which location do you wish to hear of? Tusken Village or Fort Tusken?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Fort Tusken.
|
|
if (branchId == 15 && response == "s_dca89f7e")
|
|
{
|
|
//-- [NOTE]
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
heraldtatooine1_action_waypoint1 (player, self);
|
|
|
|
//-- NPC: I'll download the information into your datapad. It's the most simple of explanations. It should be the exact location. I could find the place with my eyes closed.
|
|
string_id message = new string_id (c_stringFile, "s_845c935e");
|
|
removeObjVar (player, "conversation.heraldtatooine1.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'You've made a tired bounty hunter glad. Which location do you wish to hear of? Tusken Village or Fort Tusken?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: You've made a tired bounty hunter glad. Which location do you wish to hear of? Tusken Village or Fort Tusken?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tusken Village.
|
|
if (branchId == 15 && response == "s_8ac3feb5")
|
|
{
|
|
//-- [NOTE]
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
heraldtatooine1_action_waypoint2 (player, self);
|
|
|
|
//-- NPC: The information will be downloaded into your datapad. If you find the place, don't bother to come back. I have no reward for you. Good bye.
|
|
string_id message = new string_id (c_stringFile, "s_ef7c85cf");
|
|
removeObjVar (player, "conversation.heraldtatooine1.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'You've made a tired bounty hunter glad. Which location do you wish to hear of? Tusken Village or Fort Tusken?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Which location? Tusken Village? Or the bigger target, Fort Tusken.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Fort Tusken.
|
|
if (branchId == 18 && response == "s_dca89f7e")
|
|
{
|
|
//-- [NOTE]
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
heraldtatooine1_action_waypoint1 (player, self);
|
|
|
|
//-- NPC: I'll download the information into your datapad. It's the most simple of explanations. It should be the exact location. I could find the place with my eyes closed.
|
|
string_id message = new string_id (c_stringFile, "s_845c935e");
|
|
removeObjVar (player, "conversation.heraldtatooine1.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Which location? Tusken Village? Or the bigger target, Fort Tusken.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Which location? Tusken Village? Or the bigger target, Fort Tusken.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Tusken Village.
|
|
if (branchId == 18 && response == "s_8ac3feb5")
|
|
{
|
|
//-- [NOTE]
|
|
if (heraldtatooine1_condition__defaultCondition (player, self))
|
|
{
|
|
heraldtatooine1_action_waypoint2 (player, self);
|
|
|
|
//-- NPC: The information will be downloaded into your datapad. If you find the place, don't bother to come back. I have no reward for you. Good bye.
|
|
string_id message = new string_id (c_stringFile, "s_ef7c85cf");
|
|
removeObjVar (player, "conversation.heraldtatooine1.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Which location? Tusken Village? Or the bigger target, Fort Tusken.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
|
|
|
|
removeObjVar (player, "conversation.heraldtatooine1.branchId");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
|