<?xml version="1.0"?>
<Level>
	<InitWorkersLimit Value="5" />
	<IsClockOn Value="true" />

	<!-- персонажи-->
	<Player Name="Player1" /> <!--игрок-->
	<Workers Name="Worker1" Value="2" /> <!--рабочие-->
	<!--персонажы и рабочие-->
	<InitPersonages>
		<CharacterTroll1 Value="0" />
		<CharacterWizard1 Value="0" />
	</InitPersonages>
	<InitResources>
		<Materials Value="0" />
		<Gold Value="5" />
		<Stone Value="20" />
		<Food Value="10" />
	</InitResources>

	<CollectedItem Name="QuestExplosives" Value="2" Time="1000" >
		<Item Name="QuestPotion" Value="1" />
		<Item Name="QuestTorch" Value="1" />
		<Item Name="QuestMechanism" Value="1" />
	</CollectedItem>

	<Objectives>
		<Stage Time="160" TimeHeroic="150" WithoutTime="true"  Name="Stage1" BuildingsGroup="SceneGroup1">
			<FirstPhantomObjectivesGroup Tutorial="ObjTutorial1.xml" />
			<ObjectivesGroup> <!--Спасаем тролля-->
				<Objective Type="TypedHistoryActionsCount" Action="Build" PlaceNames="QuestMechanism" Value="3" Name="obj_Mechanism" InfoStr="%L13_Goals_1_1%" />
				<Objective Type="TypedHistoryActionsCount" Action="Build" PlaceNames="QuestLift" Value="1" Name="obj_Lift" InfoStr="%L13_Goals_1_2%"/>
				<Objective CompleteTutorial="QuestTutorial4.xml" Type="TypedHistoryActionsCount" Action="Build" PlaceNames="QuestTroll" Value="1" Name="obj_Troll" InfoStr="%L13_Goals_1_3%" />
			</ObjectivesGroup>

			<ObjectivesGroup> <!--Спасаем мага-->
				<Objective Type="TypedHistoryActionsCount" Action="Build" PlaceNames="QuestMagician" Value="1" Name="obj_Magician" InfoStr="%L13_Goals_1_4%"  />
				<Objective AppearGroup="Group41" Type="TypedHistoryActionsCount" Action="Repair" BuildingTypes="House1" PlaceNames="Place11" Value="1" Name="obj_House" InfoStr="%L13_Goals_1_6%" />
				<Objective Type="TypedHistoryActionsCount" Action="Build" PlaceNames="QuestGate" Value="1" Name="obj_Gate" InfoStr="%L13_Goals_1_8%" />
			</ObjectivesGroup>
		</Stage>

		<Stage Time="270" TimeHeroic="230" Name="Stage2" BuildingsGroup="SceneGroup2">
			<CraftGnome Name="CraftGnome1" />
			<InitResources>
				<Food Value="100" />
			</InitResources>
			<ObjectivesGroup Tutorial="QuestTutorial2.xml"> <!--Чиним дома-->
				<Objective Type="TypedHistoryActionsCount" Action="Repair" BuildingTypes="Hut1;Hut2" PlaceNames="Place4;Place5" Value="2"  Name="obj_Hut" InfoStr="%L13_Goals_2_1%" />
				<Objective AppearGroup="Group42" Type="TypedHistoryActionsCount" Action="Repair" PlaceNames="Place6" BuildingTypes="StoneQuarry1" Value="1" Show="obj_House2"  Name="obj_StoneQuarry" InfoStr="%L13_Goals_2_2%" />
				<Objective Type="TypedHistoryActionsCount" Action="Repair" PlaceNames="Place7" Value="1" Hidden="true" Name="obj_House2" InfoStr="%L13_Goals_2_3%" />
				<Objective Type="TypedHistoryActionsCount" Action="Build" PlaceNames="Place2" BuildingTypes="MajorOffice3" Value="1" Name="obj_MajorOffice" InfoStr="%L13_Goals_2_4%" />
				<Objective ObjectsToHide="QuestOldMan" AppearGroup="Group91" Type="TypedHistoryActionsCount" Action="Repair" PlaceNames="Place5" Value="1" Hidden="true" />
				<Objective ObjectsToHide="QuestOldMan1" AppearGroup="Group92" Type="TypedHistoryActionsCount" Action="Repair" PlaceNames="Place4" Value="1" Hidden="true" />
				<Objective ObjectsToHide="QuestOldMan2" AppearGroup="Group93" Type="TypedHistoryActionsCount" Action="Repair" PlaceNames="Place7" Value="1" Hidden="true" />
			</ObjectivesGroup>
			<ObjectivesGroup CollectedItems="QuestExplosives">
				<Objective Type="CraftItem" CollectedName="QuestExplosives" Value="1" Name="obj_Explosives" InfoStr="%L13_Goals_2_5%" />
				<Objective Type="TypedHistoryActionsCount" Action="Build" PlaceNames="QuestBlockWorker1;QuestBlockWorker2" Value="2" Name="obj_Block" InfoStr="%L13_Goals_2_6%" />
			</ObjectivesGroup>

		</Stage>
	</Objectives>
	<RandomEvents>
		<Event Type="OneTimeBrokenBuildingRequest" PlaceNames="Place4" TimeRange="0;0" />
		<Event Type="OneTimeBrokenBuildingRequest" PlaceNames="Place11" TimeRange="0;0" />
		<Event Type="OneTimeFireBuildingRequest" PlaceNames="Place7" TimeRange="0;0" />
		<Event Type="OneTimeBrokenBuildingRequest" PlaceNames="Place5" TimeRange="0;0" />
		<Event Type="OneTimeBrokenBuildingRequest" PlaceNames="Place6" TimeRange="0;0" />
	</RandomEvents>

</Level>
