// ====================================================================== // // sample_links.script // Copyright 2003, Sony Online Entertainment // All Rights Reserved. // // 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/sample_links"; // ====================================================================== // Script Conditions // ====================================================================== boolean sample_links_condition__defaultCondition (obj_id player, obj_id npc) { return true; } // ---------------------------------------------------------------------- boolean sample_links_condition_condition0001 (obj_id player, obj_id npc) { return true; } // ---------------------------------------------------------------------- boolean sample_links_condition_condition0002 (obj_id player, obj_id npc) { return true; } // ====================================================================== // Script Actions // ====================================================================== void sample_links_action__defaultAction (obj_id player, obj_id npc) { } // ---------------------------------------------------------------------- void sample_links_action_action0001 (obj_id player, obj_id npc) { } // ====================================================================== // Script Triggers // ====================================================================== trigger OnInitialize () { if ((!isMob (self)) || (isPlayer (self))) detachScript(self, "npc.conversation.sample_links"); setCondition (self, CONDITION_CONVERSABLE); return SCRIPT_CONTINUE; } // ---------------------------------------------------------------------- trigger OnAttach () { setCondition (self, CONDITION_CONVERSABLE); return SCRIPT_CONTINUE; } // ---------------------------------------------------------------------- trigger OnObjectMenuRequest (obj_id player, menu_info menuInfo) { int menu = menuInfo.addRootMenu (menu_info_types.CONVERSE_START, null); menu_info_data menuInfoData = menuInfo.getMenuItemById (menu); menuInfoData.setServerNotify (false); setCondition (self, CONDITION_CONVERSABLE); return SCRIPT_CONTINUE; } // ---------------------------------------------------------------------- trigger OnIncapacitated (obj_id killer) { clearCondition (self, CONDITION_CONVERSABLE); detachScript (self, "npc.conversation.sample_links"); return SCRIPT_CONTINUE; } // ---------------------------------------------------------------------- trigger OnStartNpcConversation (obj_id player) { if (ai_lib.isInCombat (self) || ai_lib.isInCombat (player)) return SCRIPT_OVERRIDE; //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: B1 - Hi there. I've got some magic tricks to show you. Which one do you want to see? string_id message = new string_id (c_stringFile, "s_f8d0c9d2"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R1 - Trick 1 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R2 - Trick 2 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R3 - Trick 3 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: Do you have any more tricks? boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_79345378"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_7a43e024"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_872e7a7d"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_9ede25b7"); setObjVar (player, "conversation.sample_links.branchId", 1); npcStartConversation (player, self, "sample_links", 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 != "sample_links") return SCRIPT_CONTINUE; int branchId = getIntObjVar (player, "conversation.sample_links.branchId"); //-- [BRANCH NOTE] //-- NPC: B1 - Hi there. I've got some magic tricks to show you. Which one do you want to see? //-- [RESPONSE NOTE] //-- PLAYER: R1 - Trick 1 if (branchId == 1 && response == "s_79345378") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 1. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_3c59e302"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R1 - Trick 1 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R2 - Trick 2 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R3 - Trick 3 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: Do you have any more tricks? boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_79345378"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_7a43e024"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_872e7a7d"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_9ede25b7"); setObjVar (player, "conversation.sample_links.branchId", 1); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'B1 - Hi there. I've got some magic tricks to show you. Which one do you want to see?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: B1 - Hi there. I've got some magic tricks to show you. Which one do you want to see? //-- [RESPONSE NOTE] //-- PLAYER: R2 - Trick 2 if (branchId == 1 && response == "s_7a43e024") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 2. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_a91a9b13"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R1 - Trick 1 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R2 - Trick 2 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R3 - Trick 3 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: Do you have any more tricks? boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_79345378"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_7a43e024"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_872e7a7d"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_9ede25b7"); setObjVar (player, "conversation.sample_links.branchId", 1); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'B1 - Hi there. I've got some magic tricks to show you. Which one do you want to see?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: B1 - Hi there. I've got some magic tricks to show you. Which one do you want to see? //-- [RESPONSE NOTE] //-- PLAYER: R3 - Trick 3 if (branchId == 1 && response == "s_872e7a7d") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 3. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_2664b871"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R1 - Trick 1 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R2 - Trick 2 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R3 - Trick 3 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: Do you have any more tricks? boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_79345378"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_7a43e024"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_872e7a7d"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_9ede25b7"); setObjVar (player, "conversation.sample_links.branchId", 1); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'B1 - Hi there. I've got some magic tricks to show you. Which one do you want to see?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: B1 - Hi there. I've got some magic tricks to show you. Which one do you want to see? //-- [RESPONSE NOTE] //-- PLAYER: Do you have any more tricks? if (branchId == 1 && response == "s_9ede25b7") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: I think so. What do you want to see? string_id message = new string_id (c_stringFile, "s_cde8ebfe"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R4 - Trick 4 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R5 - Trick 5 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R6 - Trick 6 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: I want to see the first 3. boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_7cac869c"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_81c11cc5"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_82b6af99"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_d3ff6fc9"); setObjVar (player, "conversation.sample_links.branchId", 5); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'B1 - Hi there. I've got some magic tricks to show you. Which one do you want to see?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 1. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: R1 - Trick 1 if (branchId == 2 && response == "s_79345378") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 1. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_3c59e302"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R1 - Trick 1 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R2 - Trick 2 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R3 - Trick 3 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: Do you have any more tricks? boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_79345378"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_7a43e024"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_872e7a7d"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_9ede25b7"); setObjVar (player, "conversation.sample_links.branchId", 1); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 1. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 1. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: R2 - Trick 2 if (branchId == 2 && response == "s_7a43e024") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 2. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_a91a9b13"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R1 - Trick 1 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R2 - Trick 2 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R3 - Trick 3 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: Do you have any more tricks? boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_79345378"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_7a43e024"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_872e7a7d"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_9ede25b7"); setObjVar (player, "conversation.sample_links.branchId", 1); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 1. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 1. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: R3 - Trick 3 if (branchId == 2 && response == "s_872e7a7d") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 3. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_2664b871"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R1 - Trick 1 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R2 - Trick 2 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R3 - Trick 3 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: Do you have any more tricks? boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_79345378"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_7a43e024"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_872e7a7d"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_9ede25b7"); setObjVar (player, "conversation.sample_links.branchId", 1); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 1. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 1. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: Do you have any more tricks? if (branchId == 2 && response == "s_9ede25b7") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: I think so. What do you want to see? string_id message = new string_id (c_stringFile, "s_cde8ebfe"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R4 - Trick 4 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R5 - Trick 5 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R6 - Trick 6 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: I want to see the first 3. boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_7cac869c"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_81c11cc5"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_82b6af99"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_d3ff6fc9"); setObjVar (player, "conversation.sample_links.branchId", 5); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 1. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 2. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: R1 - Trick 1 if (branchId == 3 && response == "s_79345378") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 1. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_3c59e302"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R1 - Trick 1 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R2 - Trick 2 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R3 - Trick 3 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: Do you have any more tricks? boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_79345378"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_7a43e024"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_872e7a7d"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_9ede25b7"); setObjVar (player, "conversation.sample_links.branchId", 1); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 2. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 2. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: R2 - Trick 2 if (branchId == 3 && response == "s_7a43e024") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 2. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_a91a9b13"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R1 - Trick 1 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R2 - Trick 2 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R3 - Trick 3 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: Do you have any more tricks? boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_79345378"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_7a43e024"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_872e7a7d"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_9ede25b7"); setObjVar (player, "conversation.sample_links.branchId", 1); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 2. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 2. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: R3 - Trick 3 if (branchId == 3 && response == "s_872e7a7d") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 3. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_2664b871"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R1 - Trick 1 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R2 - Trick 2 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R3 - Trick 3 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: Do you have any more tricks? boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_79345378"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_7a43e024"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_872e7a7d"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_9ede25b7"); setObjVar (player, "conversation.sample_links.branchId", 1); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 2. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 2. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: Do you have any more tricks? if (branchId == 3 && response == "s_9ede25b7") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: I think so. What do you want to see? string_id message = new string_id (c_stringFile, "s_cde8ebfe"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R4 - Trick 4 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R5 - Trick 5 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R6 - Trick 6 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: I want to see the first 3. boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_7cac869c"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_81c11cc5"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_82b6af99"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_d3ff6fc9"); setObjVar (player, "conversation.sample_links.branchId", 5); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 2. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 3. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: R1 - Trick 1 if (branchId == 4 && response == "s_79345378") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 1. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_3c59e302"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R1 - Trick 1 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R2 - Trick 2 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R3 - Trick 3 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: Do you have any more tricks? boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_79345378"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_7a43e024"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_872e7a7d"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_9ede25b7"); setObjVar (player, "conversation.sample_links.branchId", 1); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 3. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 3. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: R2 - Trick 2 if (branchId == 4 && response == "s_7a43e024") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 2. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_a91a9b13"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R1 - Trick 1 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R2 - Trick 2 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R3 - Trick 3 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: Do you have any more tricks? boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_79345378"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_7a43e024"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_872e7a7d"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_9ede25b7"); setObjVar (player, "conversation.sample_links.branchId", 1); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 3. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 3. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: R3 - Trick 3 if (branchId == 4 && response == "s_872e7a7d") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 3. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_2664b871"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R1 - Trick 1 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R2 - Trick 2 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R3 - Trick 3 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: Do you have any more tricks? boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_79345378"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_7a43e024"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_872e7a7d"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_9ede25b7"); setObjVar (player, "conversation.sample_links.branchId", 1); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 3. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 3. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: Do you have any more tricks? if (branchId == 4 && response == "s_9ede25b7") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: I think so. What do you want to see? string_id message = new string_id (c_stringFile, "s_cde8ebfe"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R4 - Trick 4 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R5 - Trick 5 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R6 - Trick 6 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: I want to see the first 3. boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_7cac869c"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_81c11cc5"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_82b6af99"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_d3ff6fc9"); setObjVar (player, "conversation.sample_links.branchId", 5); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 3. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: I think so. What do you want to see? //-- [RESPONSE NOTE] //-- PLAYER: R4 - Trick 4 if (branchId == 5 && response == "s_7cac869c") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 4. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_875d7686"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R4 - Trick 4 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R5 - Trick 5 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R6 - Trick 6 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: I want to see the first 3. boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_7cac869c"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_81c11cc5"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_82b6af99"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_d3ff6fc9"); setObjVar (player, "conversation.sample_links.branchId", 5); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I think so. What do you want to see?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: I think so. What do you want to see? //-- [RESPONSE NOTE] //-- PLAYER: R5 - Trick 5 if (branchId == 5 && response == "s_81c11cc5") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 5. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_82355e4"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R4 - Trick 4 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R5 - Trick 5 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R6 - Trick 6 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: I want to see the first 3. boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_7cac869c"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_81c11cc5"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_82b6af99"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_d3ff6fc9"); setObjVar (player, "conversation.sample_links.branchId", 5); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I think so. What do you want to see?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: I think so. What do you want to see? //-- [RESPONSE NOTE] //-- PLAYER: R6 - Trick 6 if (branchId == 5 && response == "s_82b6af99") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 6. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_9d602df5"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R4 - Trick 4 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R5 - Trick 5 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R6 - Trick 6 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: I want to see the first 3. boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_7cac869c"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_81c11cc5"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_82b6af99"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_d3ff6fc9"); setObjVar (player, "conversation.sample_links.branchId", 5); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I think so. What do you want to see?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: I think so. What do you want to see? //-- [RESPONSE NOTE] //-- PLAYER: I want to see the first 3. if (branchId == 5 && response == "s_d3ff6fc9") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: No problem. string_id message = new string_id (c_stringFile, "s_c261cfae"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R1 - Trick 1 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R2 - Trick 2 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R3 - Trick 3 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: Do you have any more tricks? boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_79345378"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_7a43e024"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_872e7a7d"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_9ede25b7"); setObjVar (player, "conversation.sample_links.branchId", 1); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'I think so. What do you want to see?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 4. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: R4 - Trick 4 if (branchId == 6 && response == "s_7cac869c") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 4. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_875d7686"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R4 - Trick 4 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R5 - Trick 5 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R6 - Trick 6 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: I want to see the first 3. boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_7cac869c"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_81c11cc5"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_82b6af99"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_d3ff6fc9"); setObjVar (player, "conversation.sample_links.branchId", 5); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 4. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 4. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: R5 - Trick 5 if (branchId == 6 && response == "s_81c11cc5") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 5. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_82355e4"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R4 - Trick 4 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R5 - Trick 5 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R6 - Trick 6 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: I want to see the first 3. boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_7cac869c"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_81c11cc5"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_82b6af99"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_d3ff6fc9"); setObjVar (player, "conversation.sample_links.branchId", 5); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 4. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 4. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: R6 - Trick 6 if (branchId == 6 && response == "s_82b6af99") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 6. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_9d602df5"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R4 - Trick 4 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R5 - Trick 5 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R6 - Trick 6 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: I want to see the first 3. boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_7cac869c"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_81c11cc5"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_82b6af99"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_d3ff6fc9"); setObjVar (player, "conversation.sample_links.branchId", 5); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 4. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 4. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: I want to see the first 3. if (branchId == 6 && response == "s_d3ff6fc9") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: No problem. string_id message = new string_id (c_stringFile, "s_c261cfae"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R1 - Trick 1 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R2 - Trick 2 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R3 - Trick 3 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: Do you have any more tricks? boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_79345378"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_7a43e024"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_872e7a7d"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_9ede25b7"); setObjVar (player, "conversation.sample_links.branchId", 1); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 4. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 5. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: R4 - Trick 4 if (branchId == 7 && response == "s_7cac869c") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 4. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_875d7686"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R4 - Trick 4 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R5 - Trick 5 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R6 - Trick 6 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: I want to see the first 3. boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_7cac869c"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_81c11cc5"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_82b6af99"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_d3ff6fc9"); setObjVar (player, "conversation.sample_links.branchId", 5); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 5. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 5. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: R5 - Trick 5 if (branchId == 7 && response == "s_81c11cc5") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 5. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_82355e4"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R4 - Trick 4 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R5 - Trick 5 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R6 - Trick 6 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: I want to see the first 3. boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_7cac869c"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_81c11cc5"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_82b6af99"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_d3ff6fc9"); setObjVar (player, "conversation.sample_links.branchId", 5); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 5. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 5. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: R6 - Trick 6 if (branchId == 7 && response == "s_82b6af99") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 6. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_9d602df5"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R4 - Trick 4 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R5 - Trick 5 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R6 - Trick 6 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: I want to see the first 3. boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_7cac869c"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_81c11cc5"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_82b6af99"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_d3ff6fc9"); setObjVar (player, "conversation.sample_links.branchId", 5); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 5. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 5. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: I want to see the first 3. if (branchId == 7 && response == "s_d3ff6fc9") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: No problem. string_id message = new string_id (c_stringFile, "s_c261cfae"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R1 - Trick 1 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R2 - Trick 2 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R3 - Trick 3 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: Do you have any more tricks? boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_79345378"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_7a43e024"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_872e7a7d"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_9ede25b7"); setObjVar (player, "conversation.sample_links.branchId", 1); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 5. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 6. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: R4 - Trick 4 if (branchId == 8 && response == "s_7cac869c") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 4. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_875d7686"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R4 - Trick 4 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R5 - Trick 5 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R6 - Trick 6 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: I want to see the first 3. boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_7cac869c"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_81c11cc5"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_82b6af99"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_d3ff6fc9"); setObjVar (player, "conversation.sample_links.branchId", 5); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 6. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 6. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: R5 - Trick 5 if (branchId == 8 && response == "s_81c11cc5") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 5. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_82355e4"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R4 - Trick 4 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R5 - Trick 5 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R6 - Trick 6 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: I want to see the first 3. boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_7cac869c"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_81c11cc5"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_82b6af99"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_d3ff6fc9"); setObjVar (player, "conversation.sample_links.branchId", 5); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 6. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 6. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: R6 - Trick 6 if (branchId == 8 && response == "s_82b6af99") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 6. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_9d602df5"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R4 - Trick 4 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R5 - Trick 5 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R6 - Trick 6 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: I want to see the first 3. boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_7cac869c"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_81c11cc5"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_82b6af99"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_d3ff6fc9"); setObjVar (player, "conversation.sample_links.branchId", 5); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 6. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: So, you've seen trick 6. Which trick do you want to see now? //-- [RESPONSE NOTE] //-- PLAYER: I want to see the first 3. if (branchId == 8 && response == "s_d3ff6fc9") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: No problem. string_id message = new string_id (c_stringFile, "s_c261cfae"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R1 - Trick 1 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R2 - Trick 2 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R3 - Trick 3 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: Do you have any more tricks? boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_79345378"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_7a43e024"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_872e7a7d"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_9ede25b7"); setObjVar (player, "conversation.sample_links.branchId", 1); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'So, you've seen trick 6. Which trick do you want to see now?' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: No problem. //-- [RESPONSE NOTE] //-- PLAYER: R1 - Trick 1 if (branchId == 9 && response == "s_79345378") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 1. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_3c59e302"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R1 - Trick 1 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R2 - Trick 2 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R3 - Trick 3 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: Do you have any more tricks? boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_79345378"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_7a43e024"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_872e7a7d"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_9ede25b7"); setObjVar (player, "conversation.sample_links.branchId", 1); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'No problem.' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: No problem. //-- [RESPONSE NOTE] //-- PLAYER: R2 - Trick 2 if (branchId == 9 && response == "s_7a43e024") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 2. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_a91a9b13"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R1 - Trick 1 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R2 - Trick 2 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R3 - Trick 3 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: Do you have any more tricks? boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_79345378"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_7a43e024"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_872e7a7d"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_9ede25b7"); setObjVar (player, "conversation.sample_links.branchId", 1); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'No problem.' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: No problem. //-- [RESPONSE NOTE] //-- PLAYER: R3 - Trick 3 if (branchId == 9 && response == "s_872e7a7d") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: So, you've seen trick 3. Which trick do you want to see now? string_id message = new string_id (c_stringFile, "s_2664b871"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R1 - Trick 1 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R2 - Trick 2 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R3 - Trick 3 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: Do you have any more tricks? boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_79345378"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_7a43e024"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_872e7a7d"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_9ede25b7"); setObjVar (player, "conversation.sample_links.branchId", 1); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'No problem.' were false."); return SCRIPT_CONTINUE; } //-- [BRANCH NOTE] //-- NPC: No problem. //-- [RESPONSE NOTE] //-- PLAYER: Do you have any more tricks? if (branchId == 9 && response == "s_9ede25b7") { //-- [NOTE] if (sample_links_condition__defaultCondition (player, self)) { //-- NPC: I think so. What do you want to see? string_id message = new string_id (c_stringFile, "s_cde8ebfe"); int numberOfResponses = 0; boolean hasResponse = false; //-- PLAYER: R4 - Trick 4 boolean hasResponse0 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse0 = true; } //-- PLAYER: R5 - Trick 5 boolean hasResponse1 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse1 = true; } //-- PLAYER: R6 - Trick 6 boolean hasResponse2 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse2 = true; } //-- PLAYER: I want to see the first 3. boolean hasResponse3 = false; if (sample_links_condition__defaultCondition (player, self)) { ++numberOfResponses; hasResponse = true; hasResponse3 = true; } if (hasResponse) { int responseIndex = 0; string_id responses [] = new string_id [numberOfResponses]; if (hasResponse0) responses [responseIndex++] = new string_id (c_stringFile, "s_7cac869c"); if (hasResponse1) responses [responseIndex++] = new string_id (c_stringFile, "s_81c11cc5"); if (hasResponse2) responses [responseIndex++] = new string_id (c_stringFile, "s_82b6af99"); if (hasResponse3) responses [responseIndex++] = new string_id (c_stringFile, "s_d3ff6fc9"); setObjVar (player, "conversation.sample_links.branchId", 5); npcSpeak (player, message); npcSetConversationResponses (player, responses); } else { removeObjVar (player, "conversation.sample_links.branchId"); npcSpeak (player, message); npcEndConversation (player); } return SCRIPT_CONTINUE; } chat.chat (self, "Error: All conditions for OnNpcConversationResponse for branch 'No problem.' were false."); return SCRIPT_CONTINUE; } chat.chat (self, "Error: Fell through all branches and responses for OnNpcConversationResponse."); removeObjVar (player, "conversation.sample_links.branchId"); return SCRIPT_CONTINUE; } // ======================================================================