﻿{
	"counters":
	[
		{
			"sid": "Tutorial_C7_Win_Counter",
			"comment": "win_condition_counter"
		},

		{
			"sid": "Tutorial_C7_Counter",
			"comment": "Tutorial_C7_Counter"
		},

		{
			"sid": "Tutorial_C7_Counter_1",
			"comment": "Tutorial_C7_Counter"
		}
	],

	"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": "RevealFogOfWar", "p": [ "136", "30" ] },		
								{ "a": "Guide", "p": [ "tutorial_C7_start" ] },
								{ "a": "DisableAiHero", "p": [ "tutorial_hero_c1_12" ] },
								{ "a": "GiveItemHero", "p": [ "shadow_of_death_cursed_armor_artifact", "tutorial_hero_c1_12" ] },
								{ "a": "GiveItemHero", "p": [ "shadow_of_death_bone_boots_artifact", "tutorial_hero_c1_12" ] },
								{ "a": "GiveItemHero", "p": [ "shadow_of_death_second_shade_artifact", "tutorial_hero_c1_12" ] },
								{ "a": "GiveItemHero", "p": [ "shadow_of_death_dark_hatchet_artifact", "tutorial_hero_c1_12" ] },
								{ "a": "GiveItemHero", "p": [ "elixir_of_life_ring_of_life_artifact", "tutorial_hero_c1_12" ] },
								{ "a": "GiveItemHero", "p": [ "power_of_the_dragon_father_dragon_scale_shield_artifact", "tutorial_hero_c1_12" ] },

								{ "a": "GiveItemHero", "p": [ "angelic_alliance_sword_of_judgement_artifact", "tutorial_hero_c1_9" ] },
								{ "a": "GiveItemHero", "p": [ "angelic_alliance_celestial_sash_of_bliss_artifact", "tutorial_hero_c1_9" ] },
								{ "a": "GiveItemHero", "p": [ "angelic_alliance_lions_shield_of_courage_artifact", "tutorial_hero_c1_10" ] },
								{ "a": "GiveItemHero", "p": [ "angelic_alliance_armor_of_wonder_artifact", "tutorial_hero_c1_10" ] },
								{ "a": "GiveItemHero", "p": [ "angelic_alliance_helm_of_heavenly_enlightenment_artifact", "tutorial_hero_c1_9" ] },
								{ "a": "GiveItemHero", "p": [ "angelic_alliance_sandals_of_the_saint_artifact", "tutorial_hero_c1_11" ] }
							]
						}
					]
				}
			]
		},

		{
			"sid": "win_lose_conditions",
			"hidden": true,

			"comment": "conditions for losing, sometimes winning",

			"activeOnStart": true,
			"name": "1",
			"sharing": "Clone",

			"subQuests":
			[	
				{
					"sid": "lose_condition",
					"activeOnStart": true,

					"triggers":
					[
						{
							"conditionsLogic": "Or",

							"conditions":
							[
								{ "c": "StartTurn", "p": [ "1", "2" ] },
								{ "c": "HeroKill", "p": [ "tutorial_hero_c1_8" ] },
								{ "c": "HeroKill", "p": [ "tutorial_hero_c1_9" ] },
								{ "c": "HeroKill", "p": [ "tutorial_hero_c1_10" ] },
								{ "c": "HeroKill", "p": [ "tutorial_hero_c1_11" ] }
							],

							"actions":
							[
								{ "a": "GameLose" }
							]
						}
					]
				},
				{
					"sid": "win_condition_kill_checker",
					"activeOnStart": true,

					"triggers":
					[
						{
							"conditionsLogic": "Or",

							"conditions":
							[
								{ "c": "HeroKill", "p": [ "tutorial_hero_c1_12" ] }
							],

							"actions":
							[
								{ "a": "CounterPlus", "p": [ "Tutorial_C7_Counter_1", "1" ] },
								{ "a": "SetActiveVFX", "p": [ "vfx_1", "false" ] }
							]
						}
					]
				},
				{
					"sid": "win_condition_dialog",
					"activeOnStart": true,

					"triggers":
					[
						{
							"conditionsLogic": "And",

							"conditions":
							[
								{ "c": "Counter", "p": [ "Tutorial_C7_Counter_1", "=", "1" ] }
							],

							"actions":
							[
								{ "a": "Dialog", "p": [ "t_C7_dial_end" ] }
							]
						}
					]
				},
				{
					"sid": "win_condition",
					"activeOnStart": true,

					"triggers":
					[
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "Tutorial_C7_Win_Counter", "=", "1" ] }
							],

							"actions":
							[
								{ "a": "GameVictory" }
							]
						}
					]
				}
			]
		},

		{
			"sid": "Questlog_Main",
			"main": true,

			"comment": "Main Goal",

			"activeOnStart": true,
			"sharing": "Clone",

			"name": "Tutorial_Challenge_Mission_7_title",

			"subQuests":
			[	
				{
					"sid": "win_condition_m_1",
					"activeOnStart": true,
					
					"name": "t_M_Questlog_C7_description",

					"triggers":
					[
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "Tutorial_C7_Counter_1", "=", "1" ] }
							],

							"actions":
							[
								{ "a": "CurrentSubQuestDone" }
							]
						}
					]
				}
			]
		}
	]
}