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

    <!--Подождем пока будет выполнена цель с магазином-->
    <Action type="WaitGoalCompleted" goalId="Goal.Shop" />
    <Action type="Wait" duration="5" />
    <Action type="ShowSpeechModal" text="Script.08.Shop" character="Assistant"/>
  </Script>

  <!--Отменим сообщение о строительстве магазина, если юзер сам его построил.-->
  <Script>
    <Action type="WaitGoalCompleted" goalId="Goal.Shop" />
    <Action type="WaitGoalCompleted" goalId="Goal.TwoStoreys" />
    <Action type="ClearSwitch" switch="Switch.ShowShopMessage" />
  </Script>

  <!--Когда у игрока будет 3 двухэтажки попросим построить магаз.-->
  <Script>
    <Action type="SetSwitch" switch="Switch.ShowShopMessage" />
    <Action type="WaitGoalCompleted" goalId="Goal.TwoStoreys" />
    <Action type="Wait" untilSwitch="Switch.ShowShopMessage" />

    <Action type="SetGoalVisible" goalId="Goal.Shop" visible="true" />
    <Action type="ShowSpeechModal" text="Script.08.ConstructShop" character="Assistant"/>
  </Script>
</LevelScripts>