﻿{
	"counters":
	[
		{
			"sid": "Tutorial_C1_Win_Counter",
			"comment": "win_condition_counter"
		},

		{
			"sid": "Tutorial_C1_Counter",
			"comment": "Tutorial_C1_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", "10" ] },		
								{ "a": "Guide", "p": [ "tutorial_C1_start" ] }
							]
						}
					]
				}
			]
		},

		{
			"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_1" ] },
								{ "c": "HeroKill", "p": [ "tutorial_hero_c1_2" ] }
							],

							"actions":
							[
								{ "a": "GameLose" }
							]
						}
					]
				},
				{
					"sid": "win_condition",
					"activeOnStart": true,

					"triggers":
					[
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "Tutorial_C1_Win_Counter", "=", "1" ] }
							],

							"actions":
							[
								{ "a": "GameVictory" }
							]
						}
					]
				}
			]
		},

		{
			"sid": "Questlog_Main",
			"main": true,

			"comment": "Main Goal",

			"activeOnStart": true,
			"sharing": "Clone",

			"name": "Tutorial_Challenge_Mission_1_title",

			"subQuests":
			[	
				{
					"sid": "win_condition_m_1",
					"activeOnStart": true,
					
					"name": "t_M_Questlog_C1_description",

					"triggers":
					[
						{
							"conditions":
							[
								{ "c": "Counter", "p": [ "Tutorial_C1_Counter", "=", "1" ] }
							],

							"actions":
							[
								{ "a": "CurrentSubQuestDone" }
							]
						}
					]
				}
			]
		}
	]
}