Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. Version 1
  2. SubGoalCombiner SGC_AND
  3.  
  4. INITSECTION
  5. DB_Debug_TeleportFlags(TUT_Start_Debug_a70b4dfe-48e6-44d0-bf77-2ef788b76c3a, S_Debug_TutorialStart_92a13903-dcee-4bef-89c2-e33f3f335a2c);
  6. DB_Debug_TeleportFlags(Debug_Teleport_Start_bed680fc-eb8f-be3e-b9af-42086d14c439, TRIGGERGUID_S_Debug_Start_56ce0300-a975-42b6-b4ff-2c4ca3a795b4);
  7. DB_Debug_TeleportFlags(Debug_Teleport_Swamp_81973bc9-1019-6ed9-9007-92be99a5119b, TRIGGERGUID_S_Debug_Swamp_6c0125c1-93bc-4993-b91e-9ce0821b14fa);
  8. DB_Debug_TeleportFlags(Debug_Teleport_HagLair_6040fc11-afc1-f9d8-707f-8c0af0772393, TRIGGERGUID_S_Debug_HagLair_ba6d3f6d-e68b-4806-bbf2-c81570d12cc3);
  9. DB_Debug_TeleportFlags(Debug_Teleport_Chapel_1946adf3-21b0-5217-81d7-0f25a15abb5c, TRIGGERGUID_S_Debug_Chapel_0dfa6e6c-599c-47d4-84e1-3bffc7c8839b);
  10. DB_Debug_TeleportFlags(Debug_Teleport_LaezelRecruitChapel_7f303c90-acab-4f40-c89c-3a5efece822d, S_CHA_Debug_LaezelRecruitPoint_22095e5a-57af-438e-a303-6c5a38b2cef8);
  11. DB_Debug_TeleportFlags(Debug_Teleport_Den_ae47ab93-f412-9224-32b3-9b190a702f05, TRIGGERGUID_S_Debug_Den_c9ca9582-5e5e-4ecf-9dd8-ddd94027df03);
  12. DB_Debug_TeleportFlags(Debug_Teleport_DenCave_bb2080d2-91f7-f93f-45c9-9d3e53a7aae1, TRIGGERGUID_S_Debug_DenCave_a44c77eb-d06c-4c2c-a76d-fed503091576);
  13. DB_Debug_TeleportFlags(Debug_Teleport_DenWaypoint_28079793-84ec-b8a7-d07d-2b0409e49f05, TRIGGERGUID_S_Debug_DenWaypoint_9d75b127-f736-4ed4-a55f-4d710b448a7f);
  14. DB_Debug_TeleportFlags(Debug_Teleport_DenKidHideout_aa4a6383-8a60-0e40-ae22-43f69ad5a67b, TRIGGERGUID_S_Debug_DenKidHideout_dc2b9df7-5f83-423d-8ccf-f087e58bbfd0);
  15. DB_Debug_TeleportFlags(Debug_Teleport_DenPrison_0929bbd3-098c-47f3-8098-015aecbb24de, TRIGGERGUID_S_Debug_DenPrison_9e356d42-cdb6-47c6-ba01-5040ee3ec6aa);
  16. DB_Debug_TeleportFlags(Debug_Teleport_GoblinCamp_d5e54c97-2dfe-823f-e6b0-fc252282ef8c, TRIGGERGUID_S_Debug_GoblinCamp_09fb3ff3-4719-4764-a0f3-ecddccc3050e);
  17. DB_Debug_TeleportFlags(Debug_Teleport_FestivitiesArea_786daede-6c68-4403-9512-af15cb82694c, TRIGGERGUID_S_Debug_FestivitiesArea_93cb97ea-cfa1-4e18-a787-be1b5c5c2b03);
  18. DB_Debug_TeleportFlags(Debug_Teleport_WolfPens_3be21112-2626-c047-25b7-4094bc529127, TRIGGERGUID_S_Debug_WolfPens_ec5efb12-326f-4788-b228-3fdb18809058);
  19. DB_Debug_TeleportFlags(Debug_Teleport_Plains_f8096b38-8e6b-4e95-2538-760568f2f47b, TRIGGERGUID_S_Debug_Plains_1c8f2d87-9da2-4e01-ba89-9249e76d5465);
  20. DB_Debug_TeleportFlags(Debug_Teleport_GOB_Bravado_d20d4c0a-3f73-4a62-aa37-e0976b4bb293, S_Debug_GOB_Bravado_07b1a594-8214-4a9c-94cb-5f1e117f3096);
  21. DB_Debug_TeleportFlags(Debug_Teleport_PlainsZhentQuest_90f98016-3370-fa59-3a67-f1df627f843a, TRIGGERGUID_S_Debug_PlainsZhentQuest_1145762a-d981-4f5e-91cc-4e0a755e5fa4);
  22. DB_Debug_TeleportFlags(Debug_Teleport_PlainsGithChokepoint_17e063f9-c8ec-d14a-008a-c9131c3df9b3, S_Debug_PlainsChokepoint_0667b0a8-c78e-4c72-9e7d-443df93682a9);
  23. DB_Debug_TeleportFlags(Debug_Teleport_PLA_RapidRafting_36b031ad-e3ad-435a-8957-a5dd4421bfec, S_Debug_PLA_RapidRafting_b3600d8e-ebf5-4ab6-ac37-01d9bcb859db);
  24. DB_Debug_TeleportFlags(Debug_Teleport_TempleRuins_2055e601-991c-f217-40c2-ae7d1e99e211, TRIGGERGUID_S_Debug_GOB_ThroneRoom_03995572-1deb-447c-ab60-b15f018d1170);
  25. DB_Debug_TeleportFlags(Debug_Teleport_DruidLairEntrance_f33150cf-1247-44a0-bbd8-c03fb229418f, S_Debug_DruidLairEntrance_064ae3a3-8397-448e-84d8-964ab0e9d95f);
  26. DB_Debug_TeleportFlags(Debug_Teleport_FOR_Start_1251bb34-4dfd-ed6d-caec-36ff874e566e, S_FOR_DebugStartPoint_2c59b58f-0f35-4474-9ace-d94e8aa1ed1a);
  27. DB_Debug_TeleportFlags(Debug_Teleport_FOR_Village_0ec9a084-bc42-2970-87f7-29dc5f81650d, S_FOR_WaypointTrigger_e44f372c-b335-4dc8-8864-f2111c83c6a6);
  28. DB_Debug_TeleportFlags(FOR_Debug_ThayanCellar_2b52e98d-b2ae-4f45-95bf-d9da2b5284de, S_Debug_ThayanCellar_05bc62a7-cab3-43ef-9884-ed8bbb6c9b8e);
  29. DB_Debug_TeleportFlags(Debug_Teleport_UND_SussurTree_d06f6e72-1ec6-ec9c-5a8a-24ec20fcb259, S_Debug_UND_SussurTree_c70ac73c-d3fe-4739-8a96-9a83fbbc7fde);
  30. DB_Debug_TeleportFlags(Debug_Teleport_UND_ArcaneTower_d6266ff6-11f3-4447-a7da-dddc6603f2f7, S_Debug_UND_ArcaneTower_5337c410-affe-4fa4-8861-51a5f492210e);
  31. DB_Debug_TeleportFlags(Debug_Teleport_GOB_PainPriest_2cd1877b-ba61-4d71-b03e-59ceb2f84dcd, S_Debug_GOB_PainPriest_2890da01-3b08-462a-b420-93ab791ccd8b);
  32. DB_Debug_TeleportFlags(Debug_Teleport_HAG_GurHunter_8a9d63ef-5370-4588-939e-a1f2dd3e6a73, S_Debug_HAG_GurHunter_0bac9197-b9dd-45b9-a3fd-f190880bcd31);
  33. DB_Debug_TeleportFlags(Debug_Teleport_UND_FearfulRothe_60ac223a-a18e-4540-aef3-9dc520a26276, S_Debug_UND_FearfulRothe_30dcf454-3bfd-4115-95bd-f10c50724c7b);
  34. DB_Debug_TeleportFlags(Debug_Teleport_Underdark_3811e5db-8639-f3ed-eafa-669506a9f955, S_UND_General_DebugTeleport_517f36d9-e6ff-4316-a65f-7e863b0de8ee);
  35. DB_Debug_TeleportFlags(Debug_Teleport_Underdark_LoneDuergar_cc064d57-355e-7a74-029a-1d83a8af66fe, TRIGGERGUID_UND_LoneDuergar_DebugTeleport_f9546a02-2ffa-476e-870e-2dcf8ba23341);
  36. DB_Debug_TeleportFlags(Debug_Teleport_MushroomHunter_3fd5b4ac-fd04-4b5e-aaba-78852b7e4bea, S_Debug_MushroomHunter_3f8362d2-aaaf-465f-9bab-23df0f2d9834);
  37. DB_Debug_TeleportFlags(Debug_Teleport_PathToHagLair_9611a498-4103-489e-9a67-193b1c2e918e, S_Debug_PathToHagLair_7a5ad457-7862-4d48-8983-5384f08bbd44);
  38. DB_Debug_TeleportFlags(Debug_Teleport_DuergarCamp_deb0f4ee-d078-08ca-9c3f-ef74bf32e289, S_Debug_DuergarCamp_bf6e6f0b-0e6c-47e6-bff4-474a427372a0);
  39. DB_Debug_TeleportFlags(Debug_Teleport_UND_PanicRoom_68b14074-a904-7531-cc99-fc0db577f2fd, S_Debug_UND_PanicRoom_05ac6750-96f5-4d31-b2dc-e43db0582735);
  40. DB_Debug_TeleportFlags(Debug_Teleport_CRE_Start_cb8b2477-2f5e-ee72-d633-97e961b09a4a, S_Debug_CRE_Start_f5589b8f-7b86-4109-993b-335e120e6eca);
  41. DB_Debug_TeleportFlags(Debug_Teleport_CRE_MissionBrief_25662605-d341-5877-819d-53aa71c58755, S_Debug_CRE_MissionBrief_4c41251e-ce1d-49a2-bc0b-e41fe9bd8770);
  42. DB_Debug_TeleportFlags(Debug_Teleport_CRE_RadiantSun_e04d2cad-6fce-5700-d7f8-17f36b8cc602, S_Debug_CRE_RadiantSun_18cc68ca-3b72-4204-8996-c15d7903b19f);
  43. DB_Debug_TeleportFlags(Debug_Teleport_CRE_PortalRoom_e2e5ab86-5054-b102-bd01-df8c5b9fcfc0, S_Debug_CRE_PortalRoom_3a920ef6-cfb4-4be8-8c19-7c130e145961);
  44. DB_Debug_TeleportFlags(Debug_Teleport_CRE_AstralPlane_de23305d-3cca-84d0-6308-5babca060d79, S_Debug_CRE_AstralPlane_84a3713e-b43c-4f93-84dd-3c81ca318e93);
  45. DB_Debug_TeleportFlags(Debug_Teleport_CRE_ZaithiskRoom_a7011630-6485-d3cb-35e7-a7323b48a44c, S_Debug_CRE_ZaithiskRoom_6a5a1df0-c868-45d3-aa18-e668331aaff2);
  46. DB_Debug_TeleportFlags(Debug_Teleport_HAV_Checkpoint_4107f9d1-5903-4892-3345-55f8d43206f6, S_Debug_Teleport_HAV_Checkpoint_97eb9df3-c547-46b1-938f-03dc42697f1f);
  47. DB_Debug_TeleportFlags(Debug_Teleport_HAV_Inside_b6a37cf7-1a4d-01c0-37fe-cbfc8133e7d2, S_Debug_Teleport_HAV_Inside_75d32ee5-4484-4bcf-b089-a827be9035cf);
  48. DB_Debug_TeleportFlags(Debug_Teleport_HAV_IsobelRoom_3ba34fb2-9c7f-4bc7-9d45-e53e24bf9145, S_Debug_HAV_IsobelRoom_e33a97dd-150d-45a7-adf8-89de7dd4524d);
  49. DB_Debug_TeleportFlags(Debug_Teleport_Shar_1c51776d-8f90-bce4-9814-b2573ea8655a, S_Debug_SHA_Temple_b113d420-4006-42e3-9cb4-87b98edb4689);
  50. DB_Debug_TeleportFlags(Debug_Teleport_LivingQuarters_2e3014ad-ba04-912f-c202-5dfefb68d857, S_Debug_SHA_LivingQuarters_d307198a-cc15-4c76-ac96-d7bb9eb35830);
  51. DB_Debug_TeleportFlags(Debug_Teleport_MoonriseTowers_3b2e171e-cfdb-9694-5128-d43d56579bdc, S_Debug_MOO_GroundFloor_0f4dc576-b7e4-470c-9f1e-5dd6dc6fa1d1);
  52. DB_Debug_TeleportFlags(Debug_Teleport_MOO_IsobelRoom_d3fd4634-1a68-4bac-bdca-a5d42f787d76, S_Debug_MOO_IsobelRoom_d48e3ae2-2dd3-45a3-8188-43ec50655324);
  53. DB_Debug_TeleportFlags(Debug_Teleport_SCL_Underdark_fd0eadec-7ec3-4399-bbc3-bb4692e7ddbc, S_Debug_SCL_Underdark_6936fa1d-ec7f-4198-b959-623ad7a3ce76);
  54. DB_Debug_TeleportFlags(Debug_Teleport_SCL_RisenRoad_862cfb92-4eb4-2c09-d6c4-218bd4a9e5ae, S_Debug_SCL_Road_2a0a33dd-0f30-423a-9a87-693caf3d9645);
  55. DB_Debug_TeleportFlags(Debug_Teleport_SCL_MountainPass_19858dd8-3185-1d43-55e4-6e1edbe71892, S_Debug_SCL_Mountain_c0dbeb78-3b91-4200-ab84-4b6c87d6bad8);
  56. DB_Debug_TeleportFlags(Debug_Teleport_TWN_Tollhouse_8d969f06-3136-3210-360a-45c9aca0247a, S_Debug_TWN_Tollhouse_43d829fd-c9fb-4463-8af9-1e8f5e321f60);
  57. DB_Debug_TeleportFlags(Debug_Teleport_TWN_Distillery_098ffc86-338b-4eb4-be90-3bcaacd466b1, S_Debug_TWN_Distillery_fc2172a4-c777-45cc-9fc9-7ce19e23bc72);
  58. DB_Debug_TeleportFlags(Debug_Teleport_TWN_MasonsGuild_422042b7-d48d-4518-afd0-8bc85d6927d7, S_Debug_TWN_MasonsGuild_a8c0f88c-bde5-4c92-a456-8bbfc862cf9f);
  59. DB_Debug_TeleportFlags(Debug_Teleport_TWN_Hospital_931c975b-8f17-4797-a68a-cf44ce78eb2b, S_Debug_TWN_Hospital_eb295973-3de5-4f58-8605-dbe759269485);
  60. DB_Debug_TeleportFlags(Debug_Teleport_FlamingFistArrival_7115170d-394a-4db0-9f2f-6074e9592728, S_Debug_FlamingFistArrival_4409a2bf-d2aa-456d-be91-07af3addc28e);
  61. DB_Debug_TeleportFlags(Debug_Teleport_PlagueHouse_ae74f43f-8ec0-58ea-193b-54a7f77f1b5a, S_Debug_PlagueHouse_af813664-882b-4fa3-b951-6ee1efe21d7c);
  62. DB_Debug_TeleportFlags(Debug_Teleport_Evicted_a3c72335-eb29-2d83-c28b-4eb61f7bc85e, S_Debug_Evicted_fc9795a7-3adc-48ce-bc7d-72d7660d6369);
  63. DB_Debug_TeleportFlags(Debug_Teleport_TempleMurder_3a6aa9cd-3b41-4a36-801b-d69615dfcd1c, S_Debug_TempleMurder_c373eadf-dbaf-4a55-8c3a-36d0adc93125);
  64. DB_Debug_TeleportFlags(Debug_Teleport_Prototype2_515853e3-8a3f-a6c6-df4e-43e8ff016852, S_OUT_ArrivalPos_da708095-9cc3-44db-bf8c-8d098ae3bdbe);
  65. DB_Debug_TeleportFlags(Debug_Teleport_Prototype2b_86219198-8c83-4b37-83c2-5cbaf91714c3, S_LOW_BasiliskPos_85f1dc9f-400e-4cd9-bfa7-0e9c5a7a21cb);
  66. DB_Debug_SpellAddFlags(Debug_AddSpellDetectEvilAndGood_53564a4f-a7c5-c9e9-1119-de33d137c700, "Shout_DetectEvilAndGood");
  67. DB_Debug_SpellAddFlags(Debug_AddSpellMending_d068fd31-a5a8-94a0-df25-36ecc71764af, "Target_Mending");
  68. DB_Debug_SpellAddFlags(Debug_AddSpellHelpAction_628f7e65-2907-62cc-6781-17882f3df21b, "Target_Help");
  69. DB_Debug_SpellAddFlags(Debug_AddSpellKnockOut_f29fb66c-aa54-5a9f-dd89-d6cd1d805dd0, "Target_KnockOut_Person");
  70. DB_Debug_SpellAddFlags(Debug_AddSpellSpeakWithDead_86690b18-e88f-4f57-cd54-4300e8f71eeb, "Target_SpeakWithDead");
  71. DB_Debug_SpellAddFlags(Debug_AddSpellSpeakWithDead_Test_cd4dd314-6344-48b4-92d0-ec48dfcec34f, "Target_SpeakWithDead_Test");
  72. DB_Debug_SpellAddFlags(Debug_AddSpellDetectThoughts_de4422a3-c083-4252-bdff-b0b0e9bfd14d, "Shout_DetectThoughts");
  73. DB_DaisyDesire_Debug_InitDaisy(Debug_DaisyDesire_InitDaisyFemale_6d92b1ed-dd4b-e8d4-485b-011351389455, "Female");
  74. DB_DaisyDesire_Debug_InitDaisy(Debug_DaisyDesire_InitDaisyMale_2b160b1a-c1d9-3f46-3ae0-73d071fa0050, "Male");
  75. DB_GLO_DieFlag(Debug_Act2Setup_State_DammonDead_ddb82999-3b36-7cca-3477-c1476eddfcd2, S_DEN_Weaponsmith_e2ad06ec-8034-479a-9f69-b86faea6dc79, "DoT", NULL_00000000-0000-0000-0000-000000000000);
  76. DB_GLO_DieFlag(Debug_Act2Setup_State_DanisDead_fea8a2c1-fb89-109b-9413-75227f8bd6cc, S_GLO_YoungLover_01_dd9178e7-1e3f-43bc-8a38-666dfcac7d0c, "DoT", NULL_00000000-0000-0000-0000-000000000000);
  77. DB_GLO_DieFlag(Debug_Act2Setup_State_BexDead_44fae7bc-74f1-5af2-905d-ce6ddc0d4901, S_GLO_YoungLover_02_dcf597c0-36c5-4c81-957a-6fe9fca50a68, "DoT", NULL_00000000-0000-0000-0000-000000000000);
  78. DB_GLO_DieFlag(Debug_Act2Setup_State_EramasDead_5a292a39-20bb-7a8e-80eb-e33645242675, S_DEN_TieflingRefugee_RangerTrader_001_637d8d68-2a04-409e-a77d-cf31ac9478ee, "DoT", NULL_00000000-0000-0000-0000-000000000000);
  79. DB_GLO_DieFlag(Debug_Act2Setup_State_LakrissaDead_51487a98-ea74-4278-6725-304de01ca18f, S_DEN_Tiefling_010_23129d6c-8d39-4a4c-a4f6-cfc6637b597c, "DoT", NULL_00000000-0000-0000-0000-000000000000);
  80. DB_GLO_DieFlag(Debug_Act2Setup_State_BarcusDead_2679b4e3-98b1-5a2c-ee0c-22b69717625b, S_FOR_UnfortunateGnome_6e45a00b-bad2-40bb-9403-147b9e92d976, "Chasm", NULL_00000000-0000-0000-0000-000000000000);
  81. PROC_SetUnselectedGP2SwensOffStage();
  82.  
  83. KBSECTION
  84. PROC
  85. PROC_SetUnselectedGP2SwensOffStage()
  86. AND NOT
  87. DB_Players(S_GP2_DrowWizard_Elf_ddf3d3ed-ad0c-4050-b709-5699d17ab328)
  88. THEN
  89. SetOnStage(S_GP2_DrowWizard_Elf_ddf3d3ed-ad0c-4050-b709-5699d17ab328, 0);
  90.  
  91. PROC
  92. PROC_SetUnselectedGP2SwensOffStage()
  93. AND NOT
  94. DB_Players(S_GP2_DrowWizard_bdfb63ee-4c30-4efd-9a4f-e036628e9266)
  95. THEN
  96. SetOnStage(S_GP2_DrowWizard_bdfb63ee-4c30-4efd-9a4f-e036628e9266, 0);
  97.  
  98. IF
  99. FlagSet((FLAG)_Var1, (GUIDSTRING)_Var2, _)
  100. AND
  101. DB_Debug_TeleportFlags(_Var1, _Var4)
  102. THEN
  103. ClearFlag(_Var1, _Var2, 0);
  104. PROC_TeleportPartiesTo(_Var4, "");
  105.  
  106. PROC
  107. PROC_Debug_GiveDebugBook()
  108. AND
  109. GetHostCharacter(_Var1)
  110. AND NOT
  111. GetItemByTemplateInPartyInventory(S_DebugBook_31ee023c-d151-40f6-917e-84066772783b, _Var1, _)
  112. THEN
  113. TemplateAddTo(S_DebugBook_31ee023c-d151-40f6-917e-84066772783b, _Var1, 1, 0);
  114.  
  115. IF
  116. UsedTemplate((CHARACTER)_Var1, S_DebugBook_31ee023c-d151-40f6-917e-84066772783b, _)
  117. AND
  118. QRY_StartDialog(DIALOGRESOURCEGUID_DebugBook_3af7dec4-4c08-9e44-9064-ec038ebad0ea, _Var1)
  119. THEN
  120. DB_NOOP(1);
  121.  
  122. IF
  123. TemplateAddedTo(S_DebugBook_31ee023c-d151-40f6-917e-84066772783b, (ITEM)_Var1, (CHARACTER)_Var2)
  124. AND
  125. DB_Players(_Var2)
  126. THEN
  127. SetHotbarItem(_Var2, _Var1);
  128.  
  129. IF
  130. TextEvent("debugbook")
  131. AND
  132. GetHostCharacter(_Var1)
  133. AND
  134. DB_Players(_Var1)
  135. AND
  136. QRY_StartDialog(DIALOGRESOURCEGUID_DebugBook_3af7dec4-4c08-9e44-9064-ec038ebad0ea, _Var1)
  137. THEN
  138. DB_NOOP(1);
  139.  
  140. IF
  141. FlagSet(Debug_LongRest_3fc599d8-c8c7-1fa6-c832-4802573720e4, (CHARACTER)_Var1, _)
  142. THEN
  143. PROC_ForceStopDialog(_Var1);
  144. ClearFlag(Debug_LongRest_3fc599d8-c8c7-1fa6-c832-4802573720e4, _Var1, 0);
  145. PROC_Camp_InstantLongRest();
  146.  
  147. IF
  148. FlagSet(Debug_10LongRest_2d0e6b61-dd6d-187b-df86-93d7953958b2, (CHARACTER)_Var1, _)
  149. THEN
  150. PROC_ForceStopDialog(_Var1);
  151. ClearFlag(Debug_10LongRest_2d0e6b61-dd6d-187b-df86-93d7953958b2, _Var1, 0);
  152. PROC_Camp_InstantLongRest();
  153.  
  154. IF
  155. FlagSet(Debug_10LongRest_2d0e6b61-dd6d-187b-df86-93d7953958b2, (GUIDSTRING)_Var1, _)
  156. AND
  157. QRY_DoNTimes(9)
  158. AND
  159. DB_QRY_RTN_DoNTimes(_Var3)
  160. THEN
  161. PROC_LongRest();
  162.  
  163. IF
  164. FlagSet(Debug_Add1000Gold_7627d386-2bd6-7ea0-b718-ca93249e6194, (CHARACTER)_Var1, _)
  165. THEN
  166. ClearFlag(Debug_Add1000Gold_7627d386-2bd6-7ea0-b718-ca93249e6194, _Var1);
  167. AddGold(_Var1, 1000);
  168.  
  169. IF
  170. FlagSet(Debug_GodMode_On_0f27d940-9daf-0627-aee0-8887660acd1b, _, _)
  171. AND
  172. DB_Players(_Var3)
  173. THEN
  174. ClearFlag(Debug_GodMode_On_0f27d940-9daf-0627-aee0-8887660acd1b, _Var3);
  175. SetImmortal(_Var3, 1);
  176. PROC_SetInvulnerable(_Var3, 1);
  177.  
  178. IF
  179. FlagSet(Debug_GodMode_Off_b3796d17-1fe7-5b61-4b07-16bebe064857, _, _)
  180. AND
  181. DB_Players(_Var3)
  182. THEN
  183. ClearFlag(Debug_GodMode_Off_b3796d17-1fe7-5b61-4b07-16bebe064857, _Var3);
  184. SetImmortal(_Var3, 0);
  185. PROC_SetInvulnerable(_Var3, 0);
  186.  
  187. IF
  188. FlagSet(Debug_AddThievesTools_0c8206a7-4720-6c1d-24df-60d46363b9ef, (CHARACTER)_Var1, _)
  189. THEN
  190. ClearFlag(Debug_AddThievesTools_0c8206a7-4720-6c1d-24df-60d46363b9ef, _Var1);
  191. TemplateAddTo(TOOL_GEN_ThievesTools_A_Closed_A_08851ac0-3bfa-44f3-80c6-6ab0536f0e10, _Var1, 1, 1);
  192.  
  193. QRY
  194. QRY_GLO_PartyMembers_GetInPartyDialog((CHARACTER)_Var1)
  195. AND
  196. DB_GenericOrigins(_Var2)
  197. THEN
  198. DB_GLO_PartyMembers_InPartyDialog(_Var2, NULL_00000000-0000-0000-0000-000000000000);
  199.  
  200. IF
  201. DialogStarted(DIALOGRESOURCEGUID_DebugBook_3af7dec4-4c08-9e44-9064-ec038ebad0ea, _)
  202. AND
  203. DB_Debug_CharacterAddFlags(_, _, _Var4)
  204. THEN
  205. ClearFlag(_Var4, NULL_00000000-0000-0000-0000-000000000000, 0);
  206.  
  207. IF
  208. DialogStarted(DIALOGRESOURCEGUID_DebugBook_3af7dec4-4c08-9e44-9064-ec038ebad0ea, _)
  209. AND
  210. DB_Debug_CharacterAddFlags(_, _Var3, _Var4)
  211. AND
  212. DB_Players(_Var3)
  213. THEN
  214. SetFlag(_Var4, NULL_00000000-0000-0000-0000-000000000000, 0);
  215.  
  216. IF
  217. FlagSet((FLAG)_Var1, (CHARACTER)_Var2, _)
  218. AND
  219. DB_Debug_CharacterAddFlags(_Var1, _Var4, _)
  220. AND NOT
  221. DB_Players(_Var4)
  222. THEN
  223. SetOnStage(_Var4, 1);
  224. TeleportTo(_Var4, _Var2);
  225. PROC_GLO_PartyMembers_Add(_Var4, _Var2);
  226. SetFlag(SetPreset_Default_7eabc516-c15c-46ff-a99d-60d4a9f7037e, _Var4, 0);
  227.  
  228. IF
  229. FlagSet((FLAG)_Var1, (GUIDSTRING)_Var2, _)
  230. AND
  231. DB_Debug_CharacterAddFlags(_Var1, _, _)
  232. THEN
  233. ClearFlag(_Var1, _Var2);
  234.  
  235. IF
  236. FlagSet(Debug_AddGith_39ecbda9-cb44-becf-57b9-c3b631a5517b, (GUIDSTRING)_Var1, _)
  237. THEN
  238. PROC_CHA_LaezelRecruit_InitPlayer(0);
  239.  
  240. IF
  241. FlagSet((FLAG)_Var1, (CHARACTER)_Var2, _)
  242. AND
  243. DB_Debug_CharacterRemoveHideFlags(_Var1, _Var4)
  244. AND
  245. DB_Debug_CharacterAddFlags(_Var5, _Var4, _Var6)
  246. AND
  247. DB_Players(_Var4)
  248. AND
  249. DB_RecruitAvatarBond(_Var4, _Var7)
  250. THEN
  251. PROC_GLO_PartyMembers_Remove(_Var4, _Var7, 0);
  252. ClearFlag(_Var6, NULL_00000000-0000-0000-0000-000000000000);
  253. SetOnStage(_Var4, 0);
  254.  
  255. IF
  256. FlagSet((FLAG)_Var1, (GUIDSTRING)_Var2, _)
  257. AND
  258. DB_Debug_CharacterRemoveHideFlags(_Var1, _)
  259. THEN
  260. ClearFlag(_Var1, _Var2);
  261.  
  262. IF
  263. DialogStarted(DIALOGRESOURCEGUID_DebugBook_3af7dec4-4c08-9e44-9064-ec038ebad0ea, (INTEGER)_Var1)
  264. AND
  265. DB_DialogPlayers(_Var1, _Var2, _)
  266. THEN
  267. PlayHUDSound(_Var2, "Engine_DebugBook_Open");
  268.  
  269. IF
  270. DialogEnded(DIALOGRESOURCEGUID_DebugBook_3af7dec4-4c08-9e44-9064-ec038ebad0ea, (INTEGER)_Var1)
  271. AND
  272. DB_DialogPlayers(_Var1, _Var2, _)
  273. THEN
  274. PlayHUDSound(_Var2, "Engine_DebugBook_Close");
  275.  
  276. IF
  277. TextEvent("charflag")
  278. AND
  279. GetTextEventParamUUID(1, _Var1)
  280. AND
  281. GetHostCharacter(_Var2)
  282. THEN
  283. SetFlag(_Var1, _Var2);
  284.  
  285. IF
  286. TextEvent("userflag")
  287. AND
  288. GetTextEventParamUUID(1, _Var1)
  289. AND
  290. GetHostCharacter(_Var2)
  291. THEN
  292. SetFlag(_Var1, _Var2);
  293.  
  294. IF
  295. TextEvent("partyflag")
  296. AND
  297. GetTextEventParamUUID(1, _Var1)
  298. AND
  299. GetHostCharacter(_Var2)
  300. THEN
  301. SetFlag(_Var1, _Var2);
  302.  
  303. IF
  304. TextEvent("globalflag")
  305. AND
  306. GetTextEventParamUUID(1, _Var1)
  307. THEN
  308. SetFlag(_Var1, NULL_00000000-0000-0000-0000-000000000000, 0);
  309.  
  310. IF
  311. TextEvent("ccharflag")
  312. AND
  313. GetTextEventParamUUID(1, _Var1)
  314. AND
  315. GetHostCharacter(_Var2)
  316. THEN
  317. ClearFlag(_Var1, _Var2);
  318.  
  319. IF
  320. TextEvent("cuserflag")
  321. AND
  322. GetTextEventParamUUID(1, _Var1)
  323. AND
  324. GetHostCharacter(_Var2)
  325. THEN
  326. ClearFlag(_Var1, _Var2, 0);
  327.  
  328. IF
  329. TextEvent("cpartyflag")
  330. AND
  331. GetTextEventParamUUID(1, _Var1)
  332. AND
  333. GetHostCharacter(_Var2)
  334. THEN
  335. ClearFlag(_Var1, _Var2, 0);
  336.  
  337. IF
  338. TextEvent("cglobalflag")
  339. AND
  340. GetTextEventParamUUID(1, _Var1)
  341. THEN
  342. ClearFlag(_Var1, NULL_00000000-0000-0000-0000-000000000000, 0);
  343.  
  344. IF
  345. FlagSet(Debug_SkillWin_9369ef31-cb50-1888-6f8e-bc247f73307c, _, _)
  346. THEN
  347. ClearFlag(Debug_SkillWin_9369ef31-cb50-1888-6f8e-bc247f73307c, NULL_00000000-0000-0000-0000-000000000000, 0);
  348. DebugDialogSkillCheck(1);
  349.  
  350. IF
  351. FlagSet(Debug_SkillLose_91660706-f0d8-4073-6aa0-f1603614fa86, _, _)
  352. THEN
  353. ClearFlag(Debug_SkillLose_91660706-f0d8-4073-6aa0-f1603614fa86, NULL_00000000-0000-0000-0000-000000000000, 0);
  354. DebugDialogSkillCheck(-1);
  355.  
  356. IF
  357. FlagSet(Debug_SkillNormal_b4ae105d-c752-642c-7064-c1b8931c71b6, _, _)
  358. THEN
  359. ClearFlag(Debug_SkillNormal_b4ae105d-c752-642c-7064-c1b8931c71b6, NULL_00000000-0000-0000-0000-000000000000, 0);
  360. DebugDialogSkillCheck(0);
  361.  
  362. IF
  363. FlagSet((FLAG)_Var1, (CHARACTER)_Var2, (INTEGER)_Var3)
  364. AND
  365. DB_Debug_SpellAddFlags(_Var1, _Var4)
  366. THEN
  367. ClearFlag(_Var1, _Var2, _Var3);
  368. AddSpell(_Var2, _Var4, 1);
  369.  
  370. IF
  371. FlagSet(Debug_BecomeAvatar_34371b8e-a34b-3354-54e7-fcda800d703a, (CHARACTER)_Var1, _)
  372. AND
  373. DB_CompanionAvatarBond(_Var1, _Var3)
  374. AND
  375. GetFaction(_Var1, _Var4)
  376. THEN
  377. DB_GLO_PartyMembers_DefaultFaction(_Var1, _Var4);
  378. PROC_GLO_PartyMembers_ClearRecruitBonds(_Var1);
  379. PROC_RemoveDialog(_Var1);
  380. SetTag(_Var1, AVATAR_306b9b05-1057-4770-aa17-01af21acd650);
  381.  
  382. IF
  383. FlagSet(Debug_BecomeAvatar_34371b8e-a34b-3354-54e7-fcda800d703a, (CHARACTER)_Var1, _)
  384. THEN
  385. ClearFlag(Debug_BecomeAvatar_34371b8e-a34b-3354-54e7-fcda800d703a, _Var1, 0);
  386.  
  387. IF
  388. FlagSet(Debug_BecomeCompanion_4670c626-a52f-aeed-c18a-dc8d9c78b7cb, (CHARACTER)_Var1, _)
  389. AND
  390. SysCount("DB_Avatars", 1, _Var3)
  391. AND
  392. _Var3 < 2
  393. THEN
  394. DebugText(_Var1, "NEED AT LEAST ONE OTHER AVATAR TO BECOME A COMPANION");
  395.  
  396. IF
  397. FlagSet(Debug_BecomeCompanion_4670c626-a52f-aeed-c18a-dc8d9c78b7cb, (CHARACTER)_Var1, _)
  398. AND
  399. DB_Avatars(_Var3)
  400. AND
  401. _Var1 != _Var3
  402. AND NOT
  403. DB_DebugAvatarMigration(_Var1, _)
  404. THEN
  405. DB_DebugAvatarMigration(_Var1, _Var3);
  406.  
  407. IF
  408. FlagSet(Debug_BecomeCompanion_4670c626-a52f-aeed-c18a-dc8d9c78b7cb, (CHARACTER)_Var1, _)
  409. AND
  410. DB_DebugAvatarMigration(_Var1, _Var3)
  411. AND
  412. DB_CompanionAvatarBond(_Var4, _Var1)
  413. THEN
  414. NOT DB_CompanionAvatarBond(_Var4, _Var1);
  415. DB_CompanionAvatarBond(_Var4, _Var3);
  416.  
  417. IF
  418. FlagSet(Debug_BecomeCompanion_4670c626-a52f-aeed-c18a-dc8d9c78b7cb, (CHARACTER)_Var1, _)
  419. AND
  420. DB_DebugAvatarMigration(_Var1, _Var3)
  421. AND
  422. DB_RecruitAvatarBond(_Var4, _Var1)
  423. THEN
  424. PROC_GLO_PartyMembers_ClearRecruitBonds(_Var4);
  425. PROC_GLO_PartyMembers_RecruitAvatarBond(_Var4, _Var3);
  426.  
  427. IF
  428. FlagSet(Debug_BecomeCompanion_4670c626-a52f-aeed-c18a-dc8d9c78b7cb, S_Player_GenericOrigin_24247531-c432-4f0f-8f35-6c90c4844aa8, _)
  429. AND
  430. DB_DebugAvatarMigration(_Var2, _Var3)
  431. THEN
  432. ClearTag(_Var2, AVATAR_306b9b05-1057-4770-aa17-01af21acd650);
  433. DB_GLO_PartyMembers_OriginalAlignment(S_Player_GenericOrigin_24247531-c432-4f0f-8f35-6c90c4844aa8, Hero_a1542c81-6895-929e-4522-10ce218bb360);
  434. PROC_GLO_PartyMembers_Remove(_Var2, _Var3, 1);
  435. NOT DB_DebugAvatarMigration(_Var2, _Var3);
  436.  
  437. IF
  438. FlagSet(Debug_BecomeCompanion_4670c626-a52f-aeed-c18a-dc8d9c78b7cb, (CHARACTER)_Var1, _)
  439. AND
  440. DB_DebugAvatarMigration(_Var1, _Var3)
  441. AND
  442. DB_OriginNPCAlignment(_Var1, _Var4)
  443. THEN
  444. DB_GLO_PartyMembers_DefaultFaction(_Var1, _Var4);
  445. ClearTag(_Var1, AVATAR_306b9b05-1057-4770-aa17-01af21acd650);
  446. PROC_GLO_PartyMembers_Add(_Var1, _Var3);
  447. NOT DB_DebugAvatarMigration(_Var1, _Var3);
  448.  
  449. IF
  450. FlagSet(Debug_BecomeCompanion_4670c626-a52f-aeed-c18a-dc8d9c78b7cb, (CHARACTER)_Var1, _)
  451. THEN
  452. ClearFlag(Debug_BecomeCompanion_4670c626-a52f-aeed-c18a-dc8d9c78b7cb, _Var1, 0);
  453.  
  454. IF
  455. FlagSet(Debug_SetAllTags_Origins_3cde4737-618d-07ae-b846-3d020593fb60, (GUIDSTRING)_Var1, _)
  456. AND
  457. DB_OriginTags(_, _Var4, _)
  458. AND
  459. IsTagged(_Var1, _Var4, 0)
  460. THEN
  461. SetTag(_Var1, _Var4);
  462.  
  463. IF
  464. FlagSet(Debug_SetAllTags_ReallyOrigins_227ba3e7-70b5-3de4-5b1d-add6a3f47101, (GUIDSTRING)_Var1, _)
  465. AND
  466. DB_OriginTags(_, _, _Var5)
  467. AND
  468. IsTagged(_Var1, _Var5, 0)
  469. THEN
  470. SetTag(_Var1, _Var5);
  471.  
  472. IF
  473. FlagSet(Debug_SetAllTags_Origins_3cde4737-618d-07ae-b846-3d020593fb60, (GUIDSTRING)_Var1, _)
  474. THEN
  475. ClearFlag(Debug_SetAllTags_Origins_3cde4737-618d-07ae-b846-3d020593fb60, _Var1);
  476.  
  477. IF
  478. FlagSet(Debug_SetAllTags_ReallyOrigins_227ba3e7-70b5-3de4-5b1d-add6a3f47101, (GUIDSTRING)_Var1, _)
  479. THEN
  480. ClearFlag(Debug_SetAllTags_ReallyOrigins_227ba3e7-70b5-3de4-5b1d-add6a3f47101, _Var1);
  481.  
  482. IF
  483. TagSet((GUIDSTRING)_Var1, (TAG)_Var2)
  484. AND
  485. DB_OriginTags(_Var1, _Var2, _Var3)
  486. AND
  487. DB_DialogPlayers(_Var4, _Var1, _)
  488. AND
  489. DB_DialogName(DIALOGRESOURCEGUID_DebugBook_3af7dec4-4c08-9e44-9064-ec038ebad0ea, _Var4)
  490. AND
  491. GetFlag(Debug_SetReallyTagsToo_9d5e2c9d-a88c-227a-169b-48cc8f410bbc, _Var1, 1)
  492. THEN
  493. SetTag(_Var1, _Var3);
  494.  
  495. IF
  496. TagSet((GUIDSTRING)_Var1, GENERIC_730e82f3-c067-44a4-985b-0dfe079d4fea)
  497. AND
  498. DB_DialogPlayers(_Var2, _Var1, _)
  499. AND
  500. DB_DialogName(DIALOGRESOURCEGUID_DebugBook_3af7dec4-4c08-9e44-9064-ec038ebad0ea, _Var2)
  501. AND
  502. GetFlag(Debug_SetReallyTagsToo_9d5e2c9d-a88c-227a-169b-48cc8f410bbc, _Var1, 1)
  503. THEN
  504. SetTag(_Var1, REALLY_GENERIC_264a6880-9a51-429c-a9fc-97f8952baf90);
  505.  
  506. IF
  507. FlagSet(Debug_ClearAllTags_Origins_aece0b35-4276-5e8d-3ec3-2f0eae8048b7, (GUIDSTRING)_Var1, _)
  508. AND
  509. DB_OriginTags(_, _Var4, _)
  510. THEN
  511. ClearTag(_Var1, _Var4);
  512.  
  513. IF
  514. FlagSet(Debug_ClearAllTags_Origins_aece0b35-4276-5e8d-3ec3-2f0eae8048b7, (GUIDSTRING)_Var1, _)
  515. AND
  516. DB_OriginTags(_, _, _Var5)
  517. THEN
  518. ClearTag(_Var1, _Var5);
  519.  
  520. IF
  521. FlagSet(Debug_ClearAllTags_Origins_aece0b35-4276-5e8d-3ec3-2f0eae8048b7, (GUIDSTRING)_Var1, _)
  522. THEN
  523. ClearFlag(Debug_ClearAllTags_Origins_aece0b35-4276-5e8d-3ec3-2f0eae8048b7, _Var1);
  524.  
  525. IF
  526. FlagSet(Debug_ClearAllTags_Background_d84d4e7a-b838-c611-4a8d-016140d3aa44, (GUIDSTRING)_Var1, _)
  527. AND
  528. DB_BackgroundTags(_Var3)
  529. AND
  530. IsTagged(_Var1, _Var3, 1)
  531. THEN
  532. ClearTag(_Var1, _Var3);
  533.  
  534. IF
  535. FlagSet(Debug_ClearAllTags_Background_d84d4e7a-b838-c611-4a8d-016140d3aa44, (GUIDSTRING)_Var1, _)
  536. THEN
  537. ClearFlag(Debug_ClearAllTags_Background_d84d4e7a-b838-c611-4a8d-016140d3aa44, _Var1);
  538.  
  539. IF
  540. FlagSet(Debug_SetAllTags_Race_1cb166bb-918d-8c30-e33d-f93d43ab8963, (GUIDSTRING)_Var1, _)
  541. AND
  542. DB_RaceTags(_Var3, _)
  543. AND
  544. IsTagged(_Var1, _Var3, 0)
  545. THEN
  546. SetTag(_Var1, _Var3);
  547.  
  548. IF
  549. FlagSet(Debug_SetAllTags_Race_1cb166bb-918d-8c30-e33d-f93d43ab8963, (GUIDSTRING)_Var1, _)
  550. THEN
  551. ClearFlag(Debug_SetAllTags_Race_1cb166bb-918d-8c30-e33d-f93d43ab8963, _Var1);
  552.  
  553. IF
  554. FlagSet(Debug_SetAllTags_ReallyRace_79785ace-7cba-069a-4839-e9ff171b7af6, (GUIDSTRING)_Var1, _)
  555. AND
  556. DB_RaceTags(_, _Var4)
  557. AND
  558. IsTagged(_Var1, _Var4, 0)
  559. THEN
  560. SetTag(_Var1, _Var4);
  561.  
  562. IF
  563. FlagSet(Debug_SetAllTags_ReallyRace_79785ace-7cba-069a-4839-e9ff171b7af6, (GUIDSTRING)_Var1, _)
  564. THEN
  565. ClearFlag(Debug_SetAllTags_ReallyRace_79785ace-7cba-069a-4839-e9ff171b7af6, _Var1);
  566.  
  567. IF
  568. TagSet((GUIDSTRING)_Var1, (TAG)_Var2)
  569. AND
  570. DB_OriginTags(_, _Var2, _Var4)
  571. AND
  572. DB_DialogPlayers(_Var5, _Var1, _)
  573. AND
  574. DB_DialogName(DIALOGRESOURCEGUID_DebugBook_3af7dec4-4c08-9e44-9064-ec038ebad0ea, _Var5)
  575. AND
  576. GetFlag(Debug_SetReallyTagsToo_9d5e2c9d-a88c-227a-169b-48cc8f410bbc, _Var1, 1)
  577. AND
  578. IsTagged(_Var1, _Var4, 0)
  579. THEN
  580. SetTag(_Var1, _Var4);
  581.  
  582. IF
  583. TagSet((GUIDSTRING)_Var1, (TAG)_Var2)
  584. AND
  585. DB_RaceTags(_Var2, _Var3)
  586. AND
  587. DB_DialogPlayers(_Var4, _Var1, _)
  588. AND
  589. DB_DialogName(DIALOGRESOURCEGUID_DebugBook_3af7dec4-4c08-9e44-9064-ec038ebad0ea, _Var4)
  590. AND
  591. GetFlag(Debug_SetReallyTagsToo_9d5e2c9d-a88c-227a-169b-48cc8f410bbc, _Var1, 1)
  592. AND
  593. IsTagged(_Var1, _Var3, 0)
  594. THEN
  595. SetTag(_Var1, _Var3);
  596.  
  597. IF
  598. FlagSet(Debug_ClearAllTags_Race_0b3f5dec-ef77-66de-828c-2b6f9f1b38b9, (GUIDSTRING)_Var1, _)
  599. AND
  600. DB_RaceTags(_Var3, _Var4)
  601. THEN
  602. ClearTag(_Var1, _Var3);
  603. ClearTag(_Var1, _Var4);
  604.  
  605. IF
  606. FlagSet(Debug_ClearAllTags_Race_0b3f5dec-ef77-66de-828c-2b6f9f1b38b9, (GUIDSTRING)_Var1, _)
  607. THEN
  608. ClearFlag(Debug_ClearAllTags_Race_0b3f5dec-ef77-66de-828c-2b6f9f1b38b9, _Var1);
  609.  
  610. IF
  611. FlagSet(DEN_RaidingParty_Debug_ResolveConfrontation_FF_7409f4f0-19b1-4a84-f793-e32266bcce9d, (GUIDSTRING)_Var1, _)
  612. THEN
  613. SetFlag(DEN_RaidingParty_State_PeacefulResolution_f4529d52-b459-6545-b4bf-8b2fb2cd6f2f, NULL_00000000-0000-0000-0000-000000000000, 0);
  614. SetFlag(DEN_RaidingParty_Debug_ResolveConfrontation_cd991e7d-f05f-ddfe-d159-b4d80bf8075d, _Var1, 0);
  615. TimerLaunch("DEN_General_AfterRaidingPartyDebugTeleport", 7500);
  616.  
  617. IF
  618. TimerFinished("DEN_General_AfterRaidingPartyDebugTeleport")
  619. THEN
  620. TeleportTo(S_DEN_AdventurerLeader_82d1b843-9e8c-48a5-9d87-caddea5c193c, S_DEN_AdventurerArea_001_902982c7-079a-4c5d-be65-2ce3fb8e725d, "", 0, 0, 0);
  621. TeleportTo(S_DEN_RobbedAdventurer_534bceaf-678c-40a0-8ca9-e1134f95ba0d, S_DEN_AdventurerArea_003_5fdf3e6c-bb21-48e2-8768-00767edc89da, "", 0, 0, 0);
  622. TeleportTo(S_DEN_Trainer_02025646-347a-4235-aef7-e46b7c94b435, S_DEN_TrainerPoint_8b56581e-8e85-41ac-a32e-dcecffaa7fa5, "", 0, 0, 0);
  623. TeleportTo(S_Player_Wyll_c774d764-4a17-48dc-b470-32ace9ce447d, S_DEN_WyllRecruitPoint_3a3551e1-f5eb-49d7-b46c-c29b60ee470d, "", 0, 0, 0);
  624. TeleportTo(S_DEN_GrieflingFriend_c3334ee5-38dc-4197-aacc-4aa55803ff52, S_DEN_AvengeFriendPoint_c9016542-c6ce-484c-a837-23241555589d, "", 0, 0, 0);
  625. TeleportTo(S_DEN_Griefling_7ce0afc2-e8f2-4f2e-82d8-27df98acc3d8, S_DEN_AvengePoint_3ac11305-c3f9-4653-8308-5c02d38a9b1d, "", 0, 0, 0);
  626. TeleportTo(S_DEN_Tiefling_010_23129d6c-8d39-4a4c-a4f6-cfc6637b597c, S_DEN_BadWizardGuardFriendPos_a36ad802-aaf5-4249-b12a-9e2b42a6e85d, "", 0, 0, 0);
  627.  
  628. IF
  629. FlagSet(Debug_GOB_TempleAccess_DebugSolve_1ded7447-57ac-545d-c4c2-0ea3d2c56790, _, _)
  630. THEN
  631. ClearFlag(Debug_GOB_TempleAccess_DebugSolve_1ded7447-57ac-545d-c4c2-0ea3d2c56790, NULL_00000000-0000-0000-0000-000000000000, 0);
  632. PROC_GOB_TempleAccess_DebugSolve();
  633.  
  634. IF
  635. TextEvent("Debug_SWD_LimitReached")
  636. THEN
  637. DB_Debug_SWD_LimitEnabled(1);
  638.  
  639. IF
  640. TextEvent("Debug_SWD_LimitClear")
  641. THEN
  642. NOT DB_Debug_SWD_LimitEnabled(1);
  643.  
  644. IF
  645. UsingSpellOnTarget(_, (GUIDSTRING)_Var2, "Target_SpeakWithDead_Test", _, _, _)
  646. AND
  647. DB_Debug_SWD_LimitEnabled(1)
  648. THEN
  649. SetFlag(GLO_SpeakWithDead_State_QuestionsLimitReached_01c40268-4a8d-4787-8566-77e01ff04762, _Var2);
  650.  
  651. IF
  652. UsingSpellOnTarget(_, (GUIDSTRING)_Var2, "Target_SpeakWithDead_Test", _, _, _)
  653. AND NOT
  654. DB_Debug_SWD_LimitEnabled(1)
  655. THEN
  656. ClearFlag(GLO_SpeakWithDead_State_QuestionsLimitReached_01c40268-4a8d-4787-8566-77e01ff04762, _Var2);
  657.  
  658. IF
  659. FlagSet(Debug_CAMP_GotoNight1_4a20172a-0ff4-b6bd-a19b-364f40d7b6b6, NULL_00000000-0000-0000-0000-000000000000, _)
  660. THEN
  661. ClearFlag(Debug_CAMP_GotoNight1_4a20172a-0ff4-b6bd-a19b-364f40d7b6b6, NULL_00000000-0000-0000-0000-000000000000, 0);
  662.  
  663. IF
  664. FlagSet(Debug_CAMP_GotoNight2_f51a143a-c692-236c-631c-10e82b8ca723, NULL_00000000-0000-0000-0000-000000000000, _)
  665. THEN
  666. ClearFlag(Debug_CAMP_GotoNight2_f51a143a-c692-236c-631c-10e82b8ca723, NULL_00000000-0000-0000-0000-000000000000, 0);
  667.  
  668. IF
  669. FlagSet(Debug_CAMP_GotoNight3_bd19d762-19a5-ce3c-4995-345f97468723, NULL_00000000-0000-0000-0000-000000000000, _)
  670. THEN
  671. ClearFlag(Debug_CAMP_GotoNight3_bd19d762-19a5-ce3c-4995-345f97468723, NULL_00000000-0000-0000-0000-000000000000, 0);
  672.  
  673. IF
  674. FlagSet(Debug_CAMP_GotoNight4_01da48ec-a173-a600-3b11-283fd80a8cbb, NULL_00000000-0000-0000-0000-000000000000, _)
  675. THEN
  676. ClearFlag(Debug_CAMP_GotoNight4_01da48ec-a173-a600-3b11-283fd80a8cbb, NULL_00000000-0000-0000-0000-000000000000, 0);
  677.  
  678. IF
  679. FlagSet(Debug_CAMP_GotoNight4b_ff3ecb0c-3482-eaaa-7cf6-76def3bc6919, NULL_00000000-0000-0000-0000-000000000000, _)
  680. THEN
  681. ClearFlag(Debug_CAMP_GotoNight4b_ff3ecb0c-3482-eaaa-7cf6-76def3bc6919, NULL_00000000-0000-0000-0000-000000000000, 0);
  682.  
  683. IF
  684. FlagSet(Debug_CAMP_GotoNight5_469d499f-e29e-8e64-e43d-0131cf977214, NULL_00000000-0000-0000-0000-000000000000, _)
  685. THEN
  686. ClearFlag(Debug_CAMP_GotoNight5_469d499f-e29e-8e64-e43d-0131cf977214, NULL_00000000-0000-0000-0000-000000000000, 0);
  687.  
  688. IF
  689. FlagSet((FLAG)_Var1, (CHARACTER)_Var2, _)
  690. AND
  691. DB_DaisyDesire_Debug_InitDaisy(_Var1, _Var4)
  692. THEN
  693. ClearFlag(_Var1, _Var2);
  694. PROC_DaisyDesire_SetDaisyFor(_Var2, _Var4);
  695.  
  696. IF
  697. FlagSet(Debug_DaisyDesire_ChangeDaisyGender_04a3fe1e-86c8-3cd4-2d4b-5f780a09c7e3, (CHARACTER)_Var1, _)
  698. THEN
  699. ClearFlag(Debug_DaisyDesire_ChangeDaisyGender_04a3fe1e-86c8-3cd4-2d4b-5f780a09c7e3, _Var1);
  700. PROC_DaisyDesire_CheckChangeGenderFor(_Var1);
  701.  
  702. IF
  703. FlagSet(Debug_DaisyDesire_ChangeHostGender_1ef4f371-8cf1-c807-4a37-4d060069b13b, NULL_00000000-0000-0000-0000-000000000000, _)
  704. AND
  705. GetHostCharacter(_Var2)
  706. THEN
  707. ClearFlag(Debug_DaisyDesire_ChangeHostGender_1ef4f371-8cf1-c807-4a37-4d060069b13b, NULL_00000000-0000-0000-0000-000000000000);
  708. PROC_DaisyDesire_CheckChangeGenderFor(_Var2);
  709.  
  710. IF
  711. FlagSet(Debug_Gold_AstarionAvatar_707d95f5-c230-b113-e1b9-81a5e7b75ac4, NULL_00000000-0000-0000-0000-000000000000, _)
  712. AND
  713. GetHostCharacter(_Var2)
  714. THEN
  715. LoadPartyPreset("2.0_GoldenPath_Astarion", _Var2);
  716. TimerLaunch("DBG_AstarionSetup", 0);
  717. TimerLaunch("DBG_KickGeneric", 150);
  718.  
  719. IF
  720. FlagSet(Debug_Gold_AstarionFullParty_ab7d9d6b-d37a-5c96-f841-5f943e27d75f, NULL_00000000-0000-0000-0000-000000000000, _)
  721. AND
  722. GetHostCharacter(_Var2)
  723. THEN
  724. LoadPartyPreset("2.0_GoldenPath_AstarionFullParty", _Var2);
  725. TimerLaunch("DBG_AstarionSetup", 0);
  726. TimerLaunch("DBG_KickGeneric", 150);
  727.  
  728. IF
  729. FlagSet(Debug_GP_SpawnDrowAvatar_1def5259-0c28-513d-b4f6-fd75fe1c4048, _, _)
  730. AND
  731. GetHostCharacter(_Var3)
  732. AND
  733. GetPosition(_Var3, _Var4, _Var5, _Var6)
  734. AND
  735. CreateAt(Elves_Male_Drow_Player_bc3cde9c-cf02-48ff-b44f-a53a1e009a35, _Var4, _Var5, _Var6, 0, 0, "", _Var7)
  736. THEN
  737. SetTag(_Var7, AVATAR_306b9b05-1057-4770-aa17-01af21acd650);
  738. SetTag(_Var7, GENERIC_730e82f3-c067-44a4-985b-0dfe079d4fea);
  739. SetTag(_Var7, REALLY_GENERIC_264a6880-9a51-429c-a9fc-97f8952baf90);
  740. SetTag(_Var7, WARLOCK_5804f55a-93f7-4281-9512-8d548a9e2a22);
  741. DB_OnlyOncePerPlayer(_Var7, "Recruitment_Respec");
  742. DB_GLO_PartyMembers_DefaultFaction(_Var7, Hero_Player5_42455b5c-c09b-ea83-4fee-5932dfd76525);
  743. SetOnStage(_Var7, 1);
  744. TeleportTo(_Var7, _Var3);
  745. PROC_GLO_PartyMembers_Add(_Var7, _Var3);
  746.  
  747. IF
  748. TextEvent("KickGeneric")
  749. THEN
  750. PROC_KickGenericPlayer();
  751.  
  752. PROC
  753. PROC_KickGenericPlayer()
  754. THEN
  755. NOT DB_Avatars(S_Player_GenericOrigin_24247531-c432-4f0f-8f35-6c90c4844aa8);
  756. MakeNPC(S_Player_GenericOrigin_24247531-c432-4f0f-8f35-6c90c4844aa8);
  757. SetOnStage(S_Player_GenericOrigin_24247531-c432-4f0f-8f35-6c90c4844aa8, 0);
  758.  
  759. PROC
  760. PROC_KickGenericPlayer()
  761. AND
  762. DB_Players(_Var1)
  763. AND
  764. IsTagged(_Var1, GENERIC_730e82f3-c067-44a4-985b-0dfe079d4fea, 1)
  765. THEN
  766. NOT DB_Avatars(_Var1);
  767. MakeNPC(_Var1);
  768. SetOnStage(_Var1, 0);
  769.  
  770. IF
  771. TimerFinished("DBG_AstarionSetup")
  772. THEN
  773. PROC_CRA_InitAstarion();
  774.  
  775. IF
  776. TimerFinished("DBG_KickGeneric")
  777. THEN
  778. PROC_KickGenericPlayer();
  779.  
  780. IF
  781. FlagSet(DEBUG_GP2_Preset_ed004b8c-0e55-1599-25e7-4adf5957ac7c, _, _)
  782. THEN
  783. SetOnStage(S_GP2_DrowWizard_bdfb63ee-4c30-4efd-9a4f-e036628e9266, 1);
  784. SetOnStage(S_GP2_DrowWizard_Elf_ddf3d3ed-ad0c-4050-b709-5699d17ab328, 0);
  785. PROC_SetupGP2PReset(S_GP2_DrowWizard_bdfb63ee-4c30-4efd-9a4f-e036628e9266);
  786.  
  787. IF
  788. FlagSet(DEBUG_GP2_Preset_Elf_cc4773b8-28d4-4055-bd32-057aac86deb3, _, _)
  789. THEN
  790. SetOnStage(S_GP2_DrowWizard_bdfb63ee-4c30-4efd-9a4f-e036628e9266, 0);
  791. SetOnStage(S_GP2_DrowWizard_Elf_ddf3d3ed-ad0c-4050-b709-5699d17ab328, 1);
  792. PROC_SetupGP2PReset(S_GP2_DrowWizard_Elf_ddf3d3ed-ad0c-4050-b709-5699d17ab328);
  793.  
  794. PROC
  795. PROC_SetupGP2PReset((CHARACTER)_Var1)
  796. AND
  797. GetGold(_Var1, _Var2)
  798. AND
  799. IntegerSubtract(134, _Var2, _Var3)
  800. AND
  801. GetHostCharacter(_Var4)
  802. THEN
  803. ClearFlag(DEBUG_GP2_Preset_ed004b8c-0e55-1599-25e7-4adf5957ac7c, NULL_00000000-0000-0000-0000-000000000000);
  804. ClearFlag(DEBUG_GP2_Preset_Elf_cc4773b8-28d4-4055-bd32-057aac86deb3, NULL_00000000-0000-0000-0000-000000000000);
  805. SetFlag(DEBUG_GP2_CampNights_20be1914-6efb-4140-b178-a8dc30cd1688, NULL_00000000-0000-0000-0000-000000000000, 0);
  806. SetFlag(Debug_Teleport_FOR_GP2Start_2842f06b-2488-aefc-b357-0d9c054c6abd, _Var4, 0);
  807. PROC_Debug_GoldenPath_LevelUp();
  808. DB_GLO_PartyMembers_DefaultFaction(_Var1, Hero_Player6_1e359c81-966b-783e-1f5b-69600828513d);
  809. PROC_GLO_PartyMembers_Add(_Var1, _Var4);
  810. SetFlag(Debug_AddGale_06a419b9-8c82-ef98-12af-41dfca6672dd, _Var4, 0);
  811. SetFlag(Debug_AddGith_39ecbda9-cb44-becf-57b9-c3b631a5517b, _Var4, 0);
  812. SetFlag(Debug_AddShadowHeart_c3be7a23-a663-d778-50f9-a52f6cfe78bf, _Var4, 0);
  813. AddGold(_Var1, _Var3);
  814. SetTag(_Var1, GENERIC_730e82f3-c067-44a4-985b-0dfe079d4fea);
  815. TemplateAddTo(WPN_HUM_Maul_A_0_5487ceb4-b009-46ae-8ed6-cd3baaf0a18d, S_Player_Laezel_58a69333-40bf-8358-1d17-fff240d7fb12, 1, 1);
  816. TemplateAddTo(CONS_Potion_Hill_Giant_Strength_c69fb092-2f4f-4688-82b6-7d92405626b1, S_Player_Laezel_58a69333-40bf-8358-1d17-fff240d7fb12, 1, 1);
  817. TemplateAddTo(CONS_Poison_Basic_28645376-e6e8-436a-8e9a-c62877fae07d, S_Player_Laezel_58a69333-40bf-8358-1d17-fff240d7fb12, 2, 1);
  818. TemplateAddTo(GRN_GreaseBottle_A_e2968a2e-bc83-4d50-99ef-39ce78d2d630, S_Player_Laezel_58a69333-40bf-8358-1d17-fff240d7fb12, 2, 1);
  819. TemplateAddTo(LOOT_SCROLL_Resurrection_c1c3e4fb-d68c-4e10-afdc-d4550238d50e, S_Player_ShadowHeart_3ed74f06-3c60-42dc-83f6-f034cb47c679, 1, 1);
  820. TemplateAddTo(LOOT_SCROLL_Knock_4c1a886a-7db5-4e00-bbc6-d4243534f057, S_Player_Gale_ad9af97d-75da-406a-ae13-7071c563f604, 1, 1);
  821. TemplateAddTo(LOOT_SCROLL_MistyStep_9a2a3fcc-d948-4463-b88b-a9d61b77b015, S_Player_Gale_ad9af97d-75da-406a-ae13-7071c563f604, 1, 1);
  822. GiveInspirationPoints(_Var1, 1, "", "");
  823. TimerLaunch("GP2_SetupDelay", 250);
  824.  
  825. IF
  826. TimerFinished("GP2_SetupDelay")
  827. AND
  828. DB_Players(_Var1)
  829. THEN
  830. IterateInventory(_Var1, "GP2_HotbarCheck", "");
  831.  
  832. IF
  833. EntityEvent((ITEM)_Var1, "GP2_HotbarCheck")
  834. AND
  835. IsTagged(_Var1, CONSUMABLE_4d79b277-97f0-4227-a780-7a14fb9827fc, 1)
  836. AND
  837. GetInventoryOwner(_Var1, _Var2)
  838. AND
  839. DB_Players(_Var2)
  840. THEN
  841. SetHotbarItem(_Var2, _Var1);
  842.  
  843. IF
  844. TimerFinished("GP2_SetupDelay")
  845. AND
  846. DB_Players(_Var1)
  847. AND
  848. TemplateIsInInventory(WPN_HUM_Torch_A_50c43f27-a12e-412c-88f0-56e15eba692a, _Var1, 0)
  849. THEN
  850. TemplateAddTo(WPN_HUM_Torch_A_50c43f27-a12e-412c-88f0-56e15eba692a, _Var1, 1, 1);
  851.  
  852. IF
  853. TimerFinished("GP2_SetupDelay")
  854. AND
  855. DB_Players(_Var1)
  856. AND
  857. _Var1 != S_GP2_DrowWizard_bdfb63ee-4c30-4efd-9a4f-e036628e9266
  858. AND
  859. _Var1 != S_GP2_DrowWizard_Elf_ddf3d3ed-ad0c-4050-b709-5699d17ab328
  860. AND
  861. IsTagged(_Var1, GENERIC_730e82f3-c067-44a4-985b-0dfe079d4fea, 1)
  862. THEN
  863. NOT DB_Players(_Var1);
  864. NOT DB_Avatars(_Var1);
  865. MakeNPC(_Var1);
  866. SetOnStage(_Var1, 0);
  867.  
  868. IF
  869. TimerFinished("GP2_SetupDelay")
  870. AND
  871. DB_Players(_Var1)
  872. AND
  873. IsTagged(_Var1, GENERIC_730e82f3-c067-44a4-985b-0dfe079d4fea, 0)
  874. AND
  875. _Var1 != S_Player_Laezel_58a69333-40bf-8358-1d17-fff240d7fb12
  876. AND
  877. _Var1 != S_Player_ShadowHeart_3ed74f06-3c60-42dc-83f6-f034cb47c679
  878. AND
  879. _Var1 != S_Player_Gale_ad9af97d-75da-406a-ae13-7071c563f604
  880. THEN
  881. PROC_GLO_PartyMembers_Remove(_Var1, 1);
  882. SetOnStage(_Var1, 0);
  883.  
  884. IF
  885. TimerFinished("GP2_SetupDelay")
  886. AND
  887. DB_AutoSaveTrigger(_Var1)
  888. THEN
  889. NOT DB_AutoSaveTrigger(_Var1);
  890.  
  891. IF
  892. FlagSet(DEBUG_GP2_CampNights_20be1914-6efb-4140-b178-a8dc30cd1688, NULL_00000000-0000-0000-0000-000000000000, _)
  893. AND
  894. DB_CampNight(_Var2, _Var3)
  895. THEN
  896. NOT DB_CampNight(_Var2, _Var3);
  897.  
  898. IF
  899. FlagSet(DEBUG_GP2_CampNights_20be1914-6efb-4140-b178-a8dc30cd1688, NULL_00000000-0000-0000-0000-000000000000, _)
  900. THEN
  901. DB_OnlyOnce("CAMP_IntroductionHappened");
  902. ClearFlag(DEBUG_GP2_CampNights_20be1914-6efb-4140-b178-a8dc30cd1688, NULL_00000000-0000-0000-0000-000000000000, 0);
  903. DB_CampNight(NIGHT_Ceremorphosis1_98059567-b62a-4db8-9ce4-d39c792e0238, 4005);
  904. DB_CampNight(NIGHT_MonitorIntro_a9297517-ab4d-482d-b287-fc6e7001d93e, 4004);
  905. NOT DB_CampNight_Requirement(NIGHT_MonitorIntro_a9297517-ab4d-482d-b287-fc6e7001d93e, GLO_2NightsSinceDaisyDream1_0d62bf15-2a08-4bc3-b045-fcad912065a4);
  906.  
  907. IF
  908. FlagSet(Debug_Teleport_FOR_GP2Start_2842f06b-2488-aefc-b357-0d9c054c6abd, (GUIDSTRING)_Var1, _)
  909. THEN
  910. ClearFlag(Debug_Teleport_FOR_GP2Start_2842f06b-2488-aefc-b357-0d9c054c6abd, _Var1, 0);
  911. TeleportToPosition(_Var1, 63, 24, 464, "", 1, 1, 1);
  912.  
  913. PROC
  914. PROC_Debug_GoldenPath_LevelUp()
  915. AND
  916. DB_Players(_Var1)
  917. AND
  918. GetLevel(_Var1, _Var2)
  919. AND
  920. _Var2 < 3
  921. AND
  922. IntegerSubtract(3, _Var2, _Var3)
  923. THEN
  924. PROC_LevelUpBy(_Var1, _Var3);
  925.  
  926. PROC
  927. PROC_Debug_GoldenPath_Part3()
  928. THEN
  929. SetFlag(Debug_Quest_VoloToCamp_fd40e1a2-b595-23f8-9147-e6842e12bd01, S_Player_Astarion_c7c13742-bacd-460a-8f65-f864fe41f255);
  930.  
  931. PROC
  932. PROC_Debug_GoldenPath_Part3()
  933. AND
  934. DB_Players(_Var1)
  935. THEN
  936. LookAt(_Var1, S_GLO_Volo_2af25a85-5b9a-4794-85d3-0bd4c4d262fa);
  937.  
  938. PROC
  939. PROC_UND_TeaserTrailer_AddPlayer((CHARACTER)_Var1, (CHARACTER)_Var2)
  940. AND NOT
  941. DB_Players(_Var1)
  942. THEN
  943. DB_Players(_Var1);
  944. MakePlayer(_Var1, _Var2);
  945. PROC_AssignCharacterToPlayer(_Var1, _Var2);
  946. AttachToPartyGroup(_Var1, _Var2);
  947.  
  948. IF
  949. TextEvent("und_teasertrailer")
  950. AND
  951. GetHostCharacter(_Var1)
  952. AND
  953. _Var1 != S_UND_TeaserTrailer_Drow_ebc4cc51-6140-4ff7-9a12-af5b3c75a407
  954. THEN
  955. PROC_UND_TeaserTrailer_AddPlayer(S_UND_TeaserTrailer_Drow_ebc4cc51-6140-4ff7-9a12-af5b3c75a407, _Var1);
  956. SetTag(S_UND_TeaserTrailer_Drow_ebc4cc51-6140-4ff7-9a12-af5b3c75a407, AVATAR_306b9b05-1057-4770-aa17-01af21acd650);
  957. PROC_UND_TeaserTrailer_AddPlayer(S_UND_TeaserTrailer_Halfling_63949406-0bc5-4efe-a023-19a0a485901b, S_UND_TeaserTrailer_Drow_ebc4cc51-6140-4ff7-9a12-af5b3c75a407);
  958. PROC_UND_TeaserTrailer_AddPlayer(S_UND_TeaserTrailer_Human_82f20a8e-3120-4098-b119-0c1324876796, S_UND_TeaserTrailer_Drow_ebc4cc51-6140-4ff7-9a12-af5b3c75a407);
  959. DB_UndTeaserHostChar(_Var1);
  960. TimerLaunch("UND_Teaser_DelayParty", 50);
  961.  
  962. IF
  963. TimerFinished("UND_Teaser_DelayParty")
  964. AND
  965. DB_UndTeaserHostChar(_Var1)
  966. THEN
  967. MakePlayerActive(S_UND_TeaserTrailer_Drow_ebc4cc51-6140-4ff7-9a12-af5b3c75a407);
  968. NOT DB_UndTeaserHostChar(_Var1);
  969. PROC_GLO_PartyMembers_Remove(_Var1, 1);
  970. SetOnStage(_Var1, 0);
  971. PROC_KickGenericPlayer();
  972.  
  973. IF
  974. TextEvent("und_teasertrailer")
  975. AND
  976. QRY_StartDialog(UND_TeaserTrailer_d34c3212-a23b-be7b-9551-0ad984af0b08, S_UND_TeaserTrailer_Drow_ebc4cc51-6140-4ff7-9a12-af5b3c75a407, S_UND_TeaserTrailer_Halfling_63949406-0bc5-4efe-a023-19a0a485901b, S_UND_TeaserTrailer_Human_82f20a8e-3120-4098-b119-0c1324876796)
  977. THEN
  978. PROC_TeleportPartiesTo(S_UND_TeaserTrailer_Pos_e0b10777-3505-4f93-a98a-b4af0b1388a2, "");
  979.  
  980. IF
  981. TextEvent("blockdialog")
  982. AND
  983. DB_Players(_Var1)
  984. THEN
  985. DB_CantTalk(_Var1);
  986.  
  987. IF
  988. TextEvent("unblockdialog")
  989. AND
  990. DB_Players(_Var1)
  991. THEN
  992. NOT DB_CantTalk(_Var1);
  993.  
  994.  
  995. EXITSECTION
  996. ENDEXITSECTION
  997.  
  998. ParentTargetEdge "Start"
  999.