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

  <!--Когда игрок выполнит основные цели предложим скупить все дома.-->
  <Script>
    <Action type="WaitGoalCompleted" goalId="Goal.Cinema,Goal.Dealership,Goal.AmusementPark" />
    <Action type="ShowSpeechModal" text="Script.26.NewGoal1" character="RonaldBrem" leftSide="true" />
    <Action type="ShowSpeechModal" text="Script.26.NewGoal2" character="RonaldBrem" leftSide="true" />
    <Action type="SetGoalActive" active="true" goalId="Goal.NoRivals" />
    <Action type="SetBuildingVar" buildingId="Building1" var="IsDisplayedForSaleWithDiscount" value="true" />
    <Action type="SetBuildingVar" buildingId="Building2" var="IsDisplayedForSaleWithDiscount" value="true" />
    <Action type="SetBuildingVar" buildingId="Building3" var="IsDisplayedForSaleWithDiscount" value="true" />
    <Action type="SetBuildingVar" buildingId="Building4" var="IsDisplayedForSaleWithDiscount" value="true" />
    <Action type="SetBuildingVar" buildingId="Building5" var="IsDisplayedForSaleWithDiscount" value="true" />
    <Action type="SetBuildingVar" buildingId="Building6" var="IsDisplayedForSaleWithDiscount" value="true" />
    <Action type="SetBuildingVar" buildingId="Building7" var="IsDisplayedForSaleWithDiscount" value="true" />
    <Action type="SetBuildingVar" buildingId="Building8" var="IsDisplayedForSaleWithDiscount" value="true" />

    <Action type="WaitGoalCompleted" goalId="Goal.NoRivals" />
    <Action type="ShowSpeechModal" text="Script.26.GoalDone" character="RonaldBrem" leftSide="true" />
  </Script>

  <!--Отменим сообщение о мосте, если юзер его уже построил.-->
  <Script>
    <Action type="WaitGoalCompleted" goalId="Goal.Bridge" />
    <Action type="ClearSwitch" switch="Switch.ShowBridgeMessage" />
  </Script>

  <!--После первого построенного дома выведем мессадж про мост.-->
  <Script>
    <Action type="SetSwitch" switch="Switch.ShowBridgeMessage" />
    <Action type="WaitBuildingConstructed" />
    <Action type="Wait" duration="1" />
    <Action type="Wait" untilSwitch="Switch.ShowBridgeMessage" />

    <Action type="ShowSpeechModal" text="Script.26.Bridge" character="Assistant" />
  </Script>

</LevelScripts>