mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
3538 lines
102 KiB
Plaintext
3538 lines
102 KiB
Plaintext
// ======================================================================
|
|
//
|
|
// biogenic_crazyguy.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/biogenic_crazyguy";
|
|
|
|
// ======================================================================
|
|
// Script Conditions
|
|
// ======================================================================
|
|
|
|
boolean biogenic_crazyguy_condition__defaultCondition (obj_id player, obj_id npc)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean biogenic_crazyguy_condition_get_tracker_1 (obj_id player, obj_id npc)
|
|
{
|
|
int convo_tracker = getIntObjVar(player, "biogenic.crazy_convo");
|
|
|
|
if(convo_tracker == 1) {
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
boolean biogenic_crazyguy_condition_get_tracker_2 (obj_id player, obj_id npc)
|
|
{
|
|
int convo_tracker = getIntObjVar(player, "biogenic.crazy_convo");
|
|
|
|
if(convo_tracker >= 2) {
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Actions
|
|
// ======================================================================
|
|
|
|
void biogenic_crazyguy_action__defaultAction (obj_id player, obj_id npc)
|
|
{
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void biogenic_crazyguy_action_set_tracker_1 (obj_id player, obj_id npc)
|
|
{
|
|
setObjVar(player, "biogenic.crazy_convo", 1);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void biogenic_crazyguy_action_set_tracker_2 (obj_id player, obj_id npc)
|
|
{
|
|
setObjVar(player, "biogenic.crazy_convo", 2);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void biogenic_crazyguy_action_set_mood (obj_id player, obj_id npc)
|
|
{
|
|
setAnimationMood(npc, chat.MOOD_NERVOUS);
|
|
|
|
faceToBehavior(npc, player);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
|
void biogenic_crazyguy_action_face_to (obj_id player, obj_id npc)
|
|
{
|
|
faceToBehavior(npc, player);
|
|
}
|
|
|
|
// ======================================================================
|
|
// User Script Triggers
|
|
// ======================================================================
|
|
|
|
trigger OnInitialize ()
|
|
{
|
|
if ((!isMob (self)) || (isPlayer (self)))
|
|
detachScript(self, "npc.conversation.biogenic_crazyguy");
|
|
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
|
|
setInvulnerable (self, true);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
trigger OnAttach ()
|
|
{
|
|
setCondition (self, CONDITION_CONVERSABLE);
|
|
|
|
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, "npc.conversation.biogenic_crazyguy");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
// Script Triggers
|
|
// ======================================================================
|
|
|
|
trigger OnStartNpcConversation (obj_id player)
|
|
{
|
|
if (ai_lib.isInCombat (self) || ai_lib.isInCombat (player))
|
|
return SCRIPT_OVERRIDE;
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition_get_tracker_2 (player, self))
|
|
{
|
|
biogenic_crazyguy_action_face_to (player, self);
|
|
|
|
//-- NPC: How many? 32281... monsters... 32281... monsters.
|
|
string_id message = new string_id (c_stringFile, "s_3a0e3163");
|
|
chat.chat (self, message);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition_get_tracker_1 (player, self))
|
|
{
|
|
biogenic_crazyguy_action_face_to (player, self);
|
|
|
|
//-- NPC: Hey, I remember you... but I've never seen you before.
|
|
string_id message = new string_id (c_stringFile, "s_4e52ced2");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Of course you have, I was here just a bit ago.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Still crazy as ever I see.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_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_a64c5d9e");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_9499432");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 2);
|
|
|
|
npcStartConversation (player, self, "biogenic_crazyguy", message, responses);
|
|
}
|
|
else
|
|
{
|
|
chat.chat (self, message);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
biogenic_crazyguy_action_set_mood (player, self);
|
|
|
|
//-- NPC: *gurk* Why... you're here? Did they send you? I see that you're here.
|
|
string_id message = new string_id (c_stringFile, "s_80c190c3");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What is the matter with you?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Did who send me? What's going on here?
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Please don't hurt me. I was just leaving.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++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_e7953fb5");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_f6dd63d");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_e5f4a149");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 15);
|
|
|
|
npcStartConversation (player, self, "biogenic_crazyguy", 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 != "biogenic_crazyguy")
|
|
return SCRIPT_CONTINUE;
|
|
|
|
int branchId = getIntObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hey, I remember you... but I've never seen you before.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Of course you have, I was here just a bit ago.
|
|
if (branchId == 2 && response == "s_a64c5d9e")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Ah, I'm glad you're back. Now go.
|
|
string_id message = new string_id (c_stringFile, "s_7b11e13b");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Go? You want me to leave?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Go where? Tell me what's happening!
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Good idea. I can't take any more of this.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++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_a9f69fb7");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_64bc92a0");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_cc90aebb");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 3);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Hey, I remember you... but I've never seen you before.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Hey, I remember you... but I've never seen you before.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Still crazy as ever I see.
|
|
if (branchId == 2 && response == "s_9499432")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Sorry, I don't talk with crazy people. Good-bye.
|
|
string_id message = new string_id (c_stringFile, "s_c182d8fb");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Hey, I remember you... but I've never seen you before.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Ah, I'm glad you're back. Now go.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Go? You want me to leave?
|
|
if (branchId == 3 && response == "s_a9f69fb7")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Go? No, I want you to leave... in there!
|
|
string_id message = new string_id (c_stringFile, "s_d166b780");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: In where? Into that opening back there?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: That's what I just said. I don't understand you.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_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_e1fbb5ed");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d5e04dc5");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 4);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Ah, I'm glad you're back. Now go.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Ah, I'm glad you're back. Now go.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Go where? Tell me what's happening!
|
|
if (branchId == 3 && response == "s_64bc92a0")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: What isn't happening? You, that's what... why? Go now.
|
|
string_id message = new string_id (c_stringFile, "s_b18aca61");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Ok, ok. I'm going.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_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_be321a24");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 11);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Ah, I'm glad you're back. Now go.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Ah, I'm glad you're back. Now go.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Good idea. I can't take any more of this.
|
|
if (branchId == 3 && response == "s_cc90aebb")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: That's what I say too. Except I'm... staying here.
|
|
string_id message = new string_id (c_stringFile, "s_40626e0f");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Ah, I'm glad you're back. Now go.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Go? No, I want you to leave... in there!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: In where? Into that opening back there?
|
|
if (branchId == 4 && response == "s_e1fbb5ed")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...
|
|
string_id message = new string_id (c_stringFile, "s_14b63e24");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What is it?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think you've told me enough already.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_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_1c8bddbb");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_f0a82cfa");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 5);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Go? No, I want you to leave... in there!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Go? No, I want you to leave... in there!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: That's what I just said. I don't understand you.
|
|
if (branchId == 4 && response == "s_d5e04dc5")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Then maybe you aren't... who you are. So long then.
|
|
string_id message = new string_id (c_stringFile, "s_51edfa93");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Go? No, I want you to leave... in there!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What is it?
|
|
if (branchId == 5 && response == "s_1c8bddbb")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
biogenic_crazyguy_action_set_tracker_2 (player, self);
|
|
|
|
//-- NPC: For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.
|
|
string_id message = new string_id (c_stringFile, "s_91c86ae2");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Um... thanks for the warning.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Right... I'll try to, um... keep that in mind.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_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_6b830d");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_fd7a670e");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 6);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I think you've told me enough already.
|
|
if (branchId == 5 && response == "s_f0a82cfa")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Did I? I don't remember. Ok then, good-bye.
|
|
string_id message = new string_id (c_stringFile, "s_c875e4f0");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Um... thanks for the warning.
|
|
if (branchId == 6 && response == "s_6b830d")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: What warning? I forgot. Oh well, as long as you remember.
|
|
string_id message = new string_id (c_stringFile, "s_1300ed43");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Right... I'll try to, um... keep that in mind.
|
|
if (branchId == 6 && response == "s_fd7a670e")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Keep what in mind? Was it something important? Oh well.
|
|
string_id message = new string_id (c_stringFile, "s_68d073fe");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What isn't happening? You, that's what... why? Go now.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Ok, ok. I'm going.
|
|
if (branchId == 11 && response == "s_be321a24")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Yes, yes. Keep going. That way. No, wait. That way.
|
|
string_id message = new string_id (c_stringFile, "s_7d4f8520");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'What isn't happening? You, that's what... why? Go now.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: *gurk* Why... you're here? Did they send you? I see that you're here.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What is the matter with you?
|
|
if (branchId == 15 && response == "s_e7953fb5")
|
|
{
|
|
biogenic_crazyguy_action_set_tracker_1 (player, self);
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Look around... do you see it? That's, uh... what is?
|
|
string_id message = new string_id (c_stringFile, "s_74fbbad2");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: See what? I don't...
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Ok, you seem distracted. I'll leave you alone.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_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_9c653067");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_daa5a74d");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 16);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch '*gurk* Why... you're here? Did they send you? I see that you're here.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: *gurk* Why... you're here? Did they send you? I see that you're here.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Did who send me? What's going on here?
|
|
if (branchId == 15 && response == "s_f6dd63d")
|
|
{
|
|
biogenic_crazyguy_action_set_tracker_1 (player, self);
|
|
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: HELP! HELP! Are you here?
|
|
string_id message = new string_id (c_stringFile, "s_eb2f9960");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, I'm here. Now what is going on?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Is who here? Start making sense!
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm sorry, I don't understand. Good-bye
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++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_5d16248c");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_e34d6272");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a8cf80a2");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 48);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch '*gurk* Why... you're here? Did they send you? I see that you're here.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: *gurk* Why... you're here? Did they send you? I see that you're here.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Please don't hurt me. I was just leaving.
|
|
if (branchId == 15 && response == "s_e5f4a149")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: There is no leaving. Not now since... oh, you're here?
|
|
string_id message = new string_id (c_stringFile, "s_d3b52482");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch '*gurk* Why... you're here? Did they send you? I see that you're here.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Look around... do you see it? That's, uh... what is?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: See what? I don't...
|
|
if (branchId == 16 && response == "s_9c653067")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: HELP! HELP! Are you here?
|
|
string_id message = new string_id (c_stringFile, "s_eb2f9960");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, I'm here. Now what is going on?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Is who here? Start making sense!
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I'm sorry, I don't understand. Good-bye
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++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_5d16248c");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_e34d6272");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_a8cf80a2");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 17);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Look around... do you see it? That's, uh... what is?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Look around... do you see it? That's, uh... what is?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Ok, you seem distracted. I'll leave you alone.
|
|
if (branchId == 16 && response == "s_daa5a74d")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Never alone... never alone...
|
|
string_id message = new string_id (c_stringFile, "s_23bcaf58");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Look around... do you see it? That's, uh... what is?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: HELP! HELP! Are you here?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, I'm here. Now what is going on?
|
|
if (branchId == 17 && response == "s_5d16248c")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Yes! Yes you are! I see you... now you must go!
|
|
string_id message = new string_id (c_stringFile, "s_524005c4");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Go? You want me to leave?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Go where? Tell me what's happening!
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Good idea. I can't take any more of this.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++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_a9f69fb7");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_64bc92a0");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_cc90aebb");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 18);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'HELP! HELP! Are you here?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: HELP! HELP! Are you here?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Is who here? Start making sense!
|
|
if (branchId == 17 && response == "s_e34d6272")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: No, who is not here. That is... the problem. I think? Are you ...who?
|
|
string_id message = new string_id (c_stringFile, "s_1c4a552c");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, I am. I think.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I swear, if you don't tell me what's going on...
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I don't have time for this. Good-bye.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++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_7d4e91e1");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_564ba87");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_70a572af");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 29);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'HELP! HELP! Are you here?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: HELP! HELP! Are you here?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm sorry, I don't understand. Good-bye
|
|
if (branchId == 17 && response == "s_a8cf80a2")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: No... no one. No one does. No one anymore.
|
|
string_id message = new string_id (c_stringFile, "s_3e250a");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'HELP! HELP! Are you here?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! Yes you are! I see you... now you must go!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Go? You want me to leave?
|
|
if (branchId == 18 && response == "s_a9f69fb7")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Go? No, I want you to leave... in there!
|
|
string_id message = new string_id (c_stringFile, "s_d166b780");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: In where? Into that opening back there?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: That's what I just said. I don't understand you.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_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_e1fbb5ed");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d5e04dc5");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 19);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes! Yes you are! I see you... now you must go!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! Yes you are! I see you... now you must go!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Go where? Tell me what's happening!
|
|
if (branchId == 18 && response == "s_64bc92a0")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: What isn't happening? You, that's what... why? Go now.
|
|
string_id message = new string_id (c_stringFile, "s_b18aca61");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Ok, ok. I'm going.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_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_be321a24");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 26);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes! Yes you are! I see you... now you must go!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! Yes you are! I see you... now you must go!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Good idea. I can't take any more of this.
|
|
if (branchId == 18 && response == "s_cc90aebb")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: That's what I say too. Except I'm... staying here.
|
|
string_id message = new string_id (c_stringFile, "s_40626e0f");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes! Yes you are! I see you... now you must go!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Go? No, I want you to leave... in there!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: In where? Into that opening back there?
|
|
if (branchId == 19 && response == "s_e1fbb5ed")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...
|
|
string_id message = new string_id (c_stringFile, "s_14b63e24");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What is it?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think you've told me enough already.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_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_1c8bddbb");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_f0a82cfa");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 20);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Go? No, I want you to leave... in there!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Go? No, I want you to leave... in there!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: That's what I just said. I don't understand you.
|
|
if (branchId == 19 && response == "s_d5e04dc5")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Then maybe you aren't... who you are. So long then.
|
|
string_id message = new string_id (c_stringFile, "s_51edfa93");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Go? No, I want you to leave... in there!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What is it?
|
|
if (branchId == 20 && response == "s_1c8bddbb")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
biogenic_crazyguy_action_set_tracker_2 (player, self);
|
|
|
|
//-- NPC: For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.
|
|
string_id message = new string_id (c_stringFile, "s_91c86ae2");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Um... thanks for the warning.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Right... I'll try to, um... keep that in mind.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_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_6b830d");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_fd7a670e");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 21);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I think you've told me enough already.
|
|
if (branchId == 20 && response == "s_f0a82cfa")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Did I? I don't remember. Ok then, good-bye.
|
|
string_id message = new string_id (c_stringFile, "s_c875e4f0");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Um... thanks for the warning.
|
|
if (branchId == 21 && response == "s_6b830d")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: What warning? I forgot. Oh well, as long as you remember.
|
|
string_id message = new string_id (c_stringFile, "s_1300ed43");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Right... I'll try to, um... keep that in mind.
|
|
if (branchId == 21 && response == "s_fd7a670e")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Keep what in mind? Was it something important? Oh well.
|
|
string_id message = new string_id (c_stringFile, "s_68d073fe");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What isn't happening? You, that's what... why? Go now.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Ok, ok. I'm going.
|
|
if (branchId == 26 && response == "s_be321a24")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Yes, yes. Keep going. That way. No, wait. That way.
|
|
string_id message = new string_id (c_stringFile, "s_7d4f8520");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'What isn't happening? You, that's what... why? Go now.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: No, who is not here. That is... the problem. I think? Are you ...who?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, I am. I think.
|
|
if (branchId == 29 && response == "s_7d4e91e1")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Yes! Yes you are! I see you... now you must go!
|
|
string_id message = new string_id (c_stringFile, "s_524005c4");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Go? You want me to leave?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Go where? Tell me what's happening!
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Good idea. I can't take any more of this.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++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_a9f69fb7");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_64bc92a0");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_cc90aebb");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 30);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'No, who is not here. That is... the problem. I think? Are you ...who?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: No, who is not here. That is... the problem. I think? Are you ...who?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I swear, if you don't tell me what's going on...
|
|
if (branchId == 29 && response == "s_564ba87")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: No, not going on... going in, and when you've done that... we all go out.
|
|
string_id message = new string_id (c_stringFile, "s_469eaf3a");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Go in? Go out? What are you talking about?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: You're loony as a peko bird. Good-bye.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_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_d87072f3");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_3157939");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 41);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'No, who is not here. That is... the problem. I think? Are you ...who?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: No, who is not here. That is... the problem. I think? Are you ...who?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I don't have time for this. Good-bye.
|
|
if (branchId == 29 && response == "s_70a572af")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: No, no. All I have is time, until it ends.
|
|
string_id message = new string_id (c_stringFile, "s_bc3d132b");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'No, who is not here. That is... the problem. I think? Are you ...who?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! Yes you are! I see you... now you must go!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Go? You want me to leave?
|
|
if (branchId == 30 && response == "s_a9f69fb7")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Go? No, I want you to leave... in there!
|
|
string_id message = new string_id (c_stringFile, "s_d166b780");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: In where? Into that opening back there?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: That's what I just said. I don't understand you.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_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_e1fbb5ed");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d5e04dc5");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 31);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes! Yes you are! I see you... now you must go!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! Yes you are! I see you... now you must go!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Go where? Tell me what's happening!
|
|
if (branchId == 30 && response == "s_64bc92a0")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: What isn't happening? You, that's what... why? Go now.
|
|
string_id message = new string_id (c_stringFile, "s_b18aca61");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Ok, ok. I'm going.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_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_be321a24");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 38);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes! Yes you are! I see you... now you must go!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! Yes you are! I see you... now you must go!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Good idea. I can't take any more of this.
|
|
if (branchId == 30 && response == "s_cc90aebb")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: That's what I say too. Except I'm... staying here.
|
|
string_id message = new string_id (c_stringFile, "s_40626e0f");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes! Yes you are! I see you... now you must go!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Go? No, I want you to leave... in there!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: In where? Into that opening back there?
|
|
if (branchId == 31 && response == "s_e1fbb5ed")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...
|
|
string_id message = new string_id (c_stringFile, "s_14b63e24");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What is it?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think you've told me enough already.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_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_1c8bddbb");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_f0a82cfa");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 32);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Go? No, I want you to leave... in there!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Go? No, I want you to leave... in there!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: That's what I just said. I don't understand you.
|
|
if (branchId == 31 && response == "s_d5e04dc5")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Then maybe you aren't... who you are. So long then.
|
|
string_id message = new string_id (c_stringFile, "s_51edfa93");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Go? No, I want you to leave... in there!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What is it?
|
|
if (branchId == 32 && response == "s_1c8bddbb")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
biogenic_crazyguy_action_set_tracker_2 (player, self);
|
|
|
|
//-- NPC: For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.
|
|
string_id message = new string_id (c_stringFile, "s_91c86ae2");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Um... thanks for the warning.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Right... I'll try to, um... keep that in mind.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_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_6b830d");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_fd7a670e");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 33);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I think you've told me enough already.
|
|
if (branchId == 32 && response == "s_f0a82cfa")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Did I? I don't remember. Ok then, good-bye.
|
|
string_id message = new string_id (c_stringFile, "s_c875e4f0");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Um... thanks for the warning.
|
|
if (branchId == 33 && response == "s_6b830d")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: What warning? I forgot. Oh well, as long as you remember.
|
|
string_id message = new string_id (c_stringFile, "s_1300ed43");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Right... I'll try to, um... keep that in mind.
|
|
if (branchId == 33 && response == "s_fd7a670e")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Keep what in mind? Was it something important? Oh well.
|
|
string_id message = new string_id (c_stringFile, "s_68d073fe");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What isn't happening? You, that's what... why? Go now.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Ok, ok. I'm going.
|
|
if (branchId == 38 && response == "s_be321a24")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Yes, yes. Keep going. That way. No, wait. That way.
|
|
string_id message = new string_id (c_stringFile, "s_7d4f8520");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'What isn't happening? You, that's what... why? Go now.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: No, not going on... going in, and when you've done that... we all go out.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Go in? Go out? What are you talking about?
|
|
if (branchId == 41 && response == "s_d87072f3")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Life is not all about... rhyming. And soon it will be over.
|
|
string_id message = new string_id (c_stringFile, "s_5d995d79");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'm sorry, I guess I just don't get it. Good-bye.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_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_20413fbf");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 42);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'No, not going on... going in, and when you've done that... we all go out.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: No, not going on... going in, and when you've done that... we all go out.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You're loony as a peko bird. Good-bye.
|
|
if (branchId == 41 && response == "s_3157939")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: There are some that think that... namely you.
|
|
string_id message = new string_id (c_stringFile, "s_28eb431a");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'No, not going on... going in, and when you've done that... we all go out.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Life is not all about... rhyming. And soon it will be over.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm sorry, I guess I just don't get it. Good-bye.
|
|
if (branchId == 42 && response == "s_20413fbf")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Unfortunately... we all get it. Very soon.
|
|
string_id message = new string_id (c_stringFile, "s_72870486");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Life is not all about... rhyming. And soon it will be over.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: HELP! HELP! Are you here?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, I'm here. Now what is going on?
|
|
if (branchId == 48 && response == "s_5d16248c")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Yes! Yes you are! I see you... now you must go!
|
|
string_id message = new string_id (c_stringFile, "s_524005c4");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Go? You want me to leave?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Go where? Tell me what's happening!
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Good idea. I can't take any more of this.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++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_a9f69fb7");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_64bc92a0");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_cc90aebb");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 49);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'HELP! HELP! Are you here?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: HELP! HELP! Are you here?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Is who here? Start making sense!
|
|
if (branchId == 48 && response == "s_e34d6272")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: No, who is not here. That is... the problem. I think? Are you ...who?
|
|
string_id message = new string_id (c_stringFile, "s_1c4a552c");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Yes, I am. I think.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I swear, if you don't tell me what's going on...
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: I don't have time for this. Good-bye.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++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_7d4e91e1");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_564ba87");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_70a572af");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 60);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'HELP! HELP! Are you here?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: HELP! HELP! Are you here?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm sorry, I don't understand. Good-bye
|
|
if (branchId == 48 && response == "s_a8cf80a2")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: No... no one. No one does. No one anymore.
|
|
string_id message = new string_id (c_stringFile, "s_3e250a");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'HELP! HELP! Are you here?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! Yes you are! I see you... now you must go!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Go? You want me to leave?
|
|
if (branchId == 49 && response == "s_a9f69fb7")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Go? No, I want you to leave... in there!
|
|
string_id message = new string_id (c_stringFile, "s_d166b780");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: In where? Into that opening back there?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: That's what I just said. I don't understand you.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_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_e1fbb5ed");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d5e04dc5");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 50);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes! Yes you are! I see you... now you must go!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! Yes you are! I see you... now you must go!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Go where? Tell me what's happening!
|
|
if (branchId == 49 && response == "s_64bc92a0")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: What isn't happening? You, that's what... why? Go now.
|
|
string_id message = new string_id (c_stringFile, "s_b18aca61");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Ok, ok. I'm going.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_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_be321a24");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 57);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes! Yes you are! I see you... now you must go!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! Yes you are! I see you... now you must go!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Good idea. I can't take any more of this.
|
|
if (branchId == 49 && response == "s_cc90aebb")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: That's what I say too. Except I'm... staying here.
|
|
string_id message = new string_id (c_stringFile, "s_40626e0f");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes! Yes you are! I see you... now you must go!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Go? No, I want you to leave... in there!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: In where? Into that opening back there?
|
|
if (branchId == 50 && response == "s_e1fbb5ed")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...
|
|
string_id message = new string_id (c_stringFile, "s_14b63e24");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What is it?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think you've told me enough already.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_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_1c8bddbb");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_f0a82cfa");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 51);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Go? No, I want you to leave... in there!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Go? No, I want you to leave... in there!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: That's what I just said. I don't understand you.
|
|
if (branchId == 50 && response == "s_d5e04dc5")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Then maybe you aren't... who you are. So long then.
|
|
string_id message = new string_id (c_stringFile, "s_51edfa93");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Go? No, I want you to leave... in there!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What is it?
|
|
if (branchId == 51 && response == "s_1c8bddbb")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
biogenic_crazyguy_action_set_tracker_2 (player, self);
|
|
|
|
//-- NPC: For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.
|
|
string_id message = new string_id (c_stringFile, "s_91c86ae2");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Um... thanks for the warning.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Right... I'll try to, um... keep that in mind.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_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_6b830d");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_fd7a670e");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 52);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I think you've told me enough already.
|
|
if (branchId == 51 && response == "s_f0a82cfa")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Did I? I don't remember. Ok then, good-bye.
|
|
string_id message = new string_id (c_stringFile, "s_c875e4f0");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Um... thanks for the warning.
|
|
if (branchId == 52 && response == "s_6b830d")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: What warning? I forgot. Oh well, as long as you remember.
|
|
string_id message = new string_id (c_stringFile, "s_1300ed43");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Right... I'll try to, um... keep that in mind.
|
|
if (branchId == 52 && response == "s_fd7a670e")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Keep what in mind? Was it something important? Oh well.
|
|
string_id message = new string_id (c_stringFile, "s_68d073fe");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What isn't happening? You, that's what... why? Go now.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Ok, ok. I'm going.
|
|
if (branchId == 57 && response == "s_be321a24")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Yes, yes. Keep going. That way. No, wait. That way.
|
|
string_id message = new string_id (c_stringFile, "s_7d4f8520");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'What isn't happening? You, that's what... why? Go now.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: No, who is not here. That is... the problem. I think? Are you ...who?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Yes, I am. I think.
|
|
if (branchId == 60 && response == "s_7d4e91e1")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Yes! Yes you are! I see you... now you must go!
|
|
string_id message = new string_id (c_stringFile, "s_524005c4");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Go? You want me to leave?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Go where? Tell me what's happening!
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse1 = true;
|
|
}
|
|
|
|
//-- PLAYER: Good idea. I can't take any more of this.
|
|
boolean hasResponse2 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++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_a9f69fb7");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_64bc92a0");
|
|
|
|
if (hasResponse2)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_cc90aebb");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 61);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'No, who is not here. That is... the problem. I think? Are you ...who?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: No, who is not here. That is... the problem. I think? Are you ...who?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I swear, if you don't tell me what's going on...
|
|
if (branchId == 60 && response == "s_564ba87")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: No, not going on... going in, and when you've done that... we all go out.
|
|
string_id message = new string_id (c_stringFile, "s_469eaf3a");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Go in? Go out? What are you talking about?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: You're loony as a peko bird. Good-bye.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_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_d87072f3");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_3157939");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 72);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'No, who is not here. That is... the problem. I think? Are you ...who?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: No, who is not here. That is... the problem. I think? Are you ...who?
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I don't have time for this. Good-bye.
|
|
if (branchId == 60 && response == "s_70a572af")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: No, no. All I have is time, until it ends.
|
|
string_id message = new string_id (c_stringFile, "s_bc3d132b");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'No, who is not here. That is... the problem. I think? Are you ...who?' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! Yes you are! I see you... now you must go!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Go? You want me to leave?
|
|
if (branchId == 61 && response == "s_a9f69fb7")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Go? No, I want you to leave... in there!
|
|
string_id message = new string_id (c_stringFile, "s_d166b780");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: In where? Into that opening back there?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: That's what I just said. I don't understand you.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_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_e1fbb5ed");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_d5e04dc5");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 62);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes! Yes you are! I see you... now you must go!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! Yes you are! I see you... now you must go!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Go where? Tell me what's happening!
|
|
if (branchId == 61 && response == "s_64bc92a0")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: What isn't happening? You, that's what... why? Go now.
|
|
string_id message = new string_id (c_stringFile, "s_b18aca61");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Ok, ok. I'm going.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_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_be321a24");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 69);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes! Yes you are! I see you... now you must go!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! Yes you are! I see you... now you must go!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Good idea. I can't take any more of this.
|
|
if (branchId == 61 && response == "s_cc90aebb")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: That's what I say too. Except I'm... staying here.
|
|
string_id message = new string_id (c_stringFile, "s_40626e0f");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes! Yes you are! I see you... now you must go!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Go? No, I want you to leave... in there!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: In where? Into that opening back there?
|
|
if (branchId == 62 && response == "s_e1fbb5ed")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...
|
|
string_id message = new string_id (c_stringFile, "s_14b63e24");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: What is it?
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: I think you've told me enough already.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_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_1c8bddbb");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_f0a82cfa");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 63);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Go? No, I want you to leave... in there!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Go? No, I want you to leave... in there!
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: That's what I just said. I don't understand you.
|
|
if (branchId == 62 && response == "s_d5e04dc5")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Then maybe you aren't... who you are. So long then.
|
|
string_id message = new string_id (c_stringFile, "s_51edfa93");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Go? No, I want you to leave... in there!' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: What is it?
|
|
if (branchId == 63 && response == "s_1c8bddbb")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
biogenic_crazyguy_action_set_tracker_2 (player, self);
|
|
|
|
//-- NPC: For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.
|
|
string_id message = new string_id (c_stringFile, "s_91c86ae2");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: Um... thanks for the warning.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
++numberOfResponses;
|
|
hasResponse = true;
|
|
hasResponse0 = true;
|
|
}
|
|
|
|
//-- PLAYER: Right... I'll try to, um... keep that in mind.
|
|
boolean hasResponse1 = false;
|
|
if (biogenic_crazyguy_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_6b830d");
|
|
|
|
if (hasResponse1)
|
|
responses [responseIndex++] = new string_id (c_stringFile, "s_fd7a670e");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 64);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I think you've told me enough already.
|
|
if (branchId == 63 && response == "s_f0a82cfa")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Did I? I don't remember. Ok then, good-bye.
|
|
string_id message = new string_id (c_stringFile, "s_c875e4f0");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Yes! I see you are... the truth. When you leave... we all can go. But I must tell you...' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Um... thanks for the warning.
|
|
if (branchId == 64 && response == "s_6b830d")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: What warning? I forgot. Oh well, as long as you remember.
|
|
string_id message = new string_id (c_stringFile, "s_1300ed43");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Right... I'll try to, um... keep that in mind.
|
|
if (branchId == 64 && response == "s_fd7a670e")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Keep what in mind? Was it something important? Oh well.
|
|
string_id message = new string_id (c_stringFile, "s_68d073fe");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'For the monsters... 32281 is it. You see, 32281... monsters. There are 32281 monsters.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: What isn't happening? You, that's what... why? Go now.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Ok, ok. I'm going.
|
|
if (branchId == 69 && response == "s_be321a24")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Yes, yes. Keep going. That way. No, wait. That way.
|
|
string_id message = new string_id (c_stringFile, "s_7d4f8520");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'What isn't happening? You, that's what... why? Go now.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: No, not going on... going in, and when you've done that... we all go out.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: Go in? Go out? What are you talking about?
|
|
if (branchId == 72 && response == "s_d87072f3")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Life is not all about... rhyming. And soon it will be over.
|
|
string_id message = new string_id (c_stringFile, "s_5d995d79");
|
|
int numberOfResponses = 0;
|
|
|
|
boolean hasResponse = false;
|
|
|
|
//-- PLAYER: I'm sorry, I guess I just don't get it. Good-bye.
|
|
boolean hasResponse0 = false;
|
|
if (biogenic_crazyguy_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_20413fbf");
|
|
|
|
setObjVar (player, "conversation.biogenic_crazyguy.branchId", 73);
|
|
|
|
npcSpeak (player, message);
|
|
npcSetConversationResponses (player, responses);
|
|
}
|
|
else
|
|
{
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'No, not going on... going in, and when you've done that... we all go out.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: No, not going on... going in, and when you've done that... we all go out.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: You're loony as a peko bird. Good-bye.
|
|
if (branchId == 72 && response == "s_3157939")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: There are some that think that... namely you.
|
|
string_id message = new string_id (c_stringFile, "s_28eb431a");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'No, not going on... going in, and when you've done that... we all go out.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
//-- [BRANCH NOTE]
|
|
//-- NPC: Life is not all about... rhyming. And soon it will be over.
|
|
//-- [RESPONSE NOTE]
|
|
//-- PLAYER: I'm sorry, I guess I just don't get it. Good-bye.
|
|
if (branchId == 73 && response == "s_20413fbf")
|
|
{
|
|
//-- [NOTE]
|
|
if (biogenic_crazyguy_condition__defaultCondition (player, self))
|
|
{
|
|
//-- NPC: Unfortunately... we all get it. Very soon.
|
|
string_id message = new string_id (c_stringFile, "s_72870486");
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
npcSpeak (player, message);
|
|
npcEndConversation (player);
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'Life is not all about... rhyming. And soon it will be over.' were false.");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
chat.chat (self, "Error: Fell through all branches and responses for OnNpcConversationResponse.");
|
|
|
|
removeObjVar (player, "conversation.biogenic_crazyguy.branchId");
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|
|
|
|
// ======================================================================
|
|
|