<?xml version="1.0" encoding="windows-1251"?>
<LevelScripts>
  <Script>
    <Action type="ShowSpeechModal" text="Script.09.Intro1" character="Assistant" posY="550" />
    <Action type="ShowSpeechModal" text="Script.09.Intro2" character="Assistant" posY="550" />

    <!--Просим выбрать закладку со ЗДАНИЯМИ-->
    <Action type="SetInputFilter" active="true" inputMask="InputMask.HudPageBuildings" />
    <Action type="ShowArrow" overHudItem="BuildingsTab" untilSwitch="Switch.BuildingsTabActivated" />
    <Action type="ShowSpeechUntilSwitch" text="Script.09.ConstructWorkshop1" character="Assistant" switch="Switch.BuildingsTabActivated" posY="550" />
    <Action type="WaitBuildingsTabActivated" />
    <Action type="SetSwitch" switch="Switch.BuildingsTabActivated" />

    <!--Просим нажать кнопку МАСТЕРСКАЯ-->
    <Action type="SetInputFilter" active="true" inputMask="InputMask.HudButtonWorkshop" />
    <Action type="ShowArrow" overHudItem="TabBtn2" untilSwitch="Switch.WorkshopPlaceStarted" />
    <Action type="ShowSpeechUntilSwitch" text="Script.09.ConstructWorkshop2" character="Assistant" switch="Switch.WorkshopPlaceStarted" posY="550" />
    <Action type="WaitStartPlaceBuilding" building="Workshop" />
    <Action type="SetSwitch" switch="Switch.WorkshopPlaceStarted" />

    <!--Предлагаем построить мастерскую-->
    <Action type="SetInputFilter" active="true" inputMask="InputMask.HudButtonWorkshop+InputMask.Map" mouse2="false" mouse3="false" />
    <Action type="ShowSpeechUntilSwitch" text="Script.09.ConstructWorkshop3" character="Assistant" switch="Switch.WorkshopPlaced" posY="550" />
    <Action type="WaitBuildingPlaced" buildingKind="Workshop"/>
    <Action type="SetSwitch" switch="Switch.WorkshopPlaced" />

    <Action type="SetInputFilter" active="false" />

    <Action type="WaitGoalCompleted" goalId="Goal.Workshop" />
    <Action type="Wait" duration="2" />
    <Action type="ShowSpeechModal" text="Script.09.GoalDone1" character="Assistant" posY="550" pauseGame="false" />

    <Action type="ShowArrow" overHudItem="Population" untilSwitch="Switch.PopulationExplained" />
    <Action type="ShowSpeechModal" text="Script.09.Population1" character="Assistant"/>
    <Action type="ShowSpeechModal" text="Script.09.Population2" character="Assistant"/>
    <Action type="SetSwitch" switch="Switch.PopulationExplained" />




    <zzzAction type="Wait" duration="10" />
    <Action type="WaitBuildingPlaced" />

    <Action type="ShowSpeechModal" text="Script.09.ConstructTwoStorey1" character="KevinMoore" mood="happy" />
    <Action type="SetGoalActive" active="true" goalId="Goal.TwoStorey" />
    <Action type="ShowSpeechModal" text="Script.09.ConstructTwoStorey2" character="KevinMoore" mood="happy" />

    <Action type="WaitGoalCompleted" goalId="Goal.TwoStorey" />
    <Action type="ShowSpeechModal" text="Script.09.GoalDone2" character="KevinMoore" mood="happy" />
  </Script>
</LevelScripts>