﻿{
	"counters":
	[
		{
			"sid": "difficulty",
			"value": 0,

			"comment": "трекинг выбранного уровня сложности (нужен, чтобы проверять сложность внутри квеста Танта, не активного со старта)"
		},


		{
			"sid": "m5_main_quest",
			"value": 0,

			"comment": "трекинг прогресса мейн квеста"
		},
		{
			"sid": "1a",
			"value": 0, 

			"comment": "вспомогательный флаг для создания прокликиваемого цикла реплик в M5_thant_dial1"
		},
		{
			"sid": "1b",
			"value": 0, 

			"comment": "вспомогательный флаг для создания прокликиваемого цикла реплик в M5_thant_dial1"
		},
		{
			"sid": "thant_attacks",
			"value": 0,

			"comment": "флаг, выдающий Танту команду атаковать (у замка)"
		},

		{
			"sid": "thant_quest_started",
			"value": 0
		},
		{
			"sid": "thant_quest_progress",
			"value": 0,

			"comment": "флаг, тречащий прогресс выполнения квеста Танта"
		},
		{
			"sid": "hard_guard_defeated",
			"value": 0, 

			"comment": "флаг, победил ли игрок сильную охрану, пропустив тем самым квест танта"
		},
		{
			"sid": "thant_quest_finished",
			"value": 0, 

			"comment": "флаг, используется в M5_castle_dial1"
		},
		{
			"sid": "path_blood",
			"value": 0, 

			"comment": "флаг, какую концовку миссии выбрал герой, используется в M5_castle_dial3"
		},
		{
			"sid": "path_jolt",
			"value": 0, 

			"comment": "флаг, какую концовку миссии выбрал герой, используется в M5_castle_dial3"
		},
		{
			"sid": "path_thant",
			"value": 0, 

			"comment": "флаг, какую концовку миссии выбрал герой, используется в M5_castle_dial3"
		},

		{
			"sid": "spy_quest",
			"value": 0,

			"comment": "согласился ли игрок с планом шпиона по маркировке могил; 1 = да, но не стал помогать сам; 2 = согласился помочь и начал квест; 3 = сдал шпиону"
		},
		{
			"sid": "graves_marked",
			"value": 0,

			"comment": "счетчик помеченных могил в квесте шпиона"
		},
		{
			"sid": "grave1_marked",
			"value": 0,

			"comment": "пометил ли игрок могилу №1"
		},
		{
			"sid": "grave2_marked",
			"value": 0,

			"comment": "пометил ли игрок могилу №2"
		},
		{
			"sid": "grave3_marked",
			"value": 0,

			"comment": "пометил ли игрок могилу №3"
		},
		{
			"sid": "grave4_marked",
			"value": 0,

			"comment": "пометил ли игрок могилу №4"
		},

		{
			"sid": "undead_kitten_quest",
			"value": 0,
			
			"comment": "флаг для Q6 - бессмертный скелет; 0 = не начат; 1 = начат с поиска первой шахты; 2 = начат сразу с необходимости захватить все шахты; 3 - завершен"
		},
		{
			"sid": "crystal_mines_captured",
			"value": 0
		},
		{
			"sid": "mine1_captured",
			"value": 0,

			"comment": "вспомогательный флаг для выставления квестмаркеров только над еще не захваченными шахтами"
		},
		{
			"sid": "mine2_captured",
			"value": 0,

			"comment": "вспомогательный флаг для выставления квестмаркеров только над еще не захваченными шахтами"
		},
		{
			"sid": "mine3_captured",
			"value": 0,

			"comment": "вспомогательный флаг для выставления квестмаркеров только над еще не захваченными шахтами"
		},
		{
			"sid": "mine4_captured",
			"value": 0,

			"comment": "вспомогательный флаг для выставления квестмаркеров только над еще не захваченными шахтами"
		},		
		{
			"sid": "undead_kitten_reward",
			"value": 0,

			"comment": "вспомогательный флаг, есть ли у игрока награда от квеста бессмертного котика"
		},

		{
			"sid": "death_knight_quest",
			"value": 0,
			
			"comment": "флаг для Q7 - рыцарь смерти хочет умереть; 0 = не начат; 1 = начат; 2 = пройден; 3 = брошен досрочно"
		},
		{
			"sid": "death_knight_refused",
			"value": 0,
			
			"comment": "флаг для Q7 для старта таймера пропадания рыцаря после отказа"
		},
		{
			"sid": "monster_dealt_with",
			"value": 0,
			
			"comment": "вспомогательный флаг для Q7; 0 = игрок не разобрался с монстром; 1 = игрок убил монстра; 2 = игрок подружился с монстром"
		},
		{
			"sid": "happy_knight_visited",
			"value": 0,
			
			"comment": "вспомогательный флаг для M5Q7_dial7"
		},

		{
			"sid": "vampire_kill",
			"value": 0,
			
			"comment": "мини-флаг для проверки убиты ли вампиры в начале"
		}	
	],

	"interruptions":
	[
		{
			"sid": "interact_galthran",
			"interruption": "BeforeIamVsHero",
			"activeOnStart": true,
			"p": [ "campaign_M5_hero_undead_1" ],

			"actions":
			[
				{ "a": "Dialog", "p": [ "M5_galthran_dial1" ] }
			]
		},
		{
			"sid": "win_thant",
			"interruption": "AfterIamWinVsHero",
			"activeOnStart": true,
			"p": [ "campaign_M5_hero_undead_2alt" ],

			"actions":
			[
				{ "a": "Dialog", "p": [ "M5_galthran_dial2" ] }
			]
		}
	],

	"quests":
	[
		{
			"sid": "intro",
			"hidden": true,

			"comment": "intro",

			"activeOnStart": true,
			"sharing": "Clone",

			"name": "1",
			
			"subQuests":
			[	
				{
					"sid": "1",
					"activeOnStart": true,

					"triggers":
					[
						{
							"conditions":
							[
								{ "c": "StartTurn", "p": [ "1", "1" ] }
							],

							"actions":
							[
								{ "a": "SetQuestMarker", "p": [ "first_skeleton", "effects/global_map/quest_mark_gold_01" ] },
								{ "a": "SetQuestMarker", "p": [ "final_skeleton", "effects/global_map/quest_mark_gold_01" ] },
								{ "a": "SetQuestMarker", "p": [ "spy", "effects/global_map/quest_mark_silver_01" ] },
								{ "a": "SetQuestMarker", "p": [ "vampire", "effects/global_map/quest_mark_silver_01" ] },

								{ "a": "StoryCounterPlus", "p": [ "Campaign_Flag_M3_DeathKnightSaved", "0" ] },

								{ "a": "DisableAiHero", "p": [ "campaign_M5_hero_undead_1" ] },
								{ "a": "HeroToNode", "p": [ "campaign_M5_hero_undead_1", "3811" ] },
								{ "a": "DisableAiHero", "p": [ "campaign_M5_hero_undead_2" ] },
								{ "a": "Dialog", "p": [ "M5_intro_dial1" ] }
							]
						},
						{
							"conditions":
							[
								{ "c": "StoryCounter", "p": [ "Campaign_Flag_M3_DeathKnightSaved", "=", "0" ] }
							],

							"actions":
							[
								{ "a": "DeleteEntity", "p": [ "death_knight" ] },
								{ "a": "DeleteEntity", "p": [ "forest_monster" ] }
							]
						},
						{
							"conditions":
							[
								{ "c": "StoryCounter", "p": [ "Campaign_Flag_M3_DeathKnightSaved", "=", "1" ] }
							],

							"actions":
							[
								{ "a": "SetQuestMarker", "p": [ "death_knight", "effects/global_map/quest_mark_silver_01" ] },
								{ "a": "SetQuestMarker", "p": [ "forest_monster", "effects/global_map/quest_mark_silver_01" ] }
							]
						}
					]
				},
				{
					"sid": "2",
					"activeOnStart": true,
					"comment": "difficulty settings",

					"triggers":
					[
						{
							"conditionsLogic": "And",

							"conditions":
							[
								{ "c": "StartTurn", "p": [ "1", "1" ] },
								{ "c": "Difficulty", "p": [ "0" ] }
							],

							"actions":
							[
								{ "a": "CounterSet", "p": [ "difficulty", "0" ] },
								
								{ "a": "AddBuffHeroDays", "p": [ "campaign_heroStatBuff_easy_2", "campaign_hero_1", "-1" ] },
								{ "a": "AddBuffHeroDays", "p": [ "campaign_heroStatBuff_easy_2", "campaign_hero_2", "-1" ] }
							]
						},
						{
							"conditionsLogic": "And",

							"conditions":
							[
								{ "c": "StartTurn", "p": [ "1", "1" ] },
								{ "c": "Difficulty", "p": [ "1" ] }
							],

							"actions":
							[
								{ "a": "CounterSet", "p": [ "difficulty", "0" ] },

								{ "a": "GiveUnitHero", "p": [ "skeleton_upg_alt",		"150",	"campaign_M5_hero_undead_1" ] },
								{ "a": "GiveUnitHero", "p": [ "skeleton",				"240",	"campaign_M5_hero_undead_1" ] },
								{ "a": "GiveUnitHero", "p": [ "skeleton_upg",			"135",	"campaign_M5_hero_undead_1" ] },
								
								{ "a": "GiveUnitHero", "p": [ "lich_upg",				"3",	"campaign_M5_hero_undead_2" ] },
								{ "a": "GiveUnitHero", "p": [ "graverobber_upg_alt",	"5",	"campaign_M5_hero_undead_2" ] },
								{ "a": "GiveUnitHero", "p": [ "pet_upg",				"8",	"campaign_M5_hero_undead_2" ] },
								{ "a": "GiveUnitHero", "p": [ "avatar_of_war_upg",		"2",	"campaign_M5_hero_undead_2" ] },
								{ "a": "GiveUnitHero", "p": [ "lich_upg_alt",			"3",	"campaign_M5_hero_undead_2" ] },
								{ "a": "GiveUnitHero", "p": [ "avatar_of_war_upg_alt",	"2",	"campaign_M5_hero_undead_2" ] },
								{ "a": "GiveUnitHero", "p": [ "pet_upg_alt",			"8",	"campaign_M5_hero_undead_2" ] },

									{ "a": "GiveStatsHero", "p": [ "offence", "campaign_M5_hero_undead_1", "3" ] },
									{ "a": "GiveStatsHero", "p": [ "defence", "campaign_M5_hero_undead_1", "3" ] },
									{ "a": "GiveStatsHero", "p": [ "spellPower", "campaign_M5_hero_undead_1", "3" ] },
									{ "a": "GiveStatsHero", "p": [ "intelligence", "campaign_M5_hero_undead_1", "3" ] },

									{ "a": "GiveStatsHero", "p": [ "offence", "campaign_M5_hero_undead_2", "3" ] },
									{ "a": "GiveStatsHero", "p": [ "defence", "campaign_M5_hero_undead_2", "3" ] },
									{ "a": "GiveStatsHero", "p": [ "spellPower", "campaign_M5_hero_undead_2", "3" ] },
									{ "a": "GiveStatsHero", "p": [ "intelligence", "campaign_M5_hero_undead_2", "3" ] }
							]
						},
						{
							"conditionsLogic": "And",

							"conditions":
							[
								{ "c": "StartTurn", "p": [ "1", "1" ] },
								{ "c": "Difficulty", "p": [ "2" ] }
							],

							"actions":
							[
								{ "a": "CounterSet", "p": [ "difficulty", "1" ] },

								{ "a": "GiveUnitHero", "p": [ "skeleton_upg_alt",		"300",	"campaign_M5_hero_undead_1" ] },
								{ "a": "GiveUnitHero", "p": [ "skeleton",				"480",	"campaign_M5_hero_undead_1" ] },
								{ "a": "GiveUnitHero", "p": [ "skeleton_upg",			"270",	"campaign_M5_hero_undead_1" ] },
								
								{ "a": "GiveUnitHero", "p": [ "lich_upg",				"6",	"campaign_M5_hero_undead_2" ] },
								{ "a": "GiveUnitHero", "p": [ "graverobber_upg_alt",	"10",	"campaign_M5_hero_undead_2" ] },
								{ "a": "GiveUnitHero", "p": [ "pet_upg",				"16",	"campaign_M5_hero_undead_2" ] },
								{ "a": "GiveUnitHero", "p": [ "avatar_of_war_upg",		"4",	"campaign_M5_hero_undead_2" ] },
								{ "a": "GiveUnitHero", "p": [ "lich_upg_alt",			"6",	"campaign_M5_hero_undead_2" ] },
								{ "a": "GiveUnitHero", "p": [ "avatar_of_war_upg_alt",	"4",	"campaign_M5_hero_undead_2" ] },
								{ "a": "GiveUnitHero", "p": [ "pet_upg_alt",			"16",	"campaign_M5_hero_undead_2" ] },

									{ "a": "GiveStatsHero", "p": [ "offence", "campaign_M5_hero_undead_1", "6" ] },
									{ "a": "GiveStatsHero", "p": [ "defence", "campaign_M5_hero_undead_1", "6" ] },
									{ "a": "GiveStatsHero", "p": [ "spellPower", "campaign_M5_hero_undead_1", "6" ] },
									{ "a": "GiveStatsHero", "p": [ "intelligence", "campaign_M5_hero_undead_1", "6" ] },

									{ "a": "GiveStatsHero", "p": [ "offence", "campaign_M5_hero_undead_2", "6" ] },
									{ "a": "GiveStatsHero", "p": [ "defence", "campaign_M5_hero_undead_2", "6" ] },
									{ "a": "GiveStatsHero", "p": [ "spellPower", "campaign_M5_hero_undead_2", "6" ] },
									{ "a": "GiveStatsHero", "p": [ "intelligence", "campaign_M5_hero_undead_2", "6" ] }
							]
						},
						{
							"conditionsLogic": "And",

							"conditions":
							[
								{ "c": "StartTurn", "p": [ "1", "1" ] },
								{ "c": "Difficulty", "p": [ "3" ] }
							],

							"actions":
							[
								{ "a": "CounterSet", "p": [ "difficulty", "2" ] },


								{ "a": "GiveUnitHero", "p": [ "skeleton_upg_alt",		"600",	"campaign_M5_hero_undead_1" ] },
								{ "a": "GiveUnitHero", "p": [ "skeleton",				"960",	"campaign_M5_hero_undead_1" ] },
								{ "a": "GiveUnitHero", "p": [ "skeleton_upg",			"540",	"campaign_M5_hero_undead_1" ] },

								{ "a": "GiveUnitHero", "p": [ "lich_upg",				"12",	"campaign_M5_hero_undead_2" ] },
								{ "a": "GiveUnitHero", "p": [ "graverobber_upg_alt",	"20",	"campaign_M5_hero_undead_2" ] },
								{ "a": "GiveUnitHero", "p": [ "pet_upg",				"32",	"campaign_M5_hero_undead_2" ] },
								{ "a": "GiveUnitHero", "p": [ "avatar_of_war_upg",		"8",	"campaign_M5_hero_undead_2" ] },
								{ "a": "GiveUnitHero", "p": [ "lich_upg_alt",			"12",	"campaign_M5_hero_undead_2" ] },
								{ "a": "GiveUnitHero", "p": [ "avatar_of_war_upg_alt",	"8",	"campaign_M5_hero_undead_2" ] },
								{ "a": "GiveUnitHero", "p": [ "pet_upg_alt",			"32",	"campaign_M5_hero_undead_2" ] },

									{ "a": "GiveStatsHero", "p": [ "offence", "campaign_M5_hero_undead_1", "12" ] },
									{ "a": "GiveStatsHero", "p": [ "defence", "campaign_M5_hero_undead_1", "12" ] },
									{ "a": "GiveStatsHero", "p": [ "spellPower", "campaign_M5_hero_undead_1", "12" ] },
									{ "a": "GiveStatsHero", "p": [ "intelligence", "campaign_M5_hero_undead_1", "12" ] },

									{ "a": "GiveStatsHero", "p": [ "offence", "campaign_M5_hero_undead_2", "12" ] },
									{ "a": "GiveStatsHero", "p": [ "defence", "campaign_M5_hero_undead_2", "12" ] },
									{ "a": "GiveStatsHero", "p": [ "spellPower", "campaign_M5_hero_undead_2", "12" ] },
									{ "a": "GiveStatsHero", "p": [ "intelligence", "campaign_M5_hero_undead_2", "12" ] }
							]
						}
					]
				},
				{
					"sid": "3",
					"activeOnStart": true,
					"comment": "difficulty settings",

					"triggers":
					[
						{
							"conditionsLogic": "And",

							"conditions":
							[
								{ "c": "StartWeek", "p": [  ] },
								{ "c": "Difficulty", "p": [ "0" ] }
							],

							"actions":
							[
								{ "a": "GiveUnitHero", "p": [ "skeleton_upg_alt",		"10",	"campaign_M5_hero_undead_1" ] },
								{ "a": "GiveUnitHero", "p": [ "skeleton",				"16",	"campaign_M5_hero_undead_1" ] },
								{ "a": "GiveUnitHero", "p": [ "skeleton_upg",			"9",	"campaign_M5_hero_undead_1" ] }
							]
						},
						{
							"conditionsLogic": "And",

							"conditions":
							[
								{ "c": "StartWeek", "p": [  ] },
								{ "c": "Difficulty", "p": [ "1" ] }
							],

							"actions":
							[
								{ "a": "GiveUnitHero", "p": [ "skeleton_upg_alt",		"20",	"campaign_M5_hero_undead_1" ] },
								{ "a": "GiveUnitHero", "p": [ "skeleton",				"32",	"campaign_M5_hero_undead_1" ] },
								{ "a": "GiveUnitHero", "p": [ "skeleton_upg",			"18",	"campaign_M5_hero_undead_1" ] }
							]
						},
						{
							"conditionsLogic": "And",

							"conditions":
							[
								{ "c": "StartWeek", "p": [  ] },
								{ "c": "Difficulty", "p": [ "2" ] }
							],

							"actions":
							[
								{ "a": "GiveUnitHero", "p": [ "skeleton_upg_alt",		"40",	"campaign_M5_hero_undead_1" ] },
								{ "a": "GiveUnitHero", "p": [ "skeleton",				"64",	"campaign_M5_hero_undead_1" ] },
								{ "a": "GiveUnitHero", "p": [ "skeleton_upg",			"36",	"campaign_M5_hero_undead_1" ] }
							]
						},
						{
							"conditionsLogic": "And",

							"conditions":
							[
								{ "c": "StartWeek", "p": [  ] },
								{ "c": "Difficulty", "p": [ "3" ] }
							],

							"actions":
							[
								{ "a": "GiveUnitHero", "p": [ "skeleton_upg_alt",		"60",	"campaign_M5_hero_undead_1" ] },
								{ "a": "GiveUnitHero", "p": [ "skeleton",				"96",	"campaign_M5_hero_undead_1" ] },
								{ "a": "GiveUnitHero", "p": [ "skeleton_upg",			"54",	"campaign_M5_hero_undead_1" ] }
							]
						}
					]
				}
			]
		},

		{
			"sid": "Questlog0",
			"main": true,

			"comment": "Квест 'Герои не должны умереть'",

			"activeOnStart": true,
			"sharing": "Clone",

			"name": "quest_name_genericQ0",

			"subQuests":
			[
				{
					"sid": "Questlog0_1",
					"activeOnStart": true,
					
					"name": "quest_sub_M4Q0_1",

					"triggers":
					[
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "m5_main_quest", "=", "2" ] }
							],

							"actions":
							[
								{ "a": "CurrentSubQuestDone" }
							]
						},
						{
							"conditionsLogic": "Or",
							"conditions":
							[
								{ "c": "HeroKill", "p": [ "campaign_hero_1" ] },
								{ "c": "HeroKill", "p": [ "campaign_hero_2" ] }
							],

							"actions":
							[
								{ "a": "GameLose" }
							]
						}
					]
				}
			]
		},
		
		{
			"sid": "Questlog1",
			"main": true,

			"comment": "Основной квест",

			"activeOnStart": true,
			"name": "quest_name_M5Q1",
			"sharing": "Clone",

			"subQuests":
			[	
				{
					"sid": "Questlog1_1",
					"activeOnStart": true,
					
					"name": "quest_sub_M5Q1_1",

					"triggers":
					[
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "m5_main_quest", "=", "1" ] }
							],

							"actions":
							[
								{ "a": "CurrentSubQuestDone" },
								{ "a": "NextSubQuest", "p": [ "Questlog1_2" ] }
							]
						}
					]
				},
				{
					"sid": "Questlog1_2",
					
					"name": "quest_sub_M5Q1_2",

					"triggers":
					[
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "m5_main_quest", "=", "2" ] }
							],

							"actions":
							[
								{ "a": "CurrentSubQuestDone" }
							]
						}
					]
				}
			]
		},
			{
				"sid": "supportQuestlog1_1",
				"hidden": true,

				"comment": "sup quest for Q1, initiating Thant's attack (needs to be separated from the dialogue or fight breaks)",

				"sharing": "Clone",
				"activeOnStart": true,

				"subQuests":
				[	
					{
						"sid": "1",
						"activeOnStart": true,

						"triggers":
						[
							{
								"conditionsLogic": "And",
	
								"conditions":
								[
									{ "c": "Counter", "p": [ "thant_attacks", "=", "1" ] },
									{ "c": "Difficulty", "p": [ "0" ] }
								],

								"actions":
								[
									{ "a": "AddBuffHeroDays", "p": [ "campaign_heroStatBuff_0", "campaign_M5_hero_undead_2alt", "9999" ] },

									{ "a": "HeroToNode", "p": [ "campaign_M5_hero_undead_2alt", "3876" ] }
								]
							},
							{
								"conditionsLogic": "And",
	
								"conditions":
								[
									{ "c": "Counter", "p": [ "thant_attacks", "=", "1" ] },
									{ "c": "Difficulty", "p": [ "1" ] }
								],

								"actions":
								[
									{ "a": "GiveStatsHero", "p": [ "offence", "campaign_M5_hero_undead_2alt", "3" ] },
									{ "a": "GiveStatsHero", "p": [ "defence", "campaign_M5_hero_undead_2alt", "3" ] },
									{ "a": "GiveStatsHero", "p": [ "spellPower", "campaign_M5_hero_undead_2alt", "3" ] },
									{ "a": "GiveStatsHero", "p": [ "intelligence", "campaign_M5_hero_undead_2alt", "3" ] },
									
									{ "a": "GiveUnitHeroPerMonth", "p": [ "lich_upg",				"3",	"campaign_M5_hero_undead_2alt" ] },
									{ "a": "GiveUnitHeroPerWeek", "p": [ "graverobber_upg_alt",		"1",	"campaign_M5_hero_undead_2alt" ] },
									{ "a": "GiveUnitHeroPerWeek", "p": [ "pet_upg",					"1",	"campaign_M5_hero_undead_2alt" ] },
									{ "a": "GiveUnitHeroPerMonth", "p": [ "avatar_of_war_upg",		"2",	"campaign_M5_hero_undead_2alt" ] },
									{ "a": "GiveUnitHeroPerMonth", "p": [ "lich_upg_alt",			"3",	"campaign_M5_hero_undead_2alt" ] },
									{ "a": "GiveUnitHeroPerMonth", "p": [ "avatar_of_war_upg_alt",	"2",	"campaign_M5_hero_undead_2alt" ] },
									{ "a": "GiveUnitHeroPerWeek", "p": [ "pet_upg_alt",				"1",	"campaign_M5_hero_undead_2alt" ] },

									{ "a": "HeroToNode", "p": [ "campaign_M5_hero_undead_2alt", "3876" ] }
								]
							},
							{
								"conditionsLogic": "And",
	
								"conditions":
								[
									{ "c": "Counter", "p": [ "thant_attacks", "=", "1" ] },
									{ "c": "Difficulty", "p": [ "2" ] }
								],

								"actions":
								[
									{ "a": "GiveStatsHero", "p": [ "offence", "campaign_M5_hero_undead_2alt", "6" ] },
									{ "a": "GiveStatsHero", "p": [ "defence", "campaign_M5_hero_undead_2alt", "6" ] },
									{ "a": "GiveStatsHero", "p": [ "spellPower", "campaign_M5_hero_undead_2alt", "6" ] },
									{ "a": "GiveStatsHero", "p": [ "intelligence", "campaign_M5_hero_undead_2alt", "6" ] },
									
									{ "a": "GiveUnitHeroPerMonth", "p": [ "lich_upg",				"6",	"campaign_M5_hero_undead_2alt" ] },
									{ "a": "GiveUnitHeroPerWeek", "p": [ "graverobber_upg_alt",		"2",	"campaign_M5_hero_undead_2alt" ] },
									{ "a": "GiveUnitHeroPerWeek", "p": [ "pet_upg",					"2",	"campaign_M5_hero_undead_2alt" ] },
									{ "a": "GiveUnitHeroPerMonth", "p": [ "avatar_of_war_upg",		"4",	"campaign_M5_hero_undead_2alt" ] },
									{ "a": "GiveUnitHeroPerMonth", "p": [ "lich_upg_alt",			"6",	"campaign_M5_hero_undead_2alt" ] },
									{ "a": "GiveUnitHeroPerMonth", "p": [ "avatar_of_war_upg_alt",	"4",	"campaign_M5_hero_undead_2alt" ] },
									{ "a": "GiveUnitHeroPerWeek", "p": [ "pet_upg_alt",				"2",	"campaign_M5_hero_undead_2alt" ] },

									{ "a": "HeroToNode", "p": [ "campaign_M5_hero_undead_2alt", "3876" ] }
								]
							},
							{
								"conditionsLogic": "And",
	
								"conditions":
								[
									{ "c": "Counter", "p": [ "thant_attacks", "=", "1" ] },
									{ "c": "Difficulty", "p": [ "3" ] }
								],

								"actions":
								[	
									{ "a": "GiveStatsHero", "p": [ "offence", "campaign_M5_hero_undead_2alt", "12" ] },
									{ "a": "GiveStatsHero", "p": [ "defence", "campaign_M5_hero_undead_2alt", "12" ] },
									{ "a": "GiveStatsHero", "p": [ "spellPower", "campaign_M5_hero_undead_2alt", "12" ] },
									{ "a": "GiveStatsHero", "p": [ "intelligence", "campaign_M5_hero_undead_2alt", "12" ] },
									
									{ "a": "GiveUnitHeroPerMonth", "p": [ "lich_upg",				"9",	"campaign_M5_hero_undead_2alt" ] },
									{ "a": "GiveUnitHeroPerWeek", "p": [ "graverobber_upg_alt",		"3",	"campaign_M5_hero_undead_2alt" ] },
									{ "a": "GiveUnitHeroPerWeek", "p": [ "pet_upg",					"3",	"campaign_M5_hero_undead_2alt" ] },
									{ "a": "GiveUnitHeroPerMonth", "p": [ "avatar_of_war_upg",		"6",	"campaign_M5_hero_undead_2alt" ] },
									{ "a": "GiveUnitHeroPerMonth", "p": [ "lich_upg_alt",			"9",	"campaign_M5_hero_undead_2alt" ] },
									{ "a": "GiveUnitHeroPerMonth", "p": [ "avatar_of_war_upg_alt",	"6",	"campaign_M5_hero_undead_2alt" ] },
									{ "a": "GiveUnitHeroPerWeek", "p": [ "pet_upg_alt",				"3",	"campaign_M5_hero_undead_2alt" ] },

									{ "a": "HeroToNode", "p": [ "campaign_M5_hero_undead_2alt", "3876" ] }
								]
							}
						]
					}
				]
			},
			{
				"sid": "supportQuestlog1_2",
				"hidden": true,

				"comment": "additional dialogues",

				"sharing": "Clone",
				"activeOnStart": true,

				"subQuests":
				[	
					{
						"sid": "1",
						"activeOnStart": true,

						"triggers":
						[
							{
								"conditions": 
								[ 
									{ "c": "SquadKill", "p": [ "first_skeleton" ] } 
								],

								"actions": 
								[
									{ "a": "Dialog", "p": [ "M5_undead_dial3" ] }
								]
							},
							{
								"conditions": 
								[ 
									{ "c": "SquadKill", "p": [ "final_skeleton" ] } 
								],

								"actions": 
								[
									{ "a": "SetActivePortal", "p": [ "portal_out1", "true" ] },
									{ "a": "SetActivePortal", "p": [ "portal_out2", "true" ] },
									{ "a": "Dialog", "p": [ "M5_final_skeleton_dial2" ] }
								]
							}
						]
					}
				]
			},

			{
				"sid": "setupQusetlog2",
				"hidden": true,

				"comment": "to setup Thant's quest",

				"sharing": "Clone",
				"activeOnStart": true,

				
				"name": "1",

				"subQuests":
				[	
					{
						"sid": "1",
						"activeOnStart": true,

						"triggers":
						[
							{
								"conditions":
								[
									{ "c": "Counter", "p": [ "thant_quest_started", "=", "1" ] }
								],

								"actions":
								[
									{ "a": "NextQuest", "p": [ "Questlog2" ] },
									{ "a": "CounterPlus", "p": [ "thant_quest_finished", "0" ] },

									{ "a": "CounterPlus", "p": [ "difficulty", "0" ] }
								]
							}
						]
					}
				]
			},
		{
			"sid": "Questlog2",
			"main": true,

			"comment": "Квест Танта",

			"sharing": "Clone",
			
			"name": "quest_name_M5Q2",
			"desc": "quest_desc_M5Q2",

			"subQuests":
			[	
				{
					"sid": "Questlog2_1",
					"activeOnStart": true,
					
					"name": "quest_sub_M5Q2_1",

					"triggers":
					[
						{
							"conditions":
							[
								{ "c": "UnitKill", "p": [ "skeleton" ], "counter": 1333 }
							],

							"actions":
							[
								{ "a": "CurrentSubQuestDone" },
								{ "a": "CounterPlus", "p": [ "thant_quest_progress", "1" ] }
							]
						},
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "hard_guard_defeated", "=", "1" ] }
							],

							"actions":
							[
								{ "a": "NextQuest" }
							]
						},
						{
							"conditionsLogic": "And",

							"conditions":
							[
								{ "c": "Counter", "p": [ "thant_quest_progress", "=", "3" ] },
								{ "c": "Counter", "p": [ "difficulty", "=", "0" ] }
							],

							"actions":
							[
								{ "a": "Dialog", "p": [ "M5_thant_dial2" ] },
								{ "a": "CounterSet", "p": [ "thant_quest_finished", "1"] },
								{ "a": "MoveCamera", "p": [ "3378" ] },
								{ "a": "DeleteEntity", "p": [ "final_guard" ] },
								{ "a": "SpawnSquad", "p": [ "squad_M5_final_guard", "3314", "30000", "false", "final_guard_weak" ] },
								{ "a": "SetFlagEscape", "p": [ "final_guard_weak", "false" ] },
								{ "a": "SetFlagAutobattle", "p": [ "final_guard_weak", "false" ] },
								{ "a": "ChangeSquadReactionType", "p": [ "final_guard_weak", "Aggressive" ] },
								{ "a": "NextQuest" },
								{ "a": "AutoSave" }
							]
						},
						{
							"conditionsLogic": "And",

							"conditions":
							[
								{ "c": "Counter", "p": [ "thant_quest_progress", "=", "3" ] },
								{ "c": "Counter", "p": [ "difficulty", "=", "1" ] }
							],

							"actions":
							[
								{ "a": "Dialog", "p": [ "M5_thant_dial2" ] },
								{ "a": "CounterSet", "p": [ "thant_quest_finished", "1"] },
								{ "a": "MoveCamera", "p": [ "3378" ] },
								{ "a": "DeleteEntity", "p": [ "final_guard" ] },
								{ "a": "SpawnSquad", "p": [ "squad_M5_final_guard", "3314", "60000", "false", "final_guard_weak" ] },
								{ "a": "SetFlagEscape", "p": [ "final_guard_weak", "false" ] },
								{ "a": "SetFlagAutobattle", "p": [ "final_guard_weak", "false" ] },
								{ "a": "ChangeSquadReactionType", "p": [ "final_guard_weak", "Aggressive" ] },
								{ "a": "NextQuest" },
								{ "a": "AutoSave" }
							]
						},
						{
							"conditionsLogic": "And",

							"conditions":
							[
								{ "c": "Counter", "p": [ "thant_quest_progress", "=", "3" ] },
								{ "c": "Counter", "p": [ "difficulty", "=", "2" ] }
							],

							"actions":
							[
								{ "a": "Dialog", "p": [ "M5_thant_dial2" ] },
								{ "a": "CounterSet", "p": [ "thant_quest_finished", "1"] },
								{ "a": "MoveCamera", "p": [ "3378" ] },
								{ "a": "DeleteEntity", "p": [ "final_guard" ] },
								{ "a": "SpawnSquad", "p": [ "squad_M5_final_guard", "3314", "90000", "false", "final_guard_weak" ] },
								{ "a": "SetFlagEscape", "p": [ "final_guard_weak", "false" ] },
								{ "a": "SetFlagAutobattle", "p": [ "final_guard_weak", "false" ] },
								{ "a": "ChangeSquadReactionType", "p": [ "final_guard_weak", "Aggressive" ] },
								{ "a": "NextQuest" },
								{ "a": "AutoSave" }
							]
						}
					]
				},
				{
					"sid": "Questlog2_2",
					"activeOnStart": true,
					
					"name": "quest_sub_M5Q2_2",

					"triggers":
					[
						{
							"conditions":
							[
								{ "c": "UnitKill", "p": [ "skeleton_upg" ], "counter": 1333 }
							],

							"actions":
							[
								{ "a": "CurrentSubQuestDone" },
								{ "a": "CounterPlus", "p": [ "thant_quest_progress", "1"] }
							]
						}
					]
				},
				{
					"sid": "Questlog2_3",
					"activeOnStart": true,
					
					"name": "quest_sub_M5Q2_3",

					"triggers":
					[
						{
							"conditions":
							[
								{ "c": "UnitKill", "p": [ "skeleton_upg_alt" ], "counter": 1333 }
							],

							"actions":
							[
								{ "a": "CurrentSubQuestDone" },
								{ "a": "CounterPlus", "p": [ "thant_quest_progress", "1"] }
							]
						}
					]
				}
			]
		},
			{
				"sid": "supportQuestlog2",
				"hidden": true,

				"comment": "summoning dialog if player defeats the strnog guard without completing Thant's quest",

				"sharing": "Clone",
				"activeOnStart": true,

				"subQuests":
				[	
					{
						"sid": "1",
						"activeOnStart": true,

						"triggers":
						[
							{
								"conditions":
								[
									{ "c": "SquadKill", "p": [ "final_guard" ] }
								],

								"actions":
								[
									{ "a": "Dialog", "p": [ "M5_hard_guard_dial1" ] },
									{ "a": "NextQuest" },
									{ "a": "AutoSave" }
								]
							},
							{
								"conditions":
								[
									{ "c": "Counter", "p": [ "thant_quest_finished", "=", "1" ] }
								],

								"actions":
								[
									{ "a": "NextQuest" }
								]
							}
						]
					}
				]
			},

			{
				"sid": "setupQuestlog3",
				"hidden": true,

				"comment": "to setup spy quest",

				"sharing": "Clone",
				"activeOnStart": true,

				"subQuests":
				[	
					{
						"sid": "1",
						"activeOnStart": true,

						"triggers":
						[
							{
								"conditions":
								[
									{ "c": "Counter", "p": [ "spy_quest", "=", "2" ] }
								],

								"actions":
								[
									{ "a": "CounterSet", "p": [ "graves_marked", "0"] },
									{ "a": "NextQuest", "p": [ "Questlog3" ] },

									{ "a": "SetQuestMarker", "p": [ "grave1", "effects/global_map/quest_mark_silver_02" ] },
									{ "a": "SetQuestMarker", "p": [ "grave2", "effects/global_map/quest_mark_silver_02" ] },
									{ "a": "SetQuestMarker", "p": [ "grave3", "effects/global_map/quest_mark_silver_02" ] },
									{ "a": "SetQuestMarker", "p": [ "grave4", "effects/global_map/quest_mark_silver_02" ] }
								]
							}
						]
					}
				]
			},
		{
			"sid": "Questlog3",
			"activeOnStart": false,

			"comment": "Квест шпиона, промаркировать 4 могилы",

			"name": "quest_name_M5Q3",
			"desc": "quest_desc_M5Q3",

			"sharing": "Clone",

			"subQuests":
			[	
				{
					"sid": "Questlog3_1",
					"activeOnStart": true,
					
					"name": "quest_sub_M5Q3_1",

					"triggers":
					[
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "graves_marked", "=", "4" ] }
							],

							"actions":
							[
								{ "a": "CurrentSubQuestDone" },
								{ "a": "NextSubQuest", "p": [ "Questlog3_2" ] }
							]
						}						
					]
				},
				{
					"sid": "Questlog3_2",
					
					"name": "quest_sub_M5Q3_2",

					"triggers":
					[
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "spy_quest", "=", "3" ] }
							],

							"actions":
							[
								{ "a": "CurrentSubQuestDone" },
								{ "a": "NextQuest" }
							]
						}						
					]
				}
			]
		},

			{
				"sid": "setupQuestlog6",
				"hidden": true,

				"comment": "to setup undying skelekitten quest",

				"sharing": "Clone",
				"activeOnStart": true,


				"subQuests":
				[	
					{
						"sid": "1",
						"activeOnStart": true,

						"triggers":
						[
							{
								"conditions":
								[
									{ "c": "Counter", "p": [ "undead_kitten_quest", "=", "1" ] }
								],

								"actions":
								[
									{ "a": "SetQuestMarker", "p": [ "mine1", "effects/global_map/quest_mark_silver_02" ] },
									{ "a": "SetQuestMarker", "p": [ "mine2", "effects/global_map/quest_mark_silver_02" ] },
									{ "a": "SetQuestMarker", "p": [ "mine3", "effects/global_map/quest_mark_silver_02" ] },
									{ "a": "SetQuestMarker", "p": [ "mine4", "effects/global_map/quest_mark_silver_02" ] },
									{ "a": "NextQuest", "p": [ "Questlog6a" ] }
								]
							},
							{
								"conditions":
								[
									{ "c": "Counter", "p": [ "undead_kitten_quest", "=", "2" ] }
								],

								"actions":
								[
									{ "a": "NextQuest", "p": [ "Questlog6b" ] },
									{ "a": "CounterPlus", "p": [ "mine1_captured", "0" ] },
									{ "a": "CounterPlus", "p": [ "mine2_captured", "0" ] },
									{ "a": "CounterPlus", "p": [ "mine3_captured", "0" ] },
									{ "a": "CounterPlus", "p": [ "mine4_captured", "0" ] }
								]
							}
						]
					}
				]
			},
		{
			"sid": "Questlog6a",
			"activeOnStart": false,

			"comment": "Квест бессмертного киттенхорна, если не захватил ни одной шахты ранее",

			"name": "quest_name_M5Q6",

			"sharing": "Clone",

			"subQuests":
			[	
				{
					"sid": "Questlog6a_1",
					"activeOnStart": true,
					
					"name": "quest_sub_M5Q6_1",

					"triggers":
					[
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "crystal_mines_captured", "=", "1" ] }
							],

							"actions":
							[
								{ "a": "CurrentSubQuestDone" },
								{ "a": "NextSubQuest", "p": [ "Questlog6a_2" ] },

								{ "a": "SetQuestMarker", "p": [ "undead_kitten_after", "effects/global_map/quest_mark_silver_02" ] }
							]
						}						
					]
				},
				{
					"sid": "Questlog6a_2",
					
					"name": "quest_sub_M5Q6_2",

					"triggers":
					[
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "undead_kitten_quest", "=", "2" ] }
							],

							"actions":
							[
								{ "a": "CurrentSubQuestDone" },
								{ "a": "NextSubQuest", "p": [ "Questlog6a_3" ] }
							]
						},
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "undead_kitten_quest", "=", "3" ] }
							],

							"actions":
							[
								{ "a": "NextQuest" }
							]
						}					
					]
				},
				{
					"sid": "Questlog6a_3",
					
					"name": "quest_sub_M5Q6_3",

					"triggers":
					[
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "crystal_mines_captured", "=", "4" ] }
							],

							"actions":
							[
								{ "a": "CurrentSubQuestDone" },
								{ "a": "Dialog", "p": [ "M5Q6_dial5" ] },
								{ "a": "NextSubQuest", "p": [ "Questlog6a_4" ] },

								{ "a": "SetActiveQuestMarker", "p": [ "undead_kitten_after", "true" ] }
							]
						}					
					]
				},
				{
					"sid": "Questlog6a_4",
					
					"name": "quest_sub_M5Q6_4",

					"triggers":
					[
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "undead_kitten_quest", "=", "3" ] }
							],

							"actions":
							[
								{ "a": "NextQuest" }
							]
						}
					]
				}
			]
		},
		{
			"sid": "Questlog6b",
			"activeOnStart": false,

			"comment": "Квест бессмертного киттенхорна, если уже захватил шахту ранее",

			"name": "quest_name_M5Q6",

			"sharing": "Clone",

			"subQuests":
			[
				{
					"sid": "Questlog6b_1",
					"activeOnStart": true,
					
					"name": "quest_sub_M5Q6_3",

					"triggers":
					[
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "crystal_mines_captured", "=", "4" ] }
							],

							"actions":
							[
								{ "a": "CurrentSubQuestDone" },
								{ "a": "Dialog", "p": [ "M5Q6_dial5" ] },
								{ "a": "NextSubQuest", "p": [ "Questlog6b_2" ] },

								{ "a": "SetQuestMarker", "p": [ "undead_kitten_after", "effects/global_map/quest_mark_silver_02" ] }
							]
						},
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "mine1_captured", "=", "1" ] }
							],

							"actions":
							[
								{ "a": "SetActiveQuestMarker", "p": [ "mine1", "false" ] }
							]
						},
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "mine2_captured", "=", "1" ] }
							],

							"actions":
							[
								{ "a": "SetActiveQuestMarker", "p": [ "mine2", "false" ] }
							]
						},
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "mine3_captured", "=", "1" ] }
							],

							"actions":
							[
								{ "a": "SetActiveQuestMarker", "p": [ "mine3", "false" ] }
							]
						},
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "mine4_captured", "=", "1" ] }
							],

							"actions":
							[
								{ "a": "SetActiveQuestMarker", "p": [ "mine4", "false" ] }
							]
						}
					]
				},
				{
					"sid": "Questlog6b_2",
					
					"name": "quest_sub_M5Q6_4",

					"triggers":
					[
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "undead_kitten_quest", "=", "3" ] }
							],

							"actions":
							[
								{ "a": "NextQuest" }
							]
						}
					]
				}
			]
		},
			{
				"sid": "supportQuestlog6_1",
				"hidden": true,

				"comment": "sup quest for Q6, capturing first mine, counting mines",

				"sharing": "Clone",
				"activeOnStart": true,

				"subQuests":
				[	
					{
						"sid": "1",
						"activeOnStart": true,

						"triggers":
						[
							{
								"conditions":
								[
									{ "c": "ObjectCaptureSid", "p": [ "mine_crystals" ], "counter": 1 }
								],
	
								"actions":
								[
									{ "a": "Dialog", "p": [ "M5Q6_dial3" ] }
								]
							},
							{
								"repeat": true,
								
								"conditions":
								[
									{ "c": "ObjectCaptureSid", "p": [ "mine_crystals" ] }
								],

								"actions":
								[
									{ "a": "CounterPlus", "p": [ "crystal_mines_captured", "1" ] }
								]
							},
							{
								"conditions":
								[
									{ "c": "ObjectCaptureEntity", "p": [ "mine1" ] }
								],

								"actions":
								[
									{ "a": "CounterSet", "p": [ "mine1_captured", "1" ] },
									{ "a": "SetActiveQuestMarker", "p": [ "mine1", "false" ] }
								]
							},
							{
								"conditions":
								[
									{ "c": "ObjectCaptureEntity", "p": [ "mine2" ] }
								],

								"actions":
								[
									{ "a": "CounterSet", "p": [ "mine2_captured", "1" ] },
									{ "a": "SetActiveQuestMarker", "p": [ "mine2", "false" ] }
								]
							},
							{
								"conditions":
								[
									{ "c": "ObjectCaptureEntity", "p": [ "mine3" ] }
								],

								"actions":
								[
									{ "a": "CounterSet", "p": [ "mine3_captured", "1" ] },
									{ "a": "SetActiveQuestMarker", "p": [ "mine3", "false" ] }
								]
							},
							{
								"conditions":
								[
									{ "c": "ObjectCaptureEntity", "p": [ "mine4" ] }
								],

								"actions":
								[
									{ "a": "CounterSet", "p": [ "mine4_captured", "1" ] },
									{ "a": "SetActiveQuestMarker", "p": [ "mine4", "false" ] }
								]
							}
						]
					}
				]
			},
			{
				"sid": "supportQuestlog6_2",
				"hidden": true,

				"comment": "sup quest for Q6, spawning and fighting skeleton-kittenhorn",

				"sharing": "Clone",
				"activeOnStart": true,

				"subQuests":
				[
					{
						"sid": "0",
						"activeOnStart": true,

						"comment": "interacting with the not-yet-undead-kitten",

						"triggers":
						[
							{
								"conditions":
								[
									{ "c": "SquadKill", "p": [ "undead_kitten" ] }
								],

								"actions":
								[
									{ "a": "Dialog", "p": [ "M5Q6_dial1" ] }
								]
							}
						]
					},
					{
						"sid": "1",
						"activeOnStart": true,

						"comment": "interacting with the skelekitten NPC squad",

						"triggers":
						[
							{
								"repeat": true,
								
								"conditions":
								[
									{ "c": "SquadInteraction", "p": [ "undead_kitten_after" ] }
								],

								"actions":
								[
									{ "a": "InitiateAttack", "p": [ "undead_kitten_after" ] }
								]
							}
						]
					},
					{
						"sid": "2",
						"activeOnStart": true,

						"comment": "resurrecting skelekitten until all mines are captured",

						"triggers":
						[
							{
								"repeat": true,
								
								"conditions":
								[
									{ "c": "SquadKill", "p": [ "undead_kitten_after" ] }
								],

								"actions":
								[
									{ "a": "Dialog", "p": [ "M5Q6_dial2" ] }
								]
							},
							{
								"conditions":
								[
									{ "c": "Counter", "p": [ "crystal_mines_captured", "=", "4" ] }
								],
	
								"actions":
								[
									{ "a": "NextSubQuest", "p": [ "3" ] }
								]
							}
						]
					},
					{
						"sid": "3",

						"comment": "killing skelekitten one last time",

						"triggers":
						[
							{
								"repeat": true,
								
								"conditions":
								[
									{ "c": "SquadInteraction", "p": [ "undead_kitten_after" ] }
								],

								"actions":
								[
									{ "a": "InitiateAttack", "p": [ "undead_kitten_after" ] }
								]
							},
							{
								"conditions":
								[
									{ "c": "SquadKill", "p": [ "undead_kitten_after" ] }
								],

								"actions":
								[
									{ "a": "Dialog", "p": [ "M5Q6_dial4" ] }
								]
							}
						]
					}
				]
			},

			{
				"sid": "setupQuestlog7",
				"hidden": true,

				"comment": "to setup death knight quest",

				"sharing": "Clone",
				"activeOnStart": true,

				"subQuests":
				[	
					{
						"sid": "1",
						"activeOnStart": true,

						"triggers":
						[
							{
								"conditions":
								[
									{ "c": "Counter", "p": [ "death_knight_quest", "=", "1" ] }
								],

								"actions":
								[
									{ "a": "CounterSet", "p": [ "monster_dealt_with", "0" ] },
									{ "a": "NextQuest", "p": [ "Questlog7" ] },
									
									{ "a": "SetQuestMarker", "p": [ "forest_monster", "effects/global_map/quest_mark_silver_02" ] }
								]
							}
						]
					}
				]
			},
		{
			"sid": "Questlog7",
			"activeOnStart": false,

			"comment": "Квест рыцаря смерти",

			"name": "quest_name_M5Q7",

			"sharing": "Clone",

			"subQuests":
			[
				{
					"sid": "Questlog7_1",
					"activeOnStart": true,
					
					"name": "quest_sub_M5Q7_1",

					"triggers":
					[
						{
							"conditionsLogic": "Or",
							"conditions":
							[
								{ "c": "Counter", "p": [ "monster_dealt_with", "=", "1" ] },
								{ "c": "Counter", "p": [ "monster_dealt_with", "=", "2" ] }
							],

							"actions":
							[
								{ "a": "CurrentSubQuestDone" },
								{ "a": "NextSubQuest", "p": [ "Questlog7_2" ] }
							]
						},
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "death_knight_quest", "=", "3" ] }
							],

							"actions":
							[
								{ "a": "EntityActionsOff", "p": [ "forest_monster" ] },
								{ "a": "SetActiveQuestMarker", "p": [ "forest_monster", "false" ] },
								{ "a": "NextQuest" }
							]
						}
					]
				},
				{
					"sid": "Questlog7_2",
					
					"name": "quest_sub_M5Q7_2",

					"triggers":
					[
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "death_knight_quest", "=", "2" ] }
							],

							"actions":
							[
								{ "a": "CurrentSubQuestDone" },
								{ "a": "NextQuest" }
							]
						}
					]
				}
			]
		},
			{
				"sid": "supportQuestlog7",
				"hidden": true,

				"sharing": "Clone",
				"activeOnStart": true,

				"subQuests":
				[
					{
						"sid": "0",
						"activeOnStart": true,
						"triggers":
						[
							{
								"conditions":
								[
									{ "c": "SquadKill", "p": [ "death_knight" ] }
								],
	
								"actions":
								[
									{ "a": "DeleteSquad", "p": [ "forest_monster", "1" ] }
								]
							}
						]
					},
					{
						"sid": "1",
						"activeOnStart": true,
						"triggers":
						[
							{
								"conditions":
								[
									{ "c": "Counter", "p": [ "monster_dealt_with", "=", "1" ] }
								],
	
								"actions":
								[
									{ "a": "Dialog", "p": [ "M5Q7_dial9" ] }
								]
							}
						]
					},

					{
						"sid": "2",
						"activeOnStart": true,
						"triggers":
						[
							{
								"repeat": true,

								"conditions":
								[
									{ "c": "SquadInteraction", "p": [ "death_knight_happy" ] }
								],
	
								"actions":
								[
									{ "a": "Dialog", "p": [ "M5Q7_dial7" ] }
								]
							}
						]
					},

					{
						"sid": "3a",
						"activeOnStart": true,

						"comment": "delete knight next day after the refusal",

						"triggers":
						[
							{
								"conditions":
								[
									{ "c": "Counter", "p": [ "death_knight_refused", "=", "1" ] }
								],
	
								"actions":
								[
									{ "a": "DeleteSquad", "p": [ "forest_monster", "1" ] },
									{ "a": "NextSubQuest", "p": [ "3b" ] }
								]
							}
						]
					},
					{
						"sid": "3b",
						"activeOnStart": false,

						"triggers":
						[							
							{
								"conditions":
								[
									{ "c": "StartTurn", "counter": 1 }
								],
	
								"actions":
								[
									{ "a": "DeleteSquad", "p": [ "death_knight", "1" ] },
									{ "a": "DeleteEntity", "p": [ "tree_block_for_body" ] },
									{ "a": "SpawnMapObject", "p": [ "campaign_M5_death_knight_body", "3597", "0", "death_knight_body"  ] }
								]
							}
						]
					}
				]
			}
	]
}