<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Quest SName="menu_map" RName="menu_map" LName="menu_map">
  <Tasks>
    <Task Type="REQUEST_TASKS" NameOfRequest="MapEnter" />
    <Task Type="REQUEST_TASKS" NameOfRequest="tutorial" />
    <Task Type="REQUEST_TASKS" NameOfRequest="loc_on_egypt" />
    <Task Type="REQUEST_TASKS" NameOfRequest="loc_on_france" />
    <Task Type="REQUEST_TASKS" NameOfRequest="loc_on_antarctica" />
    <Task Type="REQUEST_TASKS" NameOfRequest="loc_on_samerica" />
    <Task Type="REQUEST_TASKS" NameOfRequest="loc_on_atlantida" />
    <Task Type="REQUEST_TASKS" NameOfRequest="StopQuestFadeMusic" />
    <Task Type="SET_SOUND" Mode="FadeOut" Name="m_usa.ogg" Time="5"/>
    <Task Type="SET_SOUND" Mode="FadeIn" Name="m_main.ogg" Time="5"/>

    <Task Type="SET_SOUND" Mode="Replay" Name="ship_bell.ogg" />
    <!--
    <Task Type="ADD_MARK" Param1="loc_on" Param2="france" Param3="1" />
    <Task Type="ADD_MARK" Param1="loc_on" Param2="atlantida" Param3="1" />
    <Task Type="ADD_MARK" Param1="loc_on" Param2="samerica" Param3="1" />
    <Task Type="ADD_MARK" Param1="loc_on" Param2="egypt" Param3="1" />
    <Task Type="ADD_MARK" Param1="loc_on" Param2="antarctica" Param3="1" />
    --> 
  </Tasks>
  <Decorations>
    <Decoration>
      <Id Name="view" Order="1" SubId="1" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="0" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="0" />
      </MoveY>
      <AnimMachine BeginStep="background" EndStep="background">
        <Steps>
          <Step Key="default" Name="background" Delay="1000" NameStep="background" />
        </Steps>
      </AnimMachine>
    </Decoration>
    <!--Облака-->
    <Decoration>
      <Id Name="cloud1" Order="1" SubId="1000" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <Enable Value="1"/>
      <MoveX>
        <Type Value="LINEAR" />
        <PosBegin Value="1025" />
        <Delay Value="5" />
        <IsRandom Value="1" />
        <IsResetCycle Value="1" />
        <Params A="0" V="-1350"/>
        <TimeFunction Timer="0.6" Loop="1" MaxCount="-1" K="0.006" B="0" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="194" />
      </MoveY>
      <AnimMachine BeginStep="cloud1" EndStep="cloud1">
        <Steps>
          <Step Key="default" Name="cloud_1" Delay="100" NameStep="cloud1" />
        </Steps>
      </AnimMachine>
    </Decoration>
    <Decoration>
      <Id Name="cloud2" Order="1" SubId="1000" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <Enable Value="1"/>
      <MoveX>
        <Type Value="LINEAR" />
        <PosBegin Value="1025" />
        <Delay Value="4" />
        <IsRandom Value="1" />
        <IsResetCycle Value="1" />
        <Params A="0" V="-1350"/>
        <TimeFunction Timer="0.4" Loop="1" MaxCount="-1" K="0.005" B="0" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="423" />
      </MoveY>
      <AnimMachine BeginStep="cloud2" EndStep="cloud2">
        <Steps>
          <Step Key="default" Name="cloud_2" Delay="100" NameStep="cloud2" />
        </Steps>
      </AnimMachine>
    </Decoration>
    <Decoration>
      <Id Name="cloud3" Order="1" SubId="1000" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <Enable Value="1"/>
      <MoveX>
        <Type Value="LINEAR" />
        <PosBegin Value="1025" />
        <Delay Value="9" />
        <IsRandom Value="1" />
        <IsResetCycle Value="1" />
        <Params A="0" V="-1350"/>
        <TimeFunction Timer="0.3" Loop="1" MaxCount="-1" K="0.011" B="0" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="259" />
      </MoveY>
      <AnimMachine BeginStep="cloud3" EndStep="cloud3">
        <Steps>
          <Step Key="default" Name="cloud_3" Delay="100" NameStep="cloud3" />
        </Steps>
      </AnimMachine>
    </Decoration>
    <Decoration>
      <Id Name="cloud5" Order="1" SubId="1000" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <Enable Value="0"/>
      <MoveX>
        <Type Value="LINEAR" />
        <PosBegin Value="1025" />
        <Delay Value="8" />
        <IsRandom Value="1" />
        <IsResetCycle Value="1" />
        <Params A="0" V="-1350"/>
        <TimeFunction Timer="0.5" Loop="1" MaxCount="-1" K="0.01" B="0" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="78" />
      </MoveY>
      <AnimMachine BeginStep="cloud5" EndStep="cloud5">
        <Steps>
          <Step Key="default" Name="cloud_5" Delay="100" NameStep="cloud5" />
        </Steps>
      </AnimMachine>
    </Decoration>
    <Decoration>
      <Id Name="cloud6" Order="1" SubId="1000" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <Enable Value="1"/>
      <MoveX>
        <Type Value="LINEAR" />
        <PosBegin Value="1025" />
        <Delay Value="10" />
        <IsRandom Value="1" />
        <IsResetCycle Value="1" />
        <Params A="0" V="-1450"/>
        <TimeFunction Timer="0.2" Loop="1" MaxCount="-1" K="0.012" B="0" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="150" />
      </MoveY>
      <AnimMachine BeginStep="cloud6" EndStep="cloud6">
        <Steps>
          <Step Key="default" Name="cloud_6" Delay="100" NameStep="cloud6" />
        </Steps>
      </AnimMachine>
    </Decoration>
    <Decoration>
      <Id Name="cloud7" Order="1" SubId="1000" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <Enable Value="1"/>
      <MoveX>
        <Type Value="LINEAR" />
        <PosBegin Value="1025" />
        <Delay Value="10" />
        <IsRandom Value="1" />
        <IsResetCycle Value="1" />
        <Params A="0" V="-1426"/>
        <TimeFunction Timer="0.8" Loop="1" MaxCount="-1" K="0.014" B="0" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="755" />
      </MoveY>
      <AnimMachine BeginStep="cloud7" EndStep="cloud7">
        <Steps>
          <Step Key="default" Name="cloud_7" Delay="100" NameStep="cloud7" />
        </Steps>
      </AnimMachine>
    </Decoration>
    <Decoration>
      <Id Name="cloud8" Order="1" SubId="1000" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <Enable Value="1"/>
      <MoveX>
        <Type Value="LINEAR" />
        <PosBegin Value="1025" />
        <Delay Value="7" />
        <IsRandom Value="1" />
        <IsResetCycle Value="1" />
        <Params A="0" V="-1350"/>
        <TimeFunction Timer="0.8" Loop="1" MaxCount="-1" K="0.009" B="0" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="308" />
      </MoveY>
      <AnimMachine BeginStep="cloud8" EndStep="cloud8">
        <Steps>
          <Step Key="default" Name="cloud_8" Delay="100" NameStep="cloud8" />
        </Steps>
      </AnimMachine>
    </Decoration>    
  </Decorations>
  
  <RequestTasks>
    <RequestTask Name="tutorial_next">
      <Condition>
        <Var Key="tutorial" Name="map" Value="2" Mode="Less"/>
      </Condition>
      <Tasks>
        <Task Type="ADD_VALUE" Key="tutorial" Name="map" Operator="+" Value="1" />
        <Task Type="REQUEST_TASKS" NameOfRequest="tutorial" />
      </Tasks>
    </RequestTask>

    <RequestTask Name="tutorial">
      <Condition>
        <Var Key="tutorial" Name="map" Value="0" />
      </Condition>
      <Tasks>
        <Task Type="GUI" Mode="Enable" GUI="Special" Name="astep_0" Value="0" Instant="1"/>
        <Task Type="GUI" Mode="Enable" GUI="Special" Name="cstep_0" Value="0" Instant="1"/>
        <Task Type="TOPDESCRIPTION" Key="tutorial_map" Name="try_egypt"/>
        <Task Type="SET_ANIMATIONTOOL" ResName="interface_quest_res" AKey="default" AName="arrow"       CtrlName="astep_1"      RX="948" RY="185" SX="800" SY="150" SW="90" SH="90" RequestName="" Angle="1.57" IsFlickr="0"/>
        <Task Type="SET_ANIMATIONTOOL" ResName="interface_quest_res" AKey="default" AName="mouse_left" CtrlName="mstep_1"       RX="765" RY="190" SX="800" SY="150" SW="90" SH="90" RequestName="tutorial_next" Angle="0" IsFlickr="0"/>
      </Tasks>
    </RequestTask>
    <RequestTask Name="tutorial">
      <Condition>
        <Var Key="tutorial" Name="map" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="GUI" Mode="Visible" GUI="Special" Name="astep_1" Value="0" Instant="0" Loop="500"/>
        <Task Type="GUI" Mode="Visible" GUI="Special" Name="mstep_1" Value="0" Instant="0" Loop="500"/>

        <Task Type="GUI" Mode="Enable" GUI="Special" Name="astep_1" Value="0" Instant="1"/>
        <Task Type="GUI" Mode="Enable" GUI="Special" Name="mstep_1" Value="0" Instant="1"/>
      </Tasks>
    </RequestTask>

    <RequestTask Name="loc_on_egypt">
      <Condition>
        <Var Key="loc_on" Name="egypt" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="GUI" Mode="Visible" GUI="Scene" Name="africa" Value="1" Instant="1"/>
        <Task Type="GUI" Mode="Enable" GUI="Scene" Name="africa" Value="1" Instant="1"/>
        <Task Type="GUI" Mode="Visible" GUI="Default" Name="bonus_africa" Value="1" Instant="1"/>
        <Task Type="GUI" Mode="Enable" GUI="Default" Name="bonus_africa" Value="1" Instant="1"/>
      </Tasks>
    </RequestTask>

    <RequestTask Name="loc_on_france">
      <Condition>
        <Var Key="loc_on" Name="france" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="GUI" Mode="Visible" GUI="Scene" Name="europe" Value="1" Instant="1"/>
        <Task Type="GUI" Mode="Enable" GUI="Scene" Name="europe" Value="1" Instant="1"/>
        <Task Type="GUI" Mode="Visible" GUI="Default" Name="bonus_europe" Value="1" Instant="1"/>
        <Task Type="GUI" Mode="Enable" GUI="Default" Name="bonus_europe" Value="1" Instant="1"/>
      </Tasks>
    </RequestTask>

    <RequestTask Name="loc_on_antarctica">
      <Condition>
        <Var Key="loc_on" Name="antarctica" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="GUI" Mode="Visible" GUI="Scene" Name="antarctic" Value="1" Instant="1"/>
        <Task Type="GUI" Mode="Enable" GUI="Scene" Name="antarctic" Value="1" Instant="1"/>
        <Task Type="GUI" Mode="Visible" GUI="Default" Name="bonus_antarctic" Value="1" Instant="1"/>
        <Task Type="GUI" Mode="Enable" GUI="Default" Name="bonus_antarctic" Value="1" Instant="1"/>
      </Tasks>
    </RequestTask>
    <RequestTask Name="loc_on_samerica">
      <Condition>
        <Var Key="loc_on" Name="samerica" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="GUI" Mode="Visible" GUI="Scene" Name="samerica" Value="1" Instant="1"/>
        <Task Type="GUI" Mode="Enable" GUI="Scene" Name="samerica" Value="1" Instant="1"/>
        <Task Type="GUI" Mode="Visible" GUI="Default" Name="bonus_samerica" Value="1" Instant="1"/>
        <Task Type="GUI" Mode="Enable" GUI="Default" Name="bonus_samerica" Value="1" Instant="1"/>
      </Tasks>
    </RequestTask>
    <RequestTask Name="loc_on_atlantida">
      <Condition>
        <Var Key="loc_on" Name="atlantida" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="GUI" Mode="Visible" GUI="Scene" Name="atlantis" Value="1" Instant="1"/>
        <Task Type="GUI" Mode="Enable" GUI="Scene" Name="atlantis" Value="1" Instant="1"/>
        <Task Type="GUI" Mode="Visible" GUI="Default" Name="bonus_atlantis" Value="1" Instant="1"/>
        <Task Type="GUI" Mode="Enable" GUI="Default" Name="bonus_atlantis" Value="1" Instant="1"/>
      </Tasks>
    </RequestTask>
  </RequestTasks>
</Quest>
