Version 1
SubGoalCombiner SGC_AND
INITSECTION
DB_Debug_TeleportFlags(TUT_Start_Debug_a70b4dfe-48e6-44d0-bf77-2ef788b76c3a, S_Debug_TutorialStart_92a13903-dcee-4bef-89c2-e33f3f335a2c);
DB_Debug_TeleportFlags(Debug_Teleport_Start_bed680fc-eb8f-be3e-b9af-42086d14c439, TRIGGERGUID_S_Debug_Start_56ce0300-a975-42b6-b4ff-2c4ca3a795b4);
DB_Debug_TeleportFlags(Debug_Teleport_Swamp_81973bc9-1019-6ed9-9007-92be99a5119b, TRIGGERGUID_S_Debug_Swamp_6c0125c1-93bc-4993-b91e-9ce0821b14fa);
DB_Debug_TeleportFlags(Debug_Teleport_HagLair_6040fc11-afc1-f9d8-707f-8c0af0772393, TRIGGERGUID_S_Debug_HagLair_ba6d3f6d-e68b-4806-bbf2-c81570d12cc3);
DB_Debug_TeleportFlags(Debug_Teleport_Chapel_1946adf3-21b0-5217-81d7-0f25a15abb5c, TRIGGERGUID_S_Debug_Chapel_0dfa6e6c-599c-47d4-84e1-3bffc7c8839b);
DB_Debug_TeleportFlags(Debug_Teleport_LaezelRecruitChapel_7f303c90-acab-4f40-c89c-3a5efece822d, S_CHA_Debug_LaezelRecruitPoint_22095e5a-57af-438e-a303-6c5a38b2cef8);
DB_Debug_TeleportFlags(Debug_Teleport_Den_ae47ab93-f412-9224-32b3-9b190a702f05, TRIGGERGUID_S_Debug_Den_c9ca9582-5e5e-4ecf-9dd8-ddd94027df03);
DB_Debug_TeleportFlags(Debug_Teleport_DenCave_bb2080d2-91f7-f93f-45c9-9d3e53a7aae1, TRIGGERGUID_S_Debug_DenCave_a44c77eb-d06c-4c2c-a76d-fed503091576);
DB_Debug_TeleportFlags(Debug_Teleport_DenWaypoint_28079793-84ec-b8a7-d07d-2b0409e49f05, TRIGGERGUID_S_Debug_DenWaypoint_9d75b127-f736-4ed4-a55f-4d710b448a7f);
DB_Debug_TeleportFlags(Debug_Teleport_DenKidHideout_aa4a6383-8a60-0e40-ae22-43f69ad5a67b, TRIGGERGUID_S_Debug_DenKidHideout_dc2b9df7-5f83-423d-8ccf-f087e58bbfd0);
DB_Debug_TeleportFlags(Debug_Teleport_DenPrison_0929bbd3-098c-47f3-8098-015aecbb24de, TRIGGERGUID_S_Debug_DenPrison_9e356d42-cdb6-47c6-ba01-5040ee3ec6aa);
DB_Debug_TeleportFlags(Debug_Teleport_GoblinCamp_d5e54c97-2dfe-823f-e6b0-fc252282ef8c, TRIGGERGUID_S_Debug_GoblinCamp_09fb3ff3-4719-4764-a0f3-ecddccc3050e);
DB_Debug_TeleportFlags(Debug_Teleport_FestivitiesArea_786daede-6c68-4403-9512-af15cb82694c, TRIGGERGUID_S_Debug_FestivitiesArea_93cb97ea-cfa1-4e18-a787-be1b5c5c2b03);
DB_Debug_TeleportFlags(Debug_Teleport_WolfPens_3be21112-2626-c047-25b7-4094bc529127, TRIGGERGUID_S_Debug_WolfPens_ec5efb12-326f-4788-b228-3fdb18809058);
DB_Debug_TeleportFlags(Debug_Teleport_Plains_f8096b38-8e6b-4e95-2538-760568f2f47b, TRIGGERGUID_S_Debug_Plains_1c8f2d87-9da2-4e01-ba89-9249e76d5465);
DB_Debug_TeleportFlags(Debug_Teleport_GOB_Bravado_d20d4c0a-3f73-4a62-aa37-e0976b4bb293, S_Debug_GOB_Bravado_07b1a594-8214-4a9c-94cb-5f1e117f3096);
DB_Debug_TeleportFlags(Debug_Teleport_PlainsZhentQuest_90f98016-3370-fa59-3a67-f1df627f843a, TRIGGERGUID_S_Debug_PlainsZhentQuest_1145762a-d981-4f5e-91cc-4e0a755e5fa4);
DB_Debug_TeleportFlags(Debug_Teleport_PlainsGithChokepoint_17e063f9-c8ec-d14a-008a-c9131c3df9b3, S_Debug_PlainsChokepoint_0667b0a8-c78e-4c72-9e7d-443df93682a9);
DB_Debug_TeleportFlags(Debug_Teleport_PLA_RapidRafting_36b031ad-e3ad-435a-8957-a5dd4421bfec, S_Debug_PLA_RapidRafting_b3600d8e-ebf5-4ab6-ac37-01d9bcb859db);
DB_Debug_TeleportFlags(Debug_Teleport_TempleRuins_2055e601-991c-f217-40c2-ae7d1e99e211, TRIGGERGUID_S_Debug_GOB_ThroneRoom_03995572-1deb-447c-ab60-b15f018d1170);
DB_Debug_TeleportFlags(Debug_Teleport_DruidLairEntrance_f33150cf-1247-44a0-bbd8-c03fb229418f, S_Debug_DruidLairEntrance_064ae3a3-8397-448e-84d8-964ab0e9d95f);
DB_Debug_TeleportFlags(Debug_Teleport_FOR_Start_1251bb34-4dfd-ed6d-caec-36ff874e566e, S_FOR_DebugStartPoint_2c59b58f-0f35-4474-9ace-d94e8aa1ed1a);
DB_Debug_TeleportFlags(Debug_Teleport_FOR_Village_0ec9a084-bc42-2970-87f7-29dc5f81650d, S_FOR_WaypointTrigger_e44f372c-b335-4dc8-8864-f2111c83c6a6);
DB_Debug_TeleportFlags(FOR_Debug_ThayanCellar_2b52e98d-b2ae-4f45-95bf-d9da2b5284de, S_Debug_ThayanCellar_05bc62a7-cab3-43ef-9884-ed8bbb6c9b8e);
DB_Debug_TeleportFlags(Debug_Teleport_UND_SussurTree_d06f6e72-1ec6-ec9c-5a8a-24ec20fcb259, S_Debug_UND_SussurTree_c70ac73c-d3fe-4739-8a96-9a83fbbc7fde);
DB_Debug_TeleportFlags(Debug_Teleport_UND_ArcaneTower_d6266ff6-11f3-4447-a7da-dddc6603f2f7, S_Debug_UND_ArcaneTower_5337c410-affe-4fa4-8861-51a5f492210e);
DB_Debug_TeleportFlags(Debug_Teleport_GOB_PainPriest_2cd1877b-ba61-4d71-b03e-59ceb2f84dcd, S_Debug_GOB_PainPriest_2890da01-3b08-462a-b420-93ab791ccd8b);
DB_Debug_TeleportFlags(Debug_Teleport_HAG_GurHunter_8a9d63ef-5370-4588-939e-a1f2dd3e6a73, S_Debug_HAG_GurHunter_0bac9197-b9dd-45b9-a3fd-f190880bcd31);
DB_Debug_TeleportFlags(Debug_Teleport_UND_FearfulRothe_60ac223a-a18e-4540-aef3-9dc520a26276, S_Debug_UND_FearfulRothe_30dcf454-3bfd-4115-95bd-f10c50724c7b);
DB_Debug_TeleportFlags(Debug_Teleport_Underdark_3811e5db-8639-f3ed-eafa-669506a9f955, S_UND_General_DebugTeleport_517f36d9-e6ff-4316-a65f-7e863b0de8ee);
DB_Debug_TeleportFlags(Debug_Teleport_Underdark_LoneDuergar_cc064d57-355e-7a74-029a-1d83a8af66fe, TRIGGERGUID_UND_LoneDuergar_DebugTeleport_f9546a02-2ffa-476e-870e-2dcf8ba23341);
DB_Debug_TeleportFlags(Debug_Teleport_MushroomHunter_3fd5b4ac-fd04-4b5e-aaba-78852b7e4bea, S_Debug_MushroomHunter_3f8362d2-aaaf-465f-9bab-23df0f2d9834);
DB_Debug_TeleportFlags(Debug_Teleport_PathToHagLair_9611a498-4103-489e-9a67-193b1c2e918e, S_Debug_PathToHagLair_7a5ad457-7862-4d48-8983-5384f08bbd44);
DB_Debug_TeleportFlags(Debug_Teleport_DuergarCamp_deb0f4ee-d078-08ca-9c3f-ef74bf32e289, S_Debug_DuergarCamp_bf6e6f0b-0e6c-47e6-bff4-474a427372a0);
DB_Debug_TeleportFlags(Debug_Teleport_UND_PanicRoom_68b14074-a904-7531-cc99-fc0db577f2fd, S_Debug_UND_PanicRoom_05ac6750-96f5-4d31-b2dc-e43db0582735);
DB_Debug_TeleportFlags(Debug_Teleport_CRE_Start_cb8b2477-2f5e-ee72-d633-97e961b09a4a, S_Debug_CRE_Start_f5589b8f-7b86-4109-993b-335e120e6eca);
DB_Debug_TeleportFlags(Debug_Teleport_CRE_MissionBrief_25662605-d341-5877-819d-53aa71c58755, S_Debug_CRE_MissionBrief_4c41251e-ce1d-49a2-bc0b-e41fe9bd8770);
DB_Debug_TeleportFlags(Debug_Teleport_CRE_RadiantSun_e04d2cad-6fce-5700-d7f8-17f36b8cc602, S_Debug_CRE_RadiantSun_18cc68ca-3b72-4204-8996-c15d7903b19f);
DB_Debug_TeleportFlags(Debug_Teleport_CRE_PortalRoom_e2e5ab86-5054-b102-bd01-df8c5b9fcfc0, S_Debug_CRE_PortalRoom_3a920ef6-cfb4-4be8-8c19-7c130e145961);
DB_Debug_TeleportFlags(Debug_Teleport_CRE_AstralPlane_de23305d-3cca-84d0-6308-5babca060d79, S_Debug_CRE_AstralPlane_84a3713e-b43c-4f93-84dd-3c81ca318e93);
DB_Debug_TeleportFlags(Debug_Teleport_CRE_ZaithiskRoom_a7011630-6485-d3cb-35e7-a7323b48a44c, S_Debug_CRE_ZaithiskRoom_6a5a1df0-c868-45d3-aa18-e668331aaff2);
DB_Debug_TeleportFlags(Debug_Teleport_HAV_Checkpoint_4107f9d1-5903-4892-3345-55f8d43206f6, S_Debug_Teleport_HAV_Checkpoint_97eb9df3-c547-46b1-938f-03dc42697f1f);
DB_Debug_TeleportFlags(Debug_Teleport_HAV_Inside_b6a37cf7-1a4d-01c0-37fe-cbfc8133e7d2, S_Debug_Teleport_HAV_Inside_75d32ee5-4484-4bcf-b089-a827be9035cf);
DB_Debug_TeleportFlags(Debug_Teleport_HAV_IsobelRoom_3ba34fb2-9c7f-4bc7-9d45-e53e24bf9145, S_Debug_HAV_IsobelRoom_e33a97dd-150d-45a7-adf8-89de7dd4524d);
DB_Debug_TeleportFlags(Debug_Teleport_Shar_1c51776d-8f90-bce4-9814-b2573ea8655a, S_Debug_SHA_Temple_b113d420-4006-42e3-9cb4-87b98edb4689);
DB_Debug_TeleportFlags(Debug_Teleport_LivingQuarters_2e3014ad-ba04-912f-c202-5dfefb68d857, S_Debug_SHA_LivingQuarters_d307198a-cc15-4c76-ac96-d7bb9eb35830);
DB_Debug_TeleportFlags(Debug_Teleport_MoonriseTowers_3b2e171e-cfdb-9694-5128-d43d56579bdc, S_Debug_MOO_GroundFloor_0f4dc576-b7e4-470c-9f1e-5dd6dc6fa1d1);
DB_Debug_TeleportFlags(Debug_Teleport_MOO_IsobelRoom_d3fd4634-1a68-4bac-bdca-a5d42f787d76, S_Debug_MOO_IsobelRoom_d48e3ae2-2dd3-45a3-8188-43ec50655324);
DB_Debug_TeleportFlags(Debug_Teleport_SCL_Underdark_fd0eadec-7ec3-4399-bbc3-bb4692e7ddbc, S_Debug_SCL_Underdark_6936fa1d-ec7f-4198-b959-623ad7a3ce76);
DB_Debug_TeleportFlags(Debug_Teleport_SCL_RisenRoad_862cfb92-4eb4-2c09-d6c4-218bd4a9e5ae, S_Debug_SCL_Road_2a0a33dd-0f30-423a-9a87-693caf3d9645);
DB_Debug_TeleportFlags(Debug_Teleport_SCL_MountainPass_19858dd8-3185-1d43-55e4-6e1edbe71892, S_Debug_SCL_Mountain_c0dbeb78-3b91-4200-ab84-4b6c87d6bad8);
DB_Debug_TeleportFlags(Debug_Teleport_TWN_Tollhouse_8d969f06-3136-3210-360a-45c9aca0247a, S_Debug_TWN_Tollhouse_43d829fd-c9fb-4463-8af9-1e8f5e321f60);
DB_Debug_TeleportFlags(Debug_Teleport_TWN_Distillery_098ffc86-338b-4eb4-be90-3bcaacd466b1, S_Debug_TWN_Distillery_fc2172a4-c777-45cc-9fc9-7ce19e23bc72);
DB_Debug_TeleportFlags(Debug_Teleport_TWN_MasonsGuild_422042b7-d48d-4518-afd0-8bc85d6927d7, S_Debug_TWN_MasonsGuild_a8c0f88c-bde5-4c92-a456-8bbfc862cf9f);
DB_Debug_TeleportFlags(Debug_Teleport_TWN_Hospital_931c975b-8f17-4797-a68a-cf44ce78eb2b, S_Debug_TWN_Hospital_eb295973-3de5-4f58-8605-dbe759269485);
DB_Debug_TeleportFlags(Debug_Teleport_FlamingFistArrival_7115170d-394a-4db0-9f2f-6074e9592728, S_Debug_FlamingFistArrival_4409a2bf-d2aa-456d-be91-07af3addc28e);
DB_Debug_TeleportFlags(Debug_Teleport_PlagueHouse_ae74f43f-8ec0-58ea-193b-54a7f77f1b5a, S_Debug_PlagueHouse_af813664-882b-4fa3-b951-6ee1efe21d7c);
DB_Debug_TeleportFlags(Debug_Teleport_Evicted_a3c72335-eb29-2d83-c28b-4eb61f7bc85e, S_Debug_Evicted_fc9795a7-3adc-48ce-bc7d-72d7660d6369);
DB_Debug_TeleportFlags(Debug_Teleport_TempleMurder_3a6aa9cd-3b41-4a36-801b-d69615dfcd1c, S_Debug_TempleMurder_c373eadf-dbaf-4a55-8c3a-36d0adc93125);
DB_Debug_TeleportFlags(Debug_Teleport_Prototype2_515853e3-8a3f-a6c6-df4e-43e8ff016852, S_OUT_ArrivalPos_da708095-9cc3-44db-bf8c-8d098ae3bdbe);
DB_Debug_TeleportFlags(Debug_Teleport_Prototype2b_86219198-8c83-4b37-83c2-5cbaf91714c3, S_LOW_BasiliskPos_85f1dc9f-400e-4cd9-bfa7-0e9c5a7a21cb);
DB_Debug_SpellAddFlags(Debug_AddSpellDetectEvilAndGood_53564a4f-a7c5-c9e9-1119-de33d137c700, "Shout_DetectEvilAndGood");
DB_Debug_SpellAddFlags(Debug_AddSpellMending_d068fd31-a5a8-94a0-df25-36ecc71764af, "Target_Mending");
DB_Debug_SpellAddFlags(Debug_AddSpellHelpAction_628f7e65-2907-62cc-6781-17882f3df21b, "Target_Help");
DB_Debug_SpellAddFlags(Debug_AddSpellKnockOut_f29fb66c-aa54-5a9f-dd89-d6cd1d805dd0, "Target_KnockOut_Person");
DB_Debug_SpellAddFlags(Debug_AddSpellSpeakWithDead_86690b18-e88f-4f57-cd54-4300e8f71eeb, "Target_SpeakWithDead");
DB_Debug_SpellAddFlags(Debug_AddSpellSpeakWithDead_Test_cd4dd314-6344-48b4-92d0-ec48dfcec34f, "Target_SpeakWithDead_Test");
DB_Debug_SpellAddFlags(Debug_AddSpellDetectThoughts_de4422a3-c083-4252-bdff-b0b0e9bfd14d, "Shout_DetectThoughts");
DB_DaisyDesire_Debug_InitDaisy(Debug_DaisyDesire_InitDaisyFemale_6d92b1ed-dd4b-e8d4-485b-011351389455, "Female");
DB_DaisyDesire_Debug_InitDaisy(Debug_DaisyDesire_InitDaisyMale_2b160b1a-c1d9-3f46-3ae0-73d071fa0050, "Male");
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);
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);
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);
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);
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);
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);
PROC_SetUnselectedGP2SwensOffStage();
KBSECTION
PROC
PROC_SetUnselectedGP2SwensOffStage()
AND NOT
DB_Players(S_GP2_DrowWizard_Elf_ddf3d3ed-ad0c-4050-b709-5699d17ab328)
THEN
SetOnStage(S_GP2_DrowWizard_Elf_ddf3d3ed-ad0c-4050-b709-5699d17ab328, 0);
PROC
PROC_SetUnselectedGP2SwensOffStage()
AND NOT
DB_Players(S_GP2_DrowWizard_bdfb63ee-4c30-4efd-9a4f-e036628e9266)
THEN
SetOnStage(S_GP2_DrowWizard_bdfb63ee-4c30-4efd-9a4f-e036628e9266, 0);
IF
FlagSet((FLAG)_Var1, (GUIDSTRING)_Var2, _)
AND
DB_Debug_TeleportFlags(_Var1, _Var4)
THEN
ClearFlag(_Var1, _Var2, 0);
PROC_TeleportPartiesTo(_Var4, "");
PROC
PROC_Debug_GiveDebugBook()
AND
GetHostCharacter(_Var1)
AND NOT
GetItemByTemplateInPartyInventory(S_DebugBook_31ee023c-d151-40f6-917e-84066772783b, _Var1, _)
THEN
TemplateAddTo(S_DebugBook_31ee023c-d151-40f6-917e-84066772783b, _Var1, 1, 0);
IF
UsedTemplate((CHARACTER)_Var1, S_DebugBook_31ee023c-d151-40f6-917e-84066772783b, _)
AND
QRY_StartDialog(DIALOGRESOURCEGUID_DebugBook_3af7dec4-4c08-9e44-9064-ec038ebad0ea, _Var1)
THEN
DB_NOOP(1);
IF
TemplateAddedTo(S_DebugBook_31ee023c-d151-40f6-917e-84066772783b, (ITEM)_Var1, (CHARACTER)_Var2)
AND
DB_Players(_Var2)
THEN
SetHotbarItem(_Var2, _Var1);
IF
TextEvent("debugbook")
AND
GetHostCharacter(_Var1)
AND
DB_Players(_Var1)
AND
QRY_StartDialog(DIALOGRESOURCEGUID_DebugBook_3af7dec4-4c08-9e44-9064-ec038ebad0ea, _Var1)
THEN
DB_NOOP(1);
IF
FlagSet(Debug_LongRest_3fc599d8-c8c7-1fa6-c832-4802573720e4, (CHARACTER)_Var1, _)
THEN
PROC_ForceStopDialog(_Var1);
ClearFlag(Debug_LongRest_3fc599d8-c8c7-1fa6-c832-4802573720e4, _Var1, 0);
PROC_Camp_InstantLongRest();
IF
FlagSet(Debug_10LongRest_2d0e6b61-dd6d-187b-df86-93d7953958b2, (CHARACTER)_Var1, _)
THEN
PROC_ForceStopDialog(_Var1);
ClearFlag(Debug_10LongRest_2d0e6b61-dd6d-187b-df86-93d7953958b2, _Var1, 0);
PROC_Camp_InstantLongRest();
IF
FlagSet(Debug_10LongRest_2d0e6b61-dd6d-187b-df86-93d7953958b2, (GUIDSTRING)_Var1, _)
AND
QRY_DoNTimes(9)
AND
DB_QRY_RTN_DoNTimes(_Var3)
THEN
PROC_LongRest();
IF
FlagSet(Debug_Add1000Gold_7627d386-2bd6-7ea0-b718-ca93249e6194, (CHARACTER)_Var1, _)
THEN
ClearFlag(Debug_Add1000Gold_7627d386-2bd6-7ea0-b718-ca93249e6194, _Var1);
AddGold(_Var1, 1000);
IF
FlagSet(Debug_GodMode_On_0f27d940-9daf-0627-aee0-8887660acd1b, _, _)
AND
DB_Players(_Var3)
THEN
ClearFlag(Debug_GodMode_On_0f27d940-9daf-0627-aee0-8887660acd1b, _Var3);
SetImmortal(_Var3, 1);
PROC_SetInvulnerable(_Var3, 1);
IF
FlagSet(Debug_GodMode_Off_b3796d17-1fe7-5b61-4b07-16bebe064857, _, _)
AND
DB_Players(_Var3)
THEN
ClearFlag(Debug_GodMode_Off_b3796d17-1fe7-5b61-4b07-16bebe064857, _Var3);
SetImmortal(_Var3, 0);
PROC_SetInvulnerable(_Var3, 0);
IF
FlagSet(Debug_AddThievesTools_0c8206a7-4720-6c1d-24df-60d46363b9ef, (CHARACTER)_Var1, _)
THEN
ClearFlag(Debug_AddThievesTools_0c8206a7-4720-6c1d-24df-60d46363b9ef, _Var1);
TemplateAddTo(TOOL_GEN_ThievesTools_A_Closed_A_08851ac0-3bfa-44f3-80c6-6ab0536f0e10, _Var1, 1, 1);
QRY
QRY_GLO_PartyMembers_GetInPartyDialog((CHARACTER)_Var1)
AND
DB_GenericOrigins(_Var2)
THEN
DB_GLO_PartyMembers_InPartyDialog(_Var2, NULL_00000000-0000-0000-0000-000000000000);
IF
DialogStarted(DIALOGRESOURCEGUID_DebugBook_3af7dec4-4c08-9e44-9064-ec038ebad0ea, _)
AND
DB_Debug_CharacterAddFlags(_, _, _Var4)
THEN
ClearFlag(_Var4, NULL_00000000-0000-0000-0000-000000000000, 0);
IF
DialogStarted(DIALOGRESOURCEGUID_DebugBook_3af7dec4-4c08-9e44-9064-ec038ebad0ea, _)
AND
DB_Debug_CharacterAddFlags(_, _Var3, _Var4)
AND
DB_Players(_Var3)
THEN
SetFlag(_Var4, NULL_00000000-0000-0000-0000-000000000000, 0);
IF
FlagSet((FLAG)_Var1, (CHARACTER)_Var2, _)
AND
DB_Debug_CharacterAddFlags(_Var1, _Var4, _)
AND NOT
DB_Players(_Var4)
THEN
SetOnStage(_Var4, 1);
TeleportTo(_Var4, _Var2);
PROC_GLO_PartyMembers_Add(_Var4, _Var2);
SetFlag(SetPreset_Default_7eabc516-c15c-46ff-a99d-60d4a9f7037e, _Var4, 0);
IF
FlagSet((FLAG)_Var1, (GUIDSTRING)_Var2, _)
AND
DB_Debug_CharacterAddFlags(_Var1, _, _)
THEN
ClearFlag(_Var1, _Var2);
IF
FlagSet(Debug_AddGith_39ecbda9-cb44-becf-57b9-c3b631a5517b, (GUIDSTRING)_Var1, _)
THEN
PROC_CHA_LaezelRecruit_InitPlayer(0);
IF
FlagSet((FLAG)_Var1, (CHARACTER)_Var2, _)
AND
DB_Debug_CharacterRemoveHideFlags(_Var1, _Var4)
AND
DB_Debug_CharacterAddFlags(_Var5, _Var4, _Var6)
AND
DB_Players(_Var4)
AND
DB_RecruitAvatarBond(_Var4, _Var7)
THEN
PROC_GLO_PartyMembers_Remove(_Var4, _Var7, 0);
ClearFlag(_Var6, NULL_00000000-0000-0000-0000-000000000000);
SetOnStage(_Var4, 0);
IF
FlagSet((FLAG)_Var1, (GUIDSTRING)_Var2, _)
AND
DB_Debug_CharacterRemoveHideFlags(_Var1, _)
THEN
ClearFlag(_Var1, _Var2);
IF
DialogStarted(DIALOGRESOURCEGUID_DebugBook_3af7dec4-4c08-9e44-9064-ec038ebad0ea, (INTEGER)_Var1)
AND
DB_DialogPlayers(_Var1, _Var2, _)
THEN
PlayHUDSound(_Var2, "Engine_DebugBook_Open");
IF
DialogEnded(DIALOGRESOURCEGUID_DebugBook_3af7dec4-4c08-9e44-9064-ec038ebad0ea, (INTEGER)_Var1)
AND
DB_DialogPlayers(_Var1, _Var2, _)
THEN
PlayHUDSound(_Var2, "Engine_DebugBook_Close");
IF
TextEvent("charflag")
AND
GetTextEventParamUUID(1, _Var1)
AND
GetHostCharacter(_Var2)
THEN
SetFlag(_Var1, _Var2);
IF
TextEvent("userflag")
AND
GetTextEventParamUUID(1, _Var1)
AND
GetHostCharacter(_Var2)
THEN
SetFlag(_Var1, _Var2);
IF
TextEvent("partyflag")
AND
GetTextEventParamUUID(1, _Var1)
AND
GetHostCharacter(_Var2)
THEN
SetFlag(_Var1, _Var2);
IF
TextEvent("globalflag")
AND
GetTextEventParamUUID(1, _Var1)
THEN
SetFlag(_Var1, NULL_00000000-0000-0000-0000-000000000000, 0);
IF
TextEvent("ccharflag")
AND
GetTextEventParamUUID(1, _Var1)
AND
GetHostCharacter(_Var2)
THEN
ClearFlag(_Var1, _Var2);
IF
TextEvent("cuserflag")
AND
GetTextEventParamUUID(1, _Var1)
AND
GetHostCharacter(_Var2)
THEN
ClearFlag(_Var1, _Var2, 0);
IF
TextEvent("cpartyflag")
AND
GetTextEventParamUUID(1, _Var1)
AND
GetHostCharacter(_Var2)
THEN
ClearFlag(_Var1, _Var2, 0);
IF
TextEvent("cglobalflag")
AND
GetTextEventParamUUID(1, _Var1)
THEN
ClearFlag(_Var1, NULL_00000000-0000-0000-0000-000000000000, 0);
IF
FlagSet(Debug_SkillWin_9369ef31-cb50-1888-6f8e-bc247f73307c, _, _)
THEN
ClearFlag(Debug_SkillWin_9369ef31-cb50-1888-6f8e-bc247f73307c, NULL_00000000-0000-0000-0000-000000000000, 0);
DebugDialogSkillCheck(1);
IF
FlagSet(Debug_SkillLose_91660706-f0d8-4073-6aa0-f1603614fa86, _, _)
THEN
ClearFlag(Debug_SkillLose_91660706-f0d8-4073-6aa0-f1603614fa86, NULL_00000000-0000-0000-0000-000000000000, 0);
DebugDialogSkillCheck(-1);
IF
FlagSet(Debug_SkillNormal_b4ae105d-c752-642c-7064-c1b8931c71b6, _, _)
THEN
ClearFlag(Debug_SkillNormal_b4ae105d-c752-642c-7064-c1b8931c71b6, NULL_00000000-0000-0000-0000-000000000000, 0);
DebugDialogSkillCheck(0);
IF
FlagSet((FLAG)_Var1, (CHARACTER)_Var2, (INTEGER)_Var3)
AND
DB_Debug_SpellAddFlags(_Var1, _Var4)
THEN
ClearFlag(_Var1, _Var2, _Var3);
AddSpell(_Var2, _Var4, 1);
IF
FlagSet(Debug_BecomeAvatar_34371b8e-a34b-3354-54e7-fcda800d703a, (CHARACTER)_Var1, _)
AND
DB_CompanionAvatarBond(_Var1, _Var3)
AND
GetFaction(_Var1, _Var4)
THEN
DB_GLO_PartyMembers_DefaultFaction(_Var1, _Var4);
PROC_GLO_PartyMembers_ClearRecruitBonds(_Var1);
PROC_RemoveDialog(_Var1);
SetTag(_Var1, AVATAR_306b9b05-1057-4770-aa17-01af21acd650);
IF
FlagSet(Debug_BecomeAvatar_34371b8e-a34b-3354-54e7-fcda800d703a, (CHARACTER)_Var1, _)
THEN
ClearFlag(Debug_BecomeAvatar_34371b8e-a34b-3354-54e7-fcda800d703a, _Var1, 0);
IF
FlagSet(Debug_BecomeCompanion_4670c626-a52f-aeed-c18a-dc8d9c78b7cb, (CHARACTER)_Var1, _)
AND
SysCount("DB_Avatars", 1, _Var3)
AND
_Var3 < 2
THEN
DebugText(_Var1, "NEED AT LEAST ONE OTHER AVATAR TO BECOME A COMPANION");
IF
FlagSet(Debug_BecomeCompanion_4670c626-a52f-aeed-c18a-dc8d9c78b7cb, (CHARACTER)_Var1, _)
AND
DB_Avatars(_Var3)
AND
_Var1 != _Var3
AND NOT
DB_DebugAvatarMigration(_Var1, _)
THEN
DB_DebugAvatarMigration(_Var1, _Var3);
IF
FlagSet(Debug_BecomeCompanion_4670c626-a52f-aeed-c18a-dc8d9c78b7cb, (CHARACTER)_Var1, _)
AND
DB_DebugAvatarMigration(_Var1, _Var3)
AND
DB_CompanionAvatarBond(_Var4, _Var1)
THEN
NOT DB_CompanionAvatarBond(_Var4, _Var1);
DB_CompanionAvatarBond(_Var4, _Var3);
IF
FlagSet(Debug_BecomeCompanion_4670c626-a52f-aeed-c18a-dc8d9c78b7cb, (CHARACTER)_Var1, _)
AND
DB_DebugAvatarMigration(_Var1, _Var3)
AND
DB_RecruitAvatarBond(_Var4, _Var1)
THEN
PROC_GLO_PartyMembers_ClearRecruitBonds(_Var4);
PROC_GLO_PartyMembers_RecruitAvatarBond(_Var4, _Var3);
IF
FlagSet(Debug_BecomeCompanion_4670c626-a52f-aeed-c18a-dc8d9c78b7cb, S_Player_GenericOrigin_24247531-c432-4f0f-8f35-6c90c4844aa8, _)
AND
DB_DebugAvatarMigration(_Var2, _Var3)
THEN
ClearTag(_Var2, AVATAR_306b9b05-1057-4770-aa17-01af21acd650);
DB_GLO_PartyMembers_OriginalAlignment(S_Player_GenericOrigin_24247531-c432-4f0f-8f35-6c90c4844aa8, Hero_a1542c81-6895-929e-4522-10ce218bb360);
PROC_GLO_PartyMembers_Remove(_Var2, _Var3, 1);
NOT DB_DebugAvatarMigration(_Var2, _Var3);
IF
FlagSet(Debug_BecomeCompanion_4670c626-a52f-aeed-c18a-dc8d9c78b7cb, (CHARACTER)_Var1, _)
AND
DB_DebugAvatarMigration(_Var1, _Var3)
AND
DB_OriginNPCAlignment(_Var1, _Var4)
THEN
DB_GLO_PartyMembers_DefaultFaction(_Var1, _Var4);
ClearTag(_Var1, AVATAR_306b9b05-1057-4770-aa17-01af21acd650);
PROC_GLO_PartyMembers_Add(_Var1, _Var3);
NOT DB_DebugAvatarMigration(_Var1, _Var3);
IF
FlagSet(Debug_BecomeCompanion_4670c626-a52f-aeed-c18a-dc8d9c78b7cb, (CHARACTER)_Var1, _)
THEN
ClearFlag(Debug_BecomeCompanion_4670c626-a52f-aeed-c18a-dc8d9c78b7cb, _Var1, 0);
IF
FlagSet(Debug_SetAllTags_Origins_3cde4737-618d-07ae-b846-3d020593fb60, (GUIDSTRING)_Var1, _)
AND
DB_OriginTags(_, _Var4, _)
AND
IsTagged(_Var1, _Var4, 0)
THEN
SetTag(_Var1, _Var4);
IF
FlagSet(Debug_SetAllTags_ReallyOrigins_227ba3e7-70b5-3de4-5b1d-add6a3f47101, (GUIDSTRING)_Var1, _)
AND
DB_OriginTags(_, _, _Var5)
AND
IsTagged(_Var1, _Var5, 0)
THEN
SetTag(_Var1, _Var5);
IF
FlagSet(Debug_SetAllTags_Origins_3cde4737-618d-07ae-b846-3d020593fb60, (GUIDSTRING)_Var1, _)
THEN
ClearFlag(Debug_SetAllTags_Origins_3cde4737-618d-07ae-b846-3d020593fb60, _Var1);
IF
FlagSet(Debug_SetAllTags_ReallyOrigins_227ba3e7-70b5-3de4-5b1d-add6a3f47101, (GUIDSTRING)_Var1, _)
THEN
ClearFlag(Debug_SetAllTags_ReallyOrigins_227ba3e7-70b5-3de4-5b1d-add6a3f47101, _Var1);
IF
TagSet((GUIDSTRING)_Var1, (TAG)_Var2)
AND
DB_OriginTags(_Var1, _Var2, _Var3)
AND
DB_DialogPlayers(_Var4, _Var1, _)
AND
DB_DialogName(DIALOGRESOURCEGUID_DebugBook_3af7dec4-4c08-9e44-9064-ec038ebad0ea, _Var4)
AND
GetFlag(Debug_SetReallyTagsToo_9d5e2c9d-a88c-227a-169b-48cc8f410bbc, _Var1, 1)
THEN
SetTag(_Var1, _Var3);
IF
TagSet((GUIDSTRING)_Var1, GENERIC_730e82f3-c067-44a4-985b-0dfe079d4fea)
AND
DB_DialogPlayers(_Var2, _Var1, _)
AND
DB_DialogName(DIALOGRESOURCEGUID_DebugBook_3af7dec4-4c08-9e44-9064-ec038ebad0ea, _Var2)
AND
GetFlag(Debug_SetReallyTagsToo_9d5e2c9d-a88c-227a-169b-48cc8f410bbc, _Var1, 1)
THEN
SetTag(_Var1, REALLY_GENERIC_264a6880-9a51-429c-a9fc-97f8952baf90);
IF
FlagSet(Debug_ClearAllTags_Origins_aece0b35-4276-5e8d-3ec3-2f0eae8048b7, (GUIDSTRING)_Var1, _)
AND
DB_OriginTags(_, _Var4, _)
THEN
ClearTag(_Var1, _Var4);
IF
FlagSet(Debug_ClearAllTags_Origins_aece0b35-4276-5e8d-3ec3-2f0eae8048b7, (GUIDSTRING)_Var1, _)
AND
DB_OriginTags(_, _, _Var5)
THEN
ClearTag(_Var1, _Var5);
IF
FlagSet(Debug_ClearAllTags_Origins_aece0b35-4276-5e8d-3ec3-2f0eae8048b7, (GUIDSTRING)_Var1, _)
THEN
ClearFlag(Debug_ClearAllTags_Origins_aece0b35-4276-5e8d-3ec3-2f0eae8048b7, _Var1);
IF
FlagSet(Debug_ClearAllTags_Background_d84d4e7a-b838-c611-4a8d-016140d3aa44, (GUIDSTRING)_Var1, _)
AND
DB_BackgroundTags(_Var3)
AND
IsTagged(_Var1, _Var3, 1)
THEN
ClearTag(_Var1, _Var3);
IF
FlagSet(Debug_ClearAllTags_Background_d84d4e7a-b838-c611-4a8d-016140d3aa44, (GUIDSTRING)_Var1, _)
THEN
ClearFlag(Debug_ClearAllTags_Background_d84d4e7a-b838-c611-4a8d-016140d3aa44, _Var1);
IF
FlagSet(Debug_SetAllTags_Race_1cb166bb-918d-8c30-e33d-f93d43ab8963, (GUIDSTRING)_Var1, _)
AND
DB_RaceTags(_Var3, _)
AND
IsTagged(_Var1, _Var3, 0)
THEN
SetTag(_Var1, _Var3);
IF
FlagSet(Debug_SetAllTags_Race_1cb166bb-918d-8c30-e33d-f93d43ab8963, (GUIDSTRING)_Var1, _)
THEN
ClearFlag(Debug_SetAllTags_Race_1cb166bb-918d-8c30-e33d-f93d43ab8963, _Var1);
IF
FlagSet(Debug_SetAllTags_ReallyRace_79785ace-7cba-069a-4839-e9ff171b7af6, (GUIDSTRING)_Var1, _)
AND
DB_RaceTags(_, _Var4)
AND
IsTagged(_Var1, _Var4, 0)
THEN
SetTag(_Var1, _Var4);
IF
FlagSet(Debug_SetAllTags_ReallyRace_79785ace-7cba-069a-4839-e9ff171b7af6, (GUIDSTRING)_Var1, _)
THEN
ClearFlag(Debug_SetAllTags_ReallyRace_79785ace-7cba-069a-4839-e9ff171b7af6, _Var1);
IF
TagSet((GUIDSTRING)_Var1, (TAG)_Var2)
AND
DB_OriginTags(_, _Var2, _Var4)
AND
DB_DialogPlayers(_Var5, _Var1, _)
AND
DB_DialogName(DIALOGRESOURCEGUID_DebugBook_3af7dec4-4c08-9e44-9064-ec038ebad0ea, _Var5)
AND
GetFlag(Debug_SetReallyTagsToo_9d5e2c9d-a88c-227a-169b-48cc8f410bbc, _Var1, 1)
AND
IsTagged(_Var1, _Var4, 0)
THEN
SetTag(_Var1, _Var4);
IF
TagSet((GUIDSTRING)_Var1, (TAG)_Var2)
AND
DB_RaceTags(_Var2, _Var3)
AND
DB_DialogPlayers(_Var4, _Var1, _)
AND
DB_DialogName(DIALOGRESOURCEGUID_DebugBook_3af7dec4-4c08-9e44-9064-ec038ebad0ea, _Var4)
AND
GetFlag(Debug_SetReallyTagsToo_9d5e2c9d-a88c-227a-169b-48cc8f410bbc, _Var1, 1)
AND
IsTagged(_Var1, _Var3, 0)
THEN
SetTag(_Var1, _Var3);
IF
FlagSet(Debug_ClearAllTags_Race_0b3f5dec-ef77-66de-828c-2b6f9f1b38b9, (GUIDSTRING)_Var1, _)
AND
DB_RaceTags(_Var3, _Var4)
THEN
ClearTag(_Var1, _Var3);
ClearTag(_Var1, _Var4);
IF
FlagSet(Debug_ClearAllTags_Race_0b3f5dec-ef77-66de-828c-2b6f9f1b38b9, (GUIDSTRING)_Var1, _)
THEN
ClearFlag(Debug_ClearAllTags_Race_0b3f5dec-ef77-66de-828c-2b6f9f1b38b9, _Var1);
IF
FlagSet(DEN_RaidingParty_Debug_ResolveConfrontation_FF_7409f4f0-19b1-4a84-f793-e32266bcce9d, (GUIDSTRING)_Var1, _)
THEN
SetFlag(DEN_RaidingParty_State_PeacefulResolution_f4529d52-b459-6545-b4bf-8b2fb2cd6f2f, NULL_00000000-0000-0000-0000-000000000000, 0);
SetFlag(DEN_RaidingParty_Debug_ResolveConfrontation_cd991e7d-f05f-ddfe-d159-b4d80bf8075d, _Var1, 0);
TimerLaunch("DEN_General_AfterRaidingPartyDebugTeleport", 7500);
IF
TimerFinished("DEN_General_AfterRaidingPartyDebugTeleport")
THEN
TeleportTo(S_DEN_AdventurerLeader_82d1b843-9e8c-48a5-9d87-caddea5c193c, S_DEN_AdventurerArea_001_902982c7-079a-4c5d-be65-2ce3fb8e725d, "", 0, 0, 0);
TeleportTo(S_DEN_RobbedAdventurer_534bceaf-678c-40a0-8ca9-e1134f95ba0d, S_DEN_AdventurerArea_003_5fdf3e6c-bb21-48e2-8768-00767edc89da, "", 0, 0, 0);
TeleportTo(S_DEN_Trainer_02025646-347a-4235-aef7-e46b7c94b435, S_DEN_TrainerPoint_8b56581e-8e85-41ac-a32e-dcecffaa7fa5, "", 0, 0, 0);
TeleportTo(S_Player_Wyll_c774d764-4a17-48dc-b470-32ace9ce447d, S_DEN_WyllRecruitPoint_3a3551e1-f5eb-49d7-b46c-c29b60ee470d, "", 0, 0, 0);
TeleportTo(S_DEN_GrieflingFriend_c3334ee5-38dc-4197-aacc-4aa55803ff52, S_DEN_AvengeFriendPoint_c9016542-c6ce-484c-a837-23241555589d, "", 0, 0, 0);
TeleportTo(S_DEN_Griefling_7ce0afc2-e8f2-4f2e-82d8-27df98acc3d8, S_DEN_AvengePoint_3ac11305-c3f9-4653-8308-5c02d38a9b1d, "", 0, 0, 0);
TeleportTo(S_DEN_Tiefling_010_23129d6c-8d39-4a4c-a4f6-cfc6637b597c, S_DEN_BadWizardGuardFriendPos_a36ad802-aaf5-4249-b12a-9e2b42a6e85d, "", 0, 0, 0);
IF
FlagSet(Debug_GOB_TempleAccess_DebugSolve_1ded7447-57ac-545d-c4c2-0ea3d2c56790, _, _)
THEN
ClearFlag(Debug_GOB_TempleAccess_DebugSolve_1ded7447-57ac-545d-c4c2-0ea3d2c56790, NULL_00000000-0000-0000-0000-000000000000, 0);
PROC_GOB_TempleAccess_DebugSolve();
IF
TextEvent("Debug_SWD_LimitReached")
THEN
DB_Debug_SWD_LimitEnabled(1);
IF
TextEvent("Debug_SWD_LimitClear")
THEN
NOT DB_Debug_SWD_LimitEnabled(1);
IF
UsingSpellOnTarget(_, (GUIDSTRING)_Var2, "Target_SpeakWithDead_Test", _, _, _)
AND
DB_Debug_SWD_LimitEnabled(1)
THEN
SetFlag(GLO_SpeakWithDead_State_QuestionsLimitReached_01c40268-4a8d-4787-8566-77e01ff04762, _Var2);
IF
UsingSpellOnTarget(_, (GUIDSTRING)_Var2, "Target_SpeakWithDead_Test", _, _, _)
AND NOT
DB_Debug_SWD_LimitEnabled(1)
THEN
ClearFlag(GLO_SpeakWithDead_State_QuestionsLimitReached_01c40268-4a8d-4787-8566-77e01ff04762, _Var2);
IF
FlagSet(Debug_CAMP_GotoNight1_4a20172a-0ff4-b6bd-a19b-364f40d7b6b6, NULL_00000000-0000-0000-0000-000000000000, _)
THEN
ClearFlag(Debug_CAMP_GotoNight1_4a20172a-0ff4-b6bd-a19b-364f40d7b6b6, NULL_00000000-0000-0000-0000-000000000000, 0);
IF
FlagSet(Debug_CAMP_GotoNight2_f51a143a-c692-236c-631c-10e82b8ca723, NULL_00000000-0000-0000-0000-000000000000, _)
THEN
ClearFlag(Debug_CAMP_GotoNight2_f51a143a-c692-236c-631c-10e82b8ca723, NULL_00000000-0000-0000-0000-000000000000, 0);
IF
FlagSet(Debug_CAMP_GotoNight3_bd19d762-19a5-ce3c-4995-345f97468723, NULL_00000000-0000-0000-0000-000000000000, _)
THEN
ClearFlag(Debug_CAMP_GotoNight3_bd19d762-19a5-ce3c-4995-345f97468723, NULL_00000000-0000-0000-0000-000000000000, 0);
IF
FlagSet(Debug_CAMP_GotoNight4_01da48ec-a173-a600-3b11-283fd80a8cbb, NULL_00000000-0000-0000-0000-000000000000, _)
THEN
ClearFlag(Debug_CAMP_GotoNight4_01da48ec-a173-a600-3b11-283fd80a8cbb, NULL_00000000-0000-0000-0000-000000000000, 0);
IF
FlagSet(Debug_CAMP_GotoNight4b_ff3ecb0c-3482-eaaa-7cf6-76def3bc6919, NULL_00000000-0000-0000-0000-000000000000, _)
THEN
ClearFlag(Debug_CAMP_GotoNight4b_ff3ecb0c-3482-eaaa-7cf6-76def3bc6919, NULL_00000000-0000-0000-0000-000000000000, 0);
IF
FlagSet(Debug_CAMP_GotoNight5_469d499f-e29e-8e64-e43d-0131cf977214, NULL_00000000-0000-0000-0000-000000000000, _)
THEN
ClearFlag(Debug_CAMP_GotoNight5_469d499f-e29e-8e64-e43d-0131cf977214, NULL_00000000-0000-0000-0000-000000000000, 0);
IF
FlagSet((FLAG)_Var1, (CHARACTER)_Var2, _)
AND
DB_DaisyDesire_Debug_InitDaisy(_Var1, _Var4)
THEN
ClearFlag(_Var1, _Var2);
PROC_DaisyDesire_SetDaisyFor(_Var2, _Var4);
IF
FlagSet(Debug_DaisyDesire_ChangeDaisyGender_04a3fe1e-86c8-3cd4-2d4b-5f780a09c7e3, (CHARACTER)_Var1, _)
THEN
ClearFlag(Debug_DaisyDesire_ChangeDaisyGender_04a3fe1e-86c8-3cd4-2d4b-5f780a09c7e3, _Var1);
PROC_DaisyDesire_CheckChangeGenderFor(_Var1);
IF
FlagSet(Debug_DaisyDesire_ChangeHostGender_1ef4f371-8cf1-c807-4a37-4d060069b13b, NULL_00000000-0000-0000-0000-000000000000, _)
AND
GetHostCharacter(_Var2)
THEN
ClearFlag(Debug_DaisyDesire_ChangeHostGender_1ef4f371-8cf1-c807-4a37-4d060069b13b, NULL_00000000-0000-0000-0000-000000000000);
PROC_DaisyDesire_CheckChangeGenderFor(_Var2);
IF
FlagSet(Debug_Gold_AstarionAvatar_707d95f5-c230-b113-e1b9-81a5e7b75ac4, NULL_00000000-0000-0000-0000-000000000000, _)
AND
GetHostCharacter(_Var2)
THEN
LoadPartyPreset("2.0_GoldenPath_Astarion", _Var2);
TimerLaunch("DBG_AstarionSetup", 0);
TimerLaunch("DBG_KickGeneric", 150);
IF
FlagSet(Debug_Gold_AstarionFullParty_ab7d9d6b-d37a-5c96-f841-5f943e27d75f, NULL_00000000-0000-0000-0000-000000000000, _)
AND
GetHostCharacter(_Var2)
THEN
LoadPartyPreset("2.0_GoldenPath_AstarionFullParty", _Var2);
TimerLaunch("DBG_AstarionSetup", 0);
TimerLaunch("DBG_KickGeneric", 150);
IF
FlagSet(Debug_GP_SpawnDrowAvatar_1def5259-0c28-513d-b4f6-fd75fe1c4048, _, _)
AND
GetHostCharacter(_Var3)
AND
GetPosition(_Var3, _Var4, _Var5, _Var6)
AND
CreateAt(Elves_Male_Drow_Player_bc3cde9c-cf02-48ff-b44f-a53a1e009a35, _Var4, _Var5, _Var6, 0, 0, "", _Var7)
THEN
SetTag(_Var7, AVATAR_306b9b05-1057-4770-aa17-01af21acd650);
SetTag(_Var7, GENERIC_730e82f3-c067-44a4-985b-0dfe079d4fea);
SetTag(_Var7, REALLY_GENERIC_264a6880-9a51-429c-a9fc-97f8952baf90);
SetTag(_Var7, WARLOCK_5804f55a-93f7-4281-9512-8d548a9e2a22);
DB_OnlyOncePerPlayer(_Var7, "Recruitment_Respec");
DB_GLO_PartyMembers_DefaultFaction(_Var7, Hero_Player5_42455b5c-c09b-ea83-4fee-5932dfd76525);
SetOnStage(_Var7, 1);
TeleportTo(_Var7, _Var3);
PROC_GLO_PartyMembers_Add(_Var7, _Var3);
IF
TextEvent("KickGeneric")
THEN
PROC_KickGenericPlayer();
PROC
PROC_KickGenericPlayer()
THEN
NOT DB_Avatars(S_Player_GenericOrigin_24247531-c432-4f0f-8f35-6c90c4844aa8);
MakeNPC(S_Player_GenericOrigin_24247531-c432-4f0f-8f35-6c90c4844aa8);
SetOnStage(S_Player_GenericOrigin_24247531-c432-4f0f-8f35-6c90c4844aa8, 0);
PROC
PROC_KickGenericPlayer()
AND
DB_Players(_Var1)
AND
IsTagged(_Var1, GENERIC_730e82f3-c067-44a4-985b-0dfe079d4fea, 1)
THEN
NOT DB_Avatars(_Var1);
MakeNPC(_Var1);
SetOnStage(_Var1, 0);
IF
TimerFinished("DBG_AstarionSetup")
THEN
PROC_CRA_InitAstarion();
IF
TimerFinished("DBG_KickGeneric")
THEN
PROC_KickGenericPlayer();
IF
FlagSet(DEBUG_GP2_Preset_ed004b8c-0e55-1599-25e7-4adf5957ac7c, _, _)
THEN
SetOnStage(S_GP2_DrowWizard_bdfb63ee-4c30-4efd-9a4f-e036628e9266, 1);
SetOnStage(S_GP2_DrowWizard_Elf_ddf3d3ed-ad0c-4050-b709-5699d17ab328, 0);
PROC_SetupGP2PReset(S_GP2_DrowWizard_bdfb63ee-4c30-4efd-9a4f-e036628e9266);
IF
FlagSet(DEBUG_GP2_Preset_Elf_cc4773b8-28d4-4055-bd32-057aac86deb3, _, _)
THEN
SetOnStage(S_GP2_DrowWizard_bdfb63ee-4c30-4efd-9a4f-e036628e9266, 0);
SetOnStage(S_GP2_DrowWizard_Elf_ddf3d3ed-ad0c-4050-b709-5699d17ab328, 1);
PROC_SetupGP2PReset(S_GP2_DrowWizard_Elf_ddf3d3ed-ad0c-4050-b709-5699d17ab328);
PROC
PROC_SetupGP2PReset((CHARACTER)_Var1)
AND
GetGold(_Var1, _Var2)
AND
IntegerSubtract(134, _Var2, _Var3)
AND
GetHostCharacter(_Var4)
THEN
ClearFlag(DEBUG_GP2_Preset_ed004b8c-0e55-1599-25e7-4adf5957ac7c, NULL_00000000-0000-0000-0000-000000000000);
ClearFlag(DEBUG_GP2_Preset_Elf_cc4773b8-28d4-4055-bd32-057aac86deb3, NULL_00000000-0000-0000-0000-000000000000);
SetFlag(DEBUG_GP2_CampNights_20be1914-6efb-4140-b178-a8dc30cd1688, NULL_00000000-0000-0000-0000-000000000000, 0);
SetFlag(Debug_Teleport_FOR_GP2Start_2842f06b-2488-aefc-b357-0d9c054c6abd, _Var4, 0);
PROC_Debug_GoldenPath_LevelUp();
DB_GLO_PartyMembers_DefaultFaction(_Var1, Hero_Player6_1e359c81-966b-783e-1f5b-69600828513d);
PROC_GLO_PartyMembers_Add(_Var1, _Var4);
SetFlag(Debug_AddGale_06a419b9-8c82-ef98-12af-41dfca6672dd, _Var4, 0);
SetFlag(Debug_AddGith_39ecbda9-cb44-becf-57b9-c3b631a5517b, _Var4, 0);
SetFlag(Debug_AddShadowHeart_c3be7a23-a663-d778-50f9-a52f6cfe78bf, _Var4, 0);
AddGold(_Var1, _Var3);
SetTag(_Var1, GENERIC_730e82f3-c067-44a4-985b-0dfe079d4fea);
TemplateAddTo(WPN_HUM_Maul_A_0_5487ceb4-b009-46ae-8ed6-cd3baaf0a18d, S_Player_Laezel_58a69333-40bf-8358-1d17-fff240d7fb12, 1, 1);
TemplateAddTo(CONS_Potion_Hill_Giant_Strength_c69fb092-2f4f-4688-82b6-7d92405626b1, S_Player_Laezel_58a69333-40bf-8358-1d17-fff240d7fb12, 1, 1);
TemplateAddTo(CONS_Poison_Basic_28645376-e6e8-436a-8e9a-c62877fae07d, S_Player_Laezel_58a69333-40bf-8358-1d17-fff240d7fb12, 2, 1);
TemplateAddTo(GRN_GreaseBottle_A_e2968a2e-bc83-4d50-99ef-39ce78d2d630, S_Player_Laezel_58a69333-40bf-8358-1d17-fff240d7fb12, 2, 1);
TemplateAddTo(LOOT_SCROLL_Resurrection_c1c3e4fb-d68c-4e10-afdc-d4550238d50e, S_Player_ShadowHeart_3ed74f06-3c60-42dc-83f6-f034cb47c679, 1, 1);
TemplateAddTo(LOOT_SCROLL_Knock_4c1a886a-7db5-4e00-bbc6-d4243534f057, S_Player_Gale_ad9af97d-75da-406a-ae13-7071c563f604, 1, 1);
TemplateAddTo(LOOT_SCROLL_MistyStep_9a2a3fcc-d948-4463-b88b-a9d61b77b015, S_Player_Gale_ad9af97d-75da-406a-ae13-7071c563f604, 1, 1);
GiveInspirationPoints(_Var1, 1, "", "");
TimerLaunch("GP2_SetupDelay", 250);
IF
TimerFinished("GP2_SetupDelay")
AND
DB_Players(_Var1)
THEN
IterateInventory(_Var1, "GP2_HotbarCheck", "");
IF
EntityEvent((ITEM)_Var1, "GP2_HotbarCheck")
AND
IsTagged(_Var1, CONSUMABLE_4d79b277-97f0-4227-a780-7a14fb9827fc, 1)
AND
GetInventoryOwner(_Var1, _Var2)
AND
DB_Players(_Var2)
THEN
SetHotbarItem(_Var2, _Var1);
IF
TimerFinished("GP2_SetupDelay")
AND
DB_Players(_Var1)
AND
TemplateIsInInventory(WPN_HUM_Torch_A_50c43f27-a12e-412c-88f0-56e15eba692a, _Var1, 0)
THEN
TemplateAddTo(WPN_HUM_Torch_A_50c43f27-a12e-412c-88f0-56e15eba692a, _Var1, 1, 1);
IF
TimerFinished("GP2_SetupDelay")
AND
DB_Players(_Var1)
AND
_Var1 != S_GP2_DrowWizard_bdfb63ee-4c30-4efd-9a4f-e036628e9266
AND
_Var1 != S_GP2_DrowWizard_Elf_ddf3d3ed-ad0c-4050-b709-5699d17ab328
AND
IsTagged(_Var1, GENERIC_730e82f3-c067-44a4-985b-0dfe079d4fea, 1)
THEN
NOT DB_Players(_Var1);
NOT DB_Avatars(_Var1);
MakeNPC(_Var1);
SetOnStage(_Var1, 0);
IF
TimerFinished("GP2_SetupDelay")
AND
DB_Players(_Var1)
AND
IsTagged(_Var1, GENERIC_730e82f3-c067-44a4-985b-0dfe079d4fea, 0)
AND
_Var1 != S_Player_Laezel_58a69333-40bf-8358-1d17-fff240d7fb12
AND
_Var1 != S_Player_ShadowHeart_3ed74f06-3c60-42dc-83f6-f034cb47c679
AND
_Var1 != S_Player_Gale_ad9af97d-75da-406a-ae13-7071c563f604
THEN
PROC_GLO_PartyMembers_Remove(_Var1, 1);
SetOnStage(_Var1, 0);
IF
TimerFinished("GP2_SetupDelay")
AND
DB_AutoSaveTrigger(_Var1)
THEN
NOT DB_AutoSaveTrigger(_Var1);
IF
FlagSet(DEBUG_GP2_CampNights_20be1914-6efb-4140-b178-a8dc30cd1688, NULL_00000000-0000-0000-0000-000000000000, _)
AND
DB_CampNight(_Var2, _Var3)
THEN
NOT DB_CampNight(_Var2, _Var3);
IF
FlagSet(DEBUG_GP2_CampNights_20be1914-6efb-4140-b178-a8dc30cd1688, NULL_00000000-0000-0000-0000-000000000000, _)
THEN
DB_OnlyOnce("CAMP_IntroductionHappened");
ClearFlag(DEBUG_GP2_CampNights_20be1914-6efb-4140-b178-a8dc30cd1688, NULL_00000000-0000-0000-0000-000000000000, 0);
DB_CampNight(NIGHT_Ceremorphosis1_98059567-b62a-4db8-9ce4-d39c792e0238, 4005);
DB_CampNight(NIGHT_MonitorIntro_a9297517-ab4d-482d-b287-fc6e7001d93e, 4004);
NOT DB_CampNight_Requirement(NIGHT_MonitorIntro_a9297517-ab4d-482d-b287-fc6e7001d93e, GLO_2NightsSinceDaisyDream1_0d62bf15-2a08-4bc3-b045-fcad912065a4);
IF
FlagSet(Debug_Teleport_FOR_GP2Start_2842f06b-2488-aefc-b357-0d9c054c6abd, (GUIDSTRING)_Var1, _)
THEN
ClearFlag(Debug_Teleport_FOR_GP2Start_2842f06b-2488-aefc-b357-0d9c054c6abd, _Var1, 0);
TeleportToPosition(_Var1, 63, 24, 464, "", 1, 1, 1);
PROC
PROC_Debug_GoldenPath_LevelUp()
AND
DB_Players(_Var1)
AND
GetLevel(_Var1, _Var2)
AND
_Var2 < 3
AND
IntegerSubtract(3, _Var2, _Var3)
THEN
PROC_LevelUpBy(_Var1, _Var3);
PROC
PROC_Debug_GoldenPath_Part3()
THEN
SetFlag(Debug_Quest_VoloToCamp_fd40e1a2-b595-23f8-9147-e6842e12bd01, S_Player_Astarion_c7c13742-bacd-460a-8f65-f864fe41f255);
PROC
PROC_Debug_GoldenPath_Part3()
AND
DB_Players(_Var1)
THEN
LookAt(_Var1, S_GLO_Volo_2af25a85-5b9a-4794-85d3-0bd4c4d262fa);
PROC
PROC_UND_TeaserTrailer_AddPlayer((CHARACTER)_Var1, (CHARACTER)_Var2)
AND NOT
DB_Players(_Var1)
THEN
DB_Players(_Var1);
MakePlayer(_Var1, _Var2);
PROC_AssignCharacterToPlayer(_Var1, _Var2);
AttachToPartyGroup(_Var1, _Var2);
IF
TextEvent("und_teasertrailer")
AND
GetHostCharacter(_Var1)
AND
_Var1 != S_UND_TeaserTrailer_Drow_ebc4cc51-6140-4ff7-9a12-af5b3c75a407
THEN
PROC_UND_TeaserTrailer_AddPlayer(S_UND_TeaserTrailer_Drow_ebc4cc51-6140-4ff7-9a12-af5b3c75a407, _Var1);
SetTag(S_UND_TeaserTrailer_Drow_ebc4cc51-6140-4ff7-9a12-af5b3c75a407, AVATAR_306b9b05-1057-4770-aa17-01af21acd650);
PROC_UND_TeaserTrailer_AddPlayer(S_UND_TeaserTrailer_Halfling_63949406-0bc5-4efe-a023-19a0a485901b, S_UND_TeaserTrailer_Drow_ebc4cc51-6140-4ff7-9a12-af5b3c75a407);
PROC_UND_TeaserTrailer_AddPlayer(S_UND_TeaserTrailer_Human_82f20a8e-3120-4098-b119-0c1324876796, S_UND_TeaserTrailer_Drow_ebc4cc51-6140-4ff7-9a12-af5b3c75a407);
DB_UndTeaserHostChar(_Var1);
TimerLaunch("UND_Teaser_DelayParty", 50);
IF
TimerFinished("UND_Teaser_DelayParty")
AND
DB_UndTeaserHostChar(_Var1)
THEN
MakePlayerActive(S_UND_TeaserTrailer_Drow_ebc4cc51-6140-4ff7-9a12-af5b3c75a407);
NOT DB_UndTeaserHostChar(_Var1);
PROC_GLO_PartyMembers_Remove(_Var1, 1);
SetOnStage(_Var1, 0);
PROC_KickGenericPlayer();
IF
TextEvent("und_teasertrailer")
AND
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)
THEN
PROC_TeleportPartiesTo(S_UND_TeaserTrailer_Pos_e0b10777-3505-4f93-a98a-b4af0b1388a2, "");
IF
TextEvent("blockdialog")
AND
DB_Players(_Var1)
THEN
DB_CantTalk(_Var1);
IF
TextEvent("unblockdialog")
AND
DB_Players(_Var1)
THEN
NOT DB_CantTalk(_Var1);
EXITSECTION
ENDEXITSECTION
ParentTargetEdge "Start"