<?xml version="1.0" encoding="windows-1251"?>
<LevelScripts>
  <Script>
    <Action type="SetLevelVar" var="MaxBuildingUpgradeLevel" value="0" />
    <Action type="SetLevelVar" var="HousesGenerateBonuses" value="false" />
    <Action type="SetLevelVar" var="BuildingsCanBeSelled" value="false" />
    <Action type="SetLevelVar" var="BuildingsCanGetBroken" value="false" />
    <Action type="SetLevelVar" var="IncomeCollectionEnabled" value="false" />
    <Action type="SetLevelVar" var="BuildingsInfoEnabled" value="false" />

    <Action type="SetInputFilter" active="true" inputMask="InputMask.PopupsOnly" />

    <Action type="ShowSpeechModal" text="Script.01.Intro1" character="Assistant" mood="happy" pauseGame="false" />

    <Action type="SetLevelVar" var="SkipTutorialButtonVisible" value="true" />
    <Action type="ShowArrow" overHudItem="skipTutorial" untilSwitch="Switch.SkipTutorialExplained" />
    <Action type="ShowSpeechModal" text="Script.01.Intro2" character="Assistant" mood="happy" pauseGame="false" posY="550" />
    <Action type="SetSwitch" switch="Switch.SkipTutorialExplained" />

    <!--Укажем на панель с целями.-->
    <Action type="ShowArrow" overHudItem="goals" untilSwitch="Switch.Goals" />
    <Action type="ShowSpeechModal" text="Script.01.Goals" character="Assistant" pauseGame="false" posY="550" />
    <Action type="SetSwitch" switch="Switch.Goals" />

    <Action type="ShowArrow" point="780 705" rotation="180" untilSwitch="Switch.GoalsReviewed" />
    <Action type="ShowSpeechModal" text="Script.01.ConstructHouse1" character="Assistant" pauseGame="false" posY="550" />
    <Action type="SetSwitch" switch="Switch.GoalsReviewed" />

    <!--Просим игрока выбрать бунгало на панели с домами.-->
    <Action type="SetInputFilter" active="true" inputMask="InputMask.HudPageHouses" />
    <Action type="ShowArrow" overHudItem="TabBtn1" untilSwitch="Switch.BungalowPicked" />
    <Action type="ShowSpeechUntilSwitch" text="Script.01.ConstructHouse2" character="Assistant" switch="Switch.BungalowPicked" posY="550" />
    <Action type="WaitStartPlaceBuilding" buildingKind="Bungalow" />
    <Action type="SetSwitch" switch="Switch.BungalowPicked" />
    <Action type="WaitSpeechTextHidden" />

    <!--Просим игрока поставить бунгало на карту.-->
    <Action type="SetInputFilter" active="true" inputMask="InputMask.HudPageHouses+InputMask.Map" mouse2="false" mouse3="false" />
    <Action type="ShowArrow" point="430 370" rotation="270" untilSwitch="Switch.BungalowPlaced" />
    <Action type="SetLevelVar" var="FixedConstructionRectangle" value="10 10 3 3" />
    <Action type="ShowSpeechUntilSwitch" text="Script.01.ConstructHouse3" character="Assistant" switch="Switch.BungalowPlaced" posY="250" />
    <Action type="WaitBuildingPlaced" buildingKind="Bungalow"/>
    <Action type="SetSwitch" switch="Switch.BungalowPlaced" />
    <Action type="SetLevelVar" var="FixedConstructionRectangle" value="0 0 0 0" />

    <!--Ждём пока бунгало достроится.-->
    <Action type="SetInputFilter" active="true" inputMask="InputMask.PopupsOnly" />
    <Action type="ShowSpeechUntilSwitch" text="Script.01.ConstructHouse4" character="Assistant" switch="Switch.BungalowConstructed" posY="250" />
    <Action type="WaitBuildingConstructed" buildingKind="Bungalow" setBuildingId="FirstBungalow"/>
    <Action type="SetSwitch" switch="Switch.BungalowConstructed" />

    <!--Попросим навести мышу на бунгало.-->
    <Action type="SetInputFilter" active="true" inputMask="InputMask.MapBuildingsOwned" />
    <Action type="ShowArrow" point="410 410" rotation="315" untilSwitch="Switch.HouseSelected" />
    <Action type="ShowSpeechUntilSwitch" text="Script.01.Info1" character="Assistant" mood="happy" switch="Switch.HouseSelected" posY="250" />
    <Action type="SetLevelVar" var="BuildingsInfoEnabled" value="true" />
    <Action type="WaitBuildingInfoShown" buildingId="FirstBungalow" />
    <Action type="SetBuildingVar" buildingId="FirstBungalow" var="IsInfoFixedVisible" value ="true" />
    <Action type="SetSwitch" switch="Switch.HouseSelected" />

    <Action type="ShowArrow" point="633 300" rotation="180" untilSwitch="Switch.InfoExplained" />
    <Action type="ShowSpeechModal" text="Script.01.Info2" character="Assistant" posY="250"/>
    <Action type="SetBuildingVar" buildingId="FirstBungalow" var="IsInfoFixedVisible" value ="false" />
    <Action type="SetSwitch" switch="Switch.InfoExplained" />

    <Action type="CancelUserActions" />

    <!--Индикатор дохода и счет в банке.-->
    <Action type="SetLevelVar" var="IncomeCollectionEnabled" value="true" />
    <Action type="ShowArrow" overHudItem="Income" untilSwitch="Switch.IncomeIndicator" />
    <Action type="ShowSpeechModal" text="Script.01.IncomeIndicator" character="Assistant" pauseGame="false" posY="250" />
    <Action type="SetSwitch" switch="Switch.IncomeIndicator" />

    <Action type="ShowArrow" overHudItem="BankAccount" untilSwitch="Switch.BankAccount" />
    <Action type="ShowSpeechModal" text="Script.01.BankAccount" character="Assistant" pauseGame="false" posY="250" />
    <Action type="SetSwitch" switch="Switch.BankAccount" />

    <!--Чужие дома.-->
    <Action type="ShowArrow" overBuildingId="Rival1" untilSwitch="Switch.RivalHouses" />
    <Action type="ShowArrow" overBuildingId="Rival2" untilSwitch="Switch.RivalHouses" />
    <Action type="ShowArrow" overBuildingId="Rival3" untilSwitch="Switch.RivalHouses" />
    <Action type="ShowSpeechModal" text="Script.01.RivalHouses" character="Assistant" pauseGame="false" posY="250" />
    <Action type="SetSwitch" switch="Switch.RivalHouses" />

    <!--Посмотрим еще раз на цели.-->
    <Action type="ShowArrow" point="820 720" rotation="180" untilSwitch="Switch.GoalsReview" />
    <Action type="ShowSpeechModal" text="Script.01.ConstructHouse6" character="Assistant" pauseGame="false" posY="250" />
    <Action type="SetSwitch" switch="Switch.GoalsReview" />

    <!--Просим игрока построить еще бунгало.-->
    <Action type="SetInputFilter" active="true" inputMask="InputMask.HudPageHouses" />
    <Action type="ShowArrow" overHudItem="TabBtn1" untilSwitch="Switch.Bungalow2Picked" />
    <Action type="ShowSpeechUntilSwitch" text="Script.01.ConstructHouse7" character="Assistant" switch="Switch.Bungalow2Placed" posY="250" />
    <Action type="WaitStartPlaceBuilding" buildingKind="Bungalow" />
    <Action type="SetSwitch" switch="Switch.Bungalow2Picked" />
    <Action type="SetInputFilter" active="true" inputMask="InputMask.Map+InputMask.HudPageHouses" mouse2="false" mouse3="false" />
    <Action type="WaitBuildingPlaced" buildingKind="Bungalow" />
    <Action type="SetSwitch" switch="Switch.Bungalow2Placed" />
    <Action type="SetInputFilter" active="true" inputMask="InputMask.Map" />

    <Action type="WaitBuildingConstructed" buildingKind="Bungalow" />
    <Action type="ShowSpeechModal" text="Script.01.GoalDone" character="Assistant" mood="happy" />
  </Script>

  <!--Ждём когда игрок ляпнет 2 бунгало на карту и запрещаем ему что-либо делать-->
  <Script>
    <Action type="Wait" untilSwitch="Switch.StartWaitTwoBungalowsPlaced" />
    <Action type="WaitBuildingPlaced" buildingKind="Bungalow" />
    <Action type="WaitBuildingPlaced" buildingKind="Bungalow" />
    <Action type="SetInputFilter" active="true" inputMask="InputMask.PopupsOnly" />
  </Script>
</LevelScripts>