<?xml version="1.0" encoding="windows-1251"?>
<LevelScripts>
  <Script>
    <Action type="ShowSpeechModal" text="Script.18.Intro01" character="Assistant" />
    <Action type="ShowSpeechModal" text="Script.18.Intro02" character="Assistant" />

    <Action type="WaitBuildingConstructed" buildingKind="Mansion"/>
    <Action type="ShowSpeechModal" text="Script.18.GoodStart" character="Assistant" />
  </Script>

  <!--Отменим новую цель о дуплексе, если юзер уже построил такой.-->
  <Script>
    <Action type="WaitGoalCompleted" goalId="Goal.Duplex" />
    <Action type="ClearSwitch" switch="Switch.ShowDuplexGoal" />
  </Script>

  <Script>
    <Action type="SetSwitch" switch="Switch.ShowDuplexGoal" />
    <Action type="WaitGoalCompleted" goalId="Goal.Mansions" />
    <Action type="Wait" untilSwitch="Switch.ShowDuplexGoal" />

    <Action type="SetGoalVisible" goalId="Goal.Duplex" visible="true" />
    <Action type="ShowSpeechModal" text="Script.18.YouDoMagic" character="JeffNelson" leftSide="true" />
    <Action type="ShowSpeechModal" text="Script.18.BuildDuplex" character="JeffNelson" leftSide="true" />

    <Action type="WaitGoalCompleted" goalId="Goal.Duplex" />
    <Action type="ShowSpeechModal" text="Script.18.GreatHouse" character="JeffNelson" leftSide="true" />
  </Script>
  
</LevelScripts>