<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Quest SName="ritualhall" RName="ritualhall" LName="ritualhall">

  <Tasks>
    <Task Type="REQUEST_TASKS" NameOfRequest="QuestEnter" />
    <Task Type="ADD_MARK" Key="Global" Name="LastLocation" Value="Atlantic" Mode="String"/>
    <Task Type="ADD_MARK" Key="Global" Name="LastQuest" Value="ritualhall" Mode="String"/>
    <Task Type="ADD_MARK" Key="LastQuest" Name="Atlantic" Value="ritualhall" Mode="String"/>
    <!--Прелоад-->
    <Task Type="SYSTEM" Mode="Resource" Command="LoadSmooth" Name="rotates"/>
    <Task Type="SYSTEM" Mode="Resource" Command="LoadSmooth" Name="comics_end"/>
    <!--Music update-->
    <Task Type="REQUEST_TASKS" NameOfRequest="FadeOutMusic" />
    <Task Type="SET_SOUND" Mode="FadeIn" Name="m_garden.ogg" Time="5"/>
<!--    <Task Type="SET_SOUND" Mode="DelRepeatTag" Tag="main" />-->
    
    
    
    
<!--        <Task Type="SET_SOUND" Mode="DelRepeatTag"  Tag="ritualhall_capsule"/>-->
            <Task Type="REQUEST_TASKS" Param1="sound_capsule_request" />
            <Task Type="REQUEST_TASKS" Param1="sound_laser_request" />
            <Task Type="REQUEST_TASKS" Param1="sound_water_request" />

      <Task Type="REQUEST_TASKS" NameOfRequest="rotates_game_status" />
      <Task Type="REQUEST_TASKS" Param1="capsule_disable" />
      <Task Type="REQUEST_TASKS" Param1="tree_status" />

    <Task Type="REQUEST_TASKS" Param1="help_sinchronization" />

  </Tasks>


  <Decorations>
  
<!--    <Decoration>
     <Id Name="background0" Order="1" SubId="10" />
      <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="background0" EndStep="background0">
        <Steps>
          <Step Key="default" Name="background0" Delay="100" NameStep="background0" />
        </Steps>
      </AnimMachine>
    </Decoration>-->
  
    <Decoration>
     <Id Name="background" Order="1" SubId="20" />
      <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="100" NameStep="background" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="idol_eyes_open" Order="1" SubId="30" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="89" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="152" />
      </MoveY>
      <AnimMachine BeginStep="idol_eyes_open" EndStep="idol_eyes_open">
        <Steps>
          <Step Key="default" Name="idol_eyes_open" Delay="100" NameStep="idol_eyes_open" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
<!--    <Decoration>
     <Id Name="laser_part" Order="1" SubId="40" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="582" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="30" />
      </MoveY>
      <AnimMachine BeginStep="laser_part" EndStep="laser_part">
        <Steps>
          <Step Key="default" Name="laser_part" Delay="100" NameStep="laser_part" />
        </Steps>
      </AnimMachine>
    </Decoration>-->
  
    <Decoration>
     <Id Name="laser_light" Order="1" SubId="50" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="460" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="0" />
      </MoveY>
      <AnimMachine BeginStep="laser_light" EndStep="laser_light">
        <Steps>
          <Step Key="default" Name="laser_light" Delay="100" NameStep="laser_light" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="laser_beam" Order="1" SubId="60" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="523" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="42" />
      </MoveY>
      <AnimMachine BeginStep="laser_beam" EndStep="laser_beam">
        <Steps>
          <Step Key="default" Name="laser_beam" Delay="100" NameStep="laser_beam" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="mermaid_harp" Order="1" SubId="70" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="697" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="109" />
      </MoveY>
      <AnimMachine BeginStep="mermaid_harp" EndStep="mermaid_harp">
        <Steps>
          <Step Key="default" Name="mermaid_harp" Delay="100" NameStep="mermaid_harp" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="mermaid_water_s" Order="1" SubId="80" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="757" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="39" />
      </MoveY>
      <AnimMachine BeginStep="mermaid_water_s" EndStep="mermaid_water_s">
        <Steps>
          <Step Key="default" Name="mermaid_water_s" Delay="100" NameStep="mermaid_water_s" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="mermaid_water" Order="1" SubId="90" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="750" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="30" />
      </MoveY>
      <AnimMachine BeginStep="mermaid_water" EndStep="mermaid_water">
        <Steps>
          <Step Key="default" Name="mermaid_water" Delay="100" NameStep="mermaid_water" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="mermaid_water_sprays" Order="1" SubId="92" />
      <Visible Value="1" />
      <Enable Value="1" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="735" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="37" />
      </MoveY>
      <AnimMachine BeginStep="mermaid_water_sprays" EndStep="mermaid_water_sprays">
        <Steps>
          <Step Key="default" Name="mermaid_water_sprays" Delay="0.01" NameStep="mermaid_water_sprays" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="idol_lotos_big" Order="1" SubId="110" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="90" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="239" />
      </MoveY>
      <AnimMachine BeginStep="idol_lotos_big" EndStep="idol_lotos_big">
        <Steps>
          <Step Key="default" Name="idol_lotos_big" Delay="100" NameStep="idol_lotos_big" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="idol_lotos_lit" Order="1" SubId="120" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="97" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="259" />
      </MoveY>
      <AnimMachine BeginStep="idol_lotos_lit" EndStep="idol_lotos_lit">
        <Steps>
          <Step Key="default" Name="idol_lotos_lit" Delay="100" NameStep="idol_lotos_lit" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="energymeter_energy3" Order="1" SubId="130" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="288" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="78" />
      </MoveY>
      <AnimMachine BeginStep="energymeter_energy3" EndStep="energymeter_energy3">
        <Steps>
          <Step Key="default" Name="energymeter_energy3" Delay="100" NameStep="energymeter_energy3" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
<!--    <Decoration>
     <Id Name="energymeter_energy2" Order="1" SubId="140" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="288" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="78" />
      </MoveY>
      <AnimMachine BeginStep="energymeter_energy2" EndStep="energymeter_energy2">
        <Steps>
          <Step Key="default" Name="energymeter_energy2" Delay="100" NameStep="energymeter_energy2" />
        </Steps>
      </AnimMachine>
    </Decoration>-->
  
    <Decoration>
     <Id Name="energymeter_light" Order="1" SubId="150" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="249" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="66" />
      </MoveY>
      <AnimMachine BeginStep="energymeter_light" EndStep="energymeter_light">
        <Steps>
          <Step Key="default" Name="energymeter_light" Delay="100" NameStep="energymeter_light" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="lamps_blink" Order="1" SubId="960" />
      <Visible Value="1" />
      <Enable Value="1" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="887" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="99" />
      </MoveY>
      
      <ColorA>
        <PosBegin Value="0" />
        <Type Value="LINEAR" />
        <Delay Value="0" />
        <IsRandom Value="0" />
        <IsResetCycle Value="0" />
        <Params A="0" V="0.9" />
        <TimeFunction Timer="0" Loop="0.1" MaxCount="-1" K="1" B="0" />
      </ColorA>
      <ColorH>
        <Type Value="STATIC" />
        <PosBegin Value="0.17" />
      </ColorH>
      <ColorS>
        <Type Value="STATIC" />
        <PosBegin Value="0.2"  />
      </ColorS>
      <ColorV>
        <Type Value="STATIC" />
        <PosBegin Value="0.3" />
      </ColorV>
      
      <AnimMachine BeginStep="lamps_blink" EndStep="lamps_blink">
        <Steps>
          <Step Key="default" Name="lamps_blink" Delay="0.1" NameStep="lamps_blink" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="tree_small" Order="1" SubId="160" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="374" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="192" />
      </MoveY>
      <AnimMachine BeginStep="tree_small" EndStep="tree_small">
        <Steps>
          <Step Key="default" Name="tree_small" Delay="100" NameStep="tree_small" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="tree_big_s" Order="1" SubId="170" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="352" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="224" />
      </MoveY>
      <AnimMachine BeginStep="tree_big_s" EndStep="tree_big_s">
        <Steps>
          <Step Key="default" Name="tree_big_s" Delay="100" NameStep="tree_big_s" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
<!--    <Decoration>
     <Id Name="tree_big" Order="1" SubId="180" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="349" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="154" />
      </MoveY>
      <AnimMachine BeginStep="tree_big" EndStep="tree_big">
        <Steps>
          <Step Key="default" Name="tree_big" Delay="100" NameStep="tree_big" />
        </Steps>
      </AnimMachine>
    </Decoration>-->
  
    <Decoration>
     <Id Name="tree_sun_s" Order="1" SubId="190" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="331" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="76" />
      </MoveY>
      <AnimMachine BeginStep="tree_sun_s" EndStep="tree_sun_s">
        <Steps>
          <Step Key="default" Name="tree_sun_s" Delay="100" NameStep="tree_sun_s" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="tree_moon_s" Order="1" SubId="200" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="401" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="71" />
      </MoveY>
      <AnimMachine BeginStep="tree_moon_s" EndStep="tree_moon_s">
        <Steps>
          <Step Key="default" Name="tree_moon_s" Delay="100" NameStep="tree_moon_s" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="tree_moon" Order="1" SubId="210" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="384" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="72" />
      </MoveY>
      <AnimMachine BeginStep="tree_moon" EndStep="tree_moon">
        <Steps>
          <Step Key="default" Name="tree_moon" Delay="100" NameStep="tree_moon" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="tree_moon_light" Order="1" SubId="220" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="340" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="76" />
      </MoveY>
      <AnimMachine BeginStep="tree_moon_light" EndStep="tree_moon_light">
        <Steps>
          <Step Key="default" Name="tree_moon_light" Delay="100" NameStep="tree_moon_light" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="tree_sun" Order="1" SubId="230" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="329" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="71" />
      </MoveY>
      <AnimMachine BeginStep="tree_sun" EndStep="tree_sun">
        <Steps>
          <Step Key="default" Name="tree_sun" Delay="100" NameStep="tree_sun" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="tree_sun_light" Order="1" SubId="240" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="340" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="85" />
      </MoveY>
      <AnimMachine BeginStep="tree_sun_light" EndStep="tree_sun_light">
        <Steps>
          <Step Key="default" Name="tree_sun_light" Delay="100" NameStep="tree_sun_light" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
<!--    <Decoration>
     <Id Name="capsule" Order="1" SubId="250" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="324" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="22" />
      </MoveY>
      <AnimMachine BeginStep="capsule" EndStep="capsule">
        <Steps>
          <Step Key="default" Name="capsule" Delay="100" NameStep="capsule" />
        </Steps>
      </AnimMachine>
    </Decoration>-->
  
<!--    <Decoration>
     <Id Name="capsule_pulsar" Order="1" SubId="260" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="327" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="16" />
      </MoveY>
      <AnimMachine BeginStep="capsule_pulsar" EndStep="capsule_pulsar">
        <Steps>
          <Step Key="default" Name="capsule_pulsar" Delay="100" NameStep="capsule_pulsar" />
        </Steps>
      </AnimMachine>
    </Decoration>-->
  
    <Decoration>
     <Id Name="capsule_light" Order="1" SubId="270" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="299" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="4" />
      </MoveY>
      <AnimMachine BeginStep="capsule_light" EndStep="capsule_light">
        <Steps>
          <Step Key="default" Name="capsule_light" Delay="100" NameStep="capsule_light" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="foreground" Order="1" SubId="280" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="182" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="254" />
      </MoveY>
      <AnimMachine BeginStep="foreground" EndStep="foreground">
        <Steps>
          <Step Key="default" Name="foreground" Delay="100" NameStep="foreground" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
<!--    <Decoration>
     <Id Name="ground_fake" Order="1" SubId="305" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="428" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="400" />
      </MoveY>
      <AnimMachine BeginStep="ground_fake" EndStep="ground_fake">
        <Steps>
          <Step Key="default" Name="ground_fake" Delay="100" NameStep="ground_fake" />
        </Steps>
      </AnimMachine>
    </Decoration>-->
  
    <Decoration>
     <Id Name="cage_hatch_s" Order="1" SubId="290" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="447" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="369" />
      </MoveY>
      <AnimMachine BeginStep="cage_hatch_s" EndStep="cage_hatch_s">
        <Steps>
          <Step Key="default" Name="cage_hatch_s" Delay="100" NameStep="cage_hatch_s" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="cage_hatch" Order="1" SubId="300" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="455" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="341" />
      </MoveY>
      <AnimMachine BeginStep="cage_hatch" EndStep="cage_hatch">
        <Steps>
          <Step Key="default" Name="cage_hatch" Delay="100" NameStep="cage_hatch" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="projector_s" Order="1" SubId="310" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="184" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="12" />
      </MoveY>
      <AnimMachine BeginStep="projector_s" EndStep="projector_s">
        <Steps>
          <Step Key="default" Name="projector_s" Delay="100" NameStep="projector_s" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
<!--    <Decoration>
     <Id Name="projector" Order="1" SubId="320" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="191" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="4" />
      </MoveY>
      <AnimMachine BeginStep="projector" EndStep="projector">
        <Steps>
          <Step Key="default" Name="projector" Delay="100" NameStep="projector" />
        </Steps>
      </AnimMachine>
    </Decoration>-->
  
    <Decoration>
     <Id Name="projector_light" Order="1" SubId="330" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="175" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="0" />
      </MoveY>
      <AnimMachine BeginStep="projector_light" EndStep="projector_light">
        <Steps>
          <Step Key="default" Name="projector_light" Delay="100" NameStep="projector_light" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="cage_fence" Order="1" SubId="375" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="465" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="191" />
      </MoveY>
      <AnimMachine BeginStep="cage_fence" EndStep="cage_fence">
        <Steps>
          <Step Key="default" Name="cage_fence" Delay="100" NameStep="cage_fence" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
<!--    <Decoration>
     <Id Name="cage_skeleton" Order="1" SubId="350" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="477" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="227" />
      </MoveY>
      <AnimMachine BeginStep="cage_skeleton" EndStep="cage_skeleton">
        <Steps>
          <Step Key="default" Name="cage_skeleton" Delay="100" NameStep="cage_skeleton" />
        </Steps>
      </AnimMachine>
    </Decoration>-->
  
    <Decoration>
     <Id Name="cage_skeleton_hand1" Order="1" SubId="357" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="562" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="291" />
      </MoveY>
      <AnimMachine BeginStep="cage_skeleton_hand1" EndStep="cage_skeleton_hand1">
        <Steps>
          <Step Key="default" Name="cage_skeleton_hand1" Delay="100" NameStep="cage_skeleton_hand1" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="cage_skeleton_hand2" Order="1" SubId="358" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
<!--        <PosBegin Value="514" />-->
        <PosBegin Value="568" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="291" />
      </MoveY>
      <AnimMachine BeginStep="cage_skeleton_hand2" EndStep="cage_skeleton_hand2">
        <Steps>
          <Step Key="default" Name="cage_skeleton_hand2" Delay="100" NameStep="cage_skeleton_hand2" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="cage_top" Order="1" SubId="360" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="456" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="132" />
      </MoveY>
      <AnimMachine BeginStep="cage_top" EndStep="cage_top">
        <Steps>
          <Step Key="default" Name="cage_top" Delay="100" NameStep="cage_top" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="cage_skeleton_noheart" Order="1" SubId="370" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="535" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="271" />
      </MoveY>
      <AnimMachine BeginStep="cage_skeleton_noheart" EndStep="cage_skeleton_noheart">
        <Steps>
          <Step Key="default" Name="cage_skeleton_noheart" Delay="100" NameStep="cage_skeleton_noheart" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="cage_s" Order="1" SubId="380" />
      <Visible Value="0" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="470" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="407" />
      </MoveY>
      <AnimMachine BeginStep="cage_s" EndStep="cage_s">
        <Steps>
          <Step Key="default" Name="cage_s" Delay="100" NameStep="cage_s" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="tube_s" Order="1" SubId="390" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="166" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="408" />
      </MoveY>
      <AnimMachine BeginStep="tube_s" EndStep="tube_s">
        <Steps>
          <Step Key="default" Name="tube_s" Delay="100" NameStep="tube_s" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="flagstone" Order="1" SubId="400" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="242" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="475" />
      </MoveY>
      <AnimMachine BeginStep="flagstone" EndStep="flagstone">
        <Steps>
          <Step Key="default" Name="flagstone" Delay="100" NameStep="flagstone" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="flagstone_uppershsdow" Order="1" SubId="410" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="243" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="444" />
      </MoveY>
      <AnimMachine BeginStep="flagstone_uppershsdow" EndStep="flagstone_uppershsdow">
        <Steps>
          <Step Key="default" Name="flagstone_uppershsdow" Delay="100" NameStep="flagstone_uppershsdow" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="tube" Order="1" SubId="420" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="111" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="340" />
      </MoveY>
      <AnimMachine BeginStep="tube" EndStep="tube">
        <Steps>
          <Step Key="default" Name="tube" Delay="100" NameStep="tube" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="chair_s" Order="1" SubId="430" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="58" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="405" />
      </MoveY>
      <AnimMachine BeginStep="chair_s" EndStep="chair_s">
        <Steps>
          <Step Key="default" Name="chair_s" Delay="100" NameStep="chair_s" />
        </Steps>
      </AnimMachine>
    </Decoration>
  
    <Decoration>
     <Id Name="chair" Order="1" SubId="440" />
      <Visible Value="1" />
      <Type Value="ANIM_MACHINE" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="72" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="249" />
      </MoveY>
      <AnimMachine BeginStep="chair" EndStep="chair">
        <Steps>
          <Step Key="default" Name="chair" Delay="100" NameStep="chair" />
        </Steps>
      </AnimMachine>
    </Decoration>
  

  
  
  <!--PARTICLES-->
    
  
    <Decoration>
     <Id Name="capsule_pulsar_p" Order="1" SubId="260" />
      <Type Value="PARTICLE" />
      <Particle Name="rh_pulsar" IsInfinity="1" />
      <Enable Value="1"/>
      <Visible Value="1"/>
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="386" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="236" />
      </MoveY>
    </Decoration>
  
    <Decoration>
     <Id Name="fountain_p" Order="1" SubId="93" />
      <Type Value="PARTICLE" />
      <Particle Name="rh_fountain" IsInfinity="1" />
      <Enable Value="1"/>
      <Visible Value="1"/>
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="795" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="45" />
      </MoveY>
    </Decoration>
  
    <Decoration>
     <Id Name="rh_prelaser_p" Order="1" SubId="62" />
      <Type Value="PARTICLE" />
      <Particle Name="rh_prelaser" IsInfinity="1" />
      <Enable Value="1"/>
      <Visible Value="1"/>
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="510" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="55" />
      </MoveY>
    </Decoration>
  
<!--    <Decoration>
     <Id Name="idol_lighting_p" Order="1" SubId="493" />
      <Type Value="PARTICLE" />
      <Particle Name="rh_idol_lighting" IsInfinity="1" />
      <Enable Value="1"/>
      <Visible Value="1"/>
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="87" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="147" />
      </MoveY>
    </Decoration>-->
  
<!--    <Decoration>
     <Id Name="cage_p" Order="1" SubId="303" />
      <Type Value="PARTICLE" />
      <Particle Name="rh_cage" IsInfinity="0" />
      <Enable Value="0"/>
      <Visible Value="0"/>
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="540" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="445" />
      </MoveY>
    </Decoration>-->
    <!--        <Task Type="SET_PARTICLE" Particle="rh_cage" ShowX="540" ShowY="440" OffX="-10" OffY="10" Loop="0" ParticleId="rh_cage_p" /> -->
    
  </Decorations>


  <Functionals>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="free_back_sluice" Order="1" SubId="1080" />
      <Mask Key="mask" Name="out_m" />  
      <Enable Value="0" />
      <Visible Value="0" />
      <IsOnceAction Value="0" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="200" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="555" />
      </MoveY>
      <Cursor Key="default" Name="arrow_bot" />
      <Tasks>
        <Task Type="SCENE" Mode="Create" Name="sluice_chamber" />
        <Task Type="SCENE" Mode="Exit" Name="ritualhall"/>
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="tree_big" Order="1" SubId="180" />
      <Mask Key="mask" Name="tree_big_m" X="349" Y="154" />  
      <Design Key="default" Name="tree_big" />
      <Enable Value="0" />
      <Visible Value="0" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="349" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="154" />
      </MoveY>
      <Cursor Key="default" Name="handy" /> 
      <Tasks>
            <Task Type="SET_SOUND" Mode="DelayPlay" Name="gong.ogg" Delay="100"/>
        <Task Type="QUEUE" Mode="begin" Name="exit_pause"/>
        <Task Type="DELAY" Delay="500" />
        <Task Type="VISIBLE" Param1="tree_big_s" Param2="0" Param3="0"  />
       <Task Type="VISIBLE" Param1="tree_big" Param2="0" Param3="0"  />
        <Task Type="DELAY" Delay="500" />
        <Task Type="ADD_MARK" Param1="ritualhall" Param2="State" Param3="4" />
        <Task Type="QUEUE" Mode="end"/>
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="capsule_force" Order="1" SubId="250" />
      <Mask Key="mask" Name="capsule_m" X="324" Y="22" />  
      <Enable Value="0" />
      <Visible Value="0" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="324" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="22" />
      </MoveY>
      <Cursor Key="default" Name="loupe" /> 
      <Tasks>
        <Task Type="SET_SOUND" Mode="DelayPlay" Name="search_denied2.ogg" Delay="100"/>
        <Task Type="TOPDESCRIPTION" SKey="dialog" SName="2" />
        <Task Type="QUEUE" Mode="begin" Name="spend_energy"/>
        <Task Type="DELAY" Delay="3000" />
        <Task Type="CONVERSATION" Param1="to_deactivate_capsule" Param2="0" Param3="0" />
        <Task Type="QUEUE" Mode="end"/>
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="capsule_hint" Order="1" SubId="251" />
      <Mask Key="mask" Name="capsule_m" X="324" Y="22" />  
      <Design Key="default" Name="capsule" />
      <Description Key="hint" Name="1"/>
      <Enable Value="0" />
      <Visible Value="1" />
      <IsOnceAction Value="0" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="324" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="22" />
      </MoveY>
      <Cursor Key="default" Name="mechanic" /> 
      <Tasks>
        <Task Type="SET_SOUND" Mode="DelayPlay" Name="search_denied2.ogg" Delay="100"/>
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="capsule_tree_prehint" Order="1" SubId="253" />
      <Mask Key="mask" Name="capsule_m" X="324" Y="22" />  
      <Enable Value="0" />
      <Visible Value="0" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="324" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="22" />
      </MoveY>
      <Cursor Key="default" Name="loupe" /> 
      <Tasks>
<!--        <Task Type="CONVERSATION" Param1="grow_tree" Param2="0" Param3="0" />-->

            <Task Type="TOPDESCRIPTION" SKey="dialog" SName="5" />
            <Task Type="QUEUE" Mode="begin" Name="need_big_tree"/>
            <Task Type="DELAY" Delay="2000" />
        <Task Type="SET_HINT" Param1="goal" Param2="3" Param3="0" />
        <Task Type="ENABLE" Param1="capsule_tree_hint" Param2="1" />
        <Task Type="VISIBLE" Param1="capsule_tree_hint" Param2="1" Param3="0" />
        
        
<!--            <Task Type="ADD_VALUE" Key="ritualhall" Name="first_sun" Operator="+" Value="1" />
            <Task Type="REQUEST_TASKS" Param1="sun_find" />
            <Task Type="ADD_VALUE" Key="ritualhall" Name="first_moon" Operator="+" Value="1" />
            <Task Type="REQUEST_TASKS" Param1="moon_find" />-->
        <Task Type="ADD_ITEM" Param1="GROUP" Param2="moon_group" Param3="0" />
        <Task Type="ADD_ITEM" Param1="GROUP" Param2="sun_group" Param3="0" />
            
<!--        <Task Type="ENABLE" Param1="sun_p1" Param2="1" />-->
<!--        <Task Type="ENABLE" Param1="sun_p2" Param2="1" />-->
        <Task Type="ENABLE" Param1="sun_p3" Param2="1" />
        <Task Type="ENABLE" Param1="sun_p4" Param2="1" />
        <Task Type="ENABLE" Param1="moon_p1" Param2="1" />
        <Task Type="ENABLE" Param1="moon_p2" Param2="1" />
<!--        <Task Type="ENABLE" Param1="moon_p3" Param2="1" />-->
        <Task Type="ENABLE" Param1="moon_p4" Param2="1" />
        
            <Task Type="ADD_VALUE" Key="ritualhall" Name="sun_p1_ready" Operator="+" Value="1" />
<!--        <Task Type="ADD_MARK" Param1="ritualhall" Param2="sun_p2_state" Param3="1" />-->
            <Task Type="ADD_VALUE" Key="ritualhall" Name="sun_p2_state" Operator="+" Value="1" />
<!--        <Task Type="ADD_MARK" Param1="ritualhall" Param2="moon_p3_state" Param3="1" />-->
            <Task Type="ADD_VALUE" Key="ritualhall" Name="moon_p3_ready" Operator="+" Value="1" />
        <Task Type="REQUEST_TASKS" Param1="sun_p1_status" />
        <Task Type="REQUEST_TASKS" Param1="sun_p2_status" />
        <Task Type="REQUEST_TASKS" Param1="moon_p3_status" />
            <Task Type="QUEUE" Mode="end"/>
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="capsule_tree_hint" Order="1" SubId="255" />
      <Mask Key="mask" Name="capsule_m" X="324" Y="22" />  
      <Description Key="hint" Name="6"/>
      <Enable Value="0" />
      <Visible Value="0" />
      <IsOnceAction Value="0" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="324" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="22" />
      </MoveY>
      <Puzzles>
        <Puzzle Name="moon_use" X="0" Y="0" W="1" H="1" >
          <Tasks>
            <Task Type="ADD_VALUE" Key="ritualhall" Name="tree_ready" Operator="+" Value="1" />
            <Task Type="VISIBLE" Param1="tree_moon" Param2="1" Param3="0" />
            <Task Type="VISIBLE" Param1="tree_moon_s" Param2="1" Param3="0" />
            <Task Type="SET_PARTICLE" Particle="ItemUsed" ShowX="400" ShowY="80" OffX="0" OffY="0" Loop="0" ParticleId="ItemUsed_p" /> 
            <Task Type="REQUEST_TASKS" Param1="tree_status" />
            <Task Type="QUEUE" Mode="begin" Name="pause"/>
            <Task Type="DELAY" Delay="500"/>
            <Task Type="VISIBLE" Param1="tree_moon_light" Param2="1" Param3="0" />
            <Task Type="QUEUE" Mode="end"/>
          </Tasks>
        </Puzzle>
        <Puzzle Name="sun_use" X="0" Y="0" W="1" H="1" >
          <Tasks>
            <Task Type="ADD_VALUE" Key="ritualhall" Name="tree_ready" Operator="+" Value="1" />
            <Task Type="VISIBLE" Param1="tree_sun" Param2="1" Param3="0" />
            <Task Type="VISIBLE" Param1="tree_sun_s" Param2="1" Param3="0" />
            <Task Type="SET_PARTICLE" Particle="ItemUsed" ShowX="345" ShowY="90" OffX="0" OffY="0" Loop="0" ParticleId="ItemUsed_p" /> 
            <Task Type="REQUEST_TASKS" Param1="tree_status" />
            <Task Type="QUEUE" Mode="begin" Name="pause"/>
            <Task Type="DELAY" Delay="500"/>
            <Task Type="VISIBLE" Param1="tree_sun_light" Param2="1" Param3="0" />
            <Task Type="QUEUE" Mode="end"/>
          </Tasks>
        </Puzzle>
      </Puzzles>
      <Cursor Key="default" Name="mechanic" /> 
      <Tasks>
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="projector" Order="1" SubId="320" />
      <Mask Key="mask" Name="projector_m" X="191" Y="4" />  
      <Design Key="default" Name="projector" />
      <Enable Value="0" />
      <Visible Value="1" />
      <IsOnceAction Value="0" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="191" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="4" />
      </MoveY>
      <Cursor Key="default" Name="handy" /> 
      <Tasks>
        <Task Type="ENABLE" Param1="projector" Param2="0" />
        <Task Type="REQUEST_TASKS" Param1="projector_do" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="game_rotates" Order="1" SubId="820" />
      <Mask Key="mask" Name="game_rotates_m" X="875" Y="37" />  
      <Enable Value="0" />
      <Visible Value="0" />
      <IsOnceAction Value="0" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="875" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="37" />
      </MoveY>
      <Cursor Key="default" Name="loupe" /> 
      <Tasks>
        <Task Type="SCENE" Mode="Create" Name="rotates"/>
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="idol_prehint" Order="1" SubId="53" />
      <Mask Key="mask" Name="idol_m" X="57" Y="113" />  
      <Description Key="hint" Name="2"/>
      <Enable Value="0" />
      <Visible Value="0" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="57" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="113" />
      </MoveY>
      <Cursor Key="default" Name="loupe" /> 
      <Tasks>
        <Task Type="SET_SOUND" Mode="DelayPlay" Name="search_denied2.ogg" Delay="100"/>
        <Task Type="ADD_ITEM" Param1="GROUP" Param2="lotos_group" Param3="0" />
        <Task Type="ENABLE" Param1="idol_hint" Param2="1" />
        <Task Type="VISIBLE" Param1="idol_hint" Param2="1" Param3="0" />
<!--        <Task Type="ADD_VALUE" Key="ritualhall" Name="lotos_p1_ready" Operator="+" Value="1" />
        <Task Type="ADD_VALUE" Key="ritualhall" Name="lotos_p2_ready" Operator="+" Value="1" />-->
        <Task Type="ADD_MARK" Key="ritualhall" Name="lotos_p1_active_ready" Value="1" />
        <Task Type="ADD_MARK" Key="ritualhall" Name="lotos_p2_active_ready" Value="1" />
        <Task Type="REQUEST_TASKS" Param1="lotos_p1_status" />
        <Task Type="REQUEST_TASKS" Param1="lotos_p2_status" />
<!--        <Task Type="ENABLE" Param1="lotos_p1" Param2="1" />
        <Task Type="ENABLE" Param1="lotos_p2" Param2="1" />-->
        <Task Type="ENABLE" Param1="lotos_p3" Param2="1" />
<!--        <Task Type="ADD_VALUE" Key="ritualhall" Name="lotos_p4_ready" Operator="+" Value="1" />
        <Task Type="REQUEST_TASKS" Param1="lotos_p4_status" />-->
<!--        <Task Type="ENABLE" Param1="lotos_p4" Param2="1" />-->
        <Task Type="ADD_MARK" Key="ritualhall" Name="lotos_p4_active_ready" Value="1" />
        <Task Type="REQUEST_TASKS" Param1="lotos_p4_status" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="idol_hint" Order="1" SubId="51" />
      <Mask Key="mask" Name="capsule_m" X="57" Y="113" />  
      <Description Key="hint" Name="2"/>
      <Enable Value="0" />
      <Visible Value="0" />
      <IsOnceAction Value="0" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="57" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="113" />
      </MoveY>
      <Puzzles>
        <Puzzle Name="lotos_use" X="0" Y="0" W="1" H="1" >
          <Tasks>
            <Task Type="ADD_VALUE" Key="ritualhall" Name="moon_p3_ready" Operator="+" Value="3" />
            <Task Type="ENABLE" Param1="idol_hint" Param2="0" />
            <Task Type="VISIBLE" Param1="idol_hint" Param2="0" Param3="0" />
            <Task Type="VISIBLE" Param1="idol_lotos_big" Param2="1" Param3="0" />
            <Task Type="VISIBLE" Param1="idol_eyes_open" Param2="1" Param3="0" />
            <Task Type="SET_PARTICLE" Particle="ItemUsed" ShowX="115" ShowY="265" OffX="0" OffY="0" Loop="0" ParticleId="ItemUsed_p" /> 
            <Task Type="REQUEST_TASKS" Param1="moon_p3_status" />
            <Task Type="QUEUE" Mode="begin" Name="pause"/>
            <Task Type="DELAY" Delay="400"/>
            <Task Type="SET_SOUND" Mode="DelayPlay" Name="electro_sparks.ogg" Delay="300"/>
            <Task Type="SET_PARTICLE" Particle="rh_idol_lighting" ShowX="87" ShowY="147" OffX="0" OffY="0" Loop="0" ParticleId="idol_lighting_p" />     
            <Task Type="DELAY" Delay="2300"/>
            <Task Type="VISIBLE" Param1="flagstone_uppershsdow" Param2="0" Param3="0" />
            <Task Type="SET_SOUND" Mode="Replay" Name="rock_move.ogg" />
            <Task Type="MOVE" Name="flagstone" X="150" Y="-30" IsShift="1" Mode="5" Loop="3500" />
            <Task Type="DELAY" Delay="1000"/>
            <Task Type="SET_SOUND" Mode="Replay" Name="rock_move.ogg" />
            <Task Type="DELAY" Delay="1000"/>
            <Task Type="SET_SOUND" Mode="Replay" Name="rock_move.ogg" />
            <Task Type="DELAY" Delay="200"/>
<!--            <Task Type="VISIBLE" Param1="flagstone" Param2="0" Param3="0" />-->
        <Task Type="ADD_VALUE" Key="ritualhall" Name="capsule_level" Operator="+" Value="1" />
        <Task Type="REQUEST_TASKS" Param1="capsule_disable" />
            <Task Type="QUEUE" Mode="end"/>
          </Tasks>
        </Puzzle>
      </Puzzles>
      <Cursor Key="default" Name="mechanic" /> 
      <Tasks>
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="mermaid_prehint" Order="1" SubId="602" />
      <Mask Key="mask" Name="mermaid_m" X="652" Y="70" />  
      <Description Key="hint" Name="3"/>
      <Enable Value="0" />
      <Visible Value="0" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="652" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="70" />
      </MoveY>
      <Cursor Key="default" Name="loupe" /> 
      <Tasks>
        <Task Type="SET_SOUND" Mode="DelayPlay" Name="search_denied2.ogg" Delay="100"/>
        <Task Type="ADD_ITEM" Param1="GROUP" Param2="harp_group" Param3="0" />
        <Task Type="ENABLE" Param1="harp_p1" Param2="1" />
<!--        <Task Type="ADD_VALUE" Key="ritualhall" Name="harp_p2_ready" Operator="+" Value="1" />-->
<!--        <Task Type="ENABLE" Param1="harp_p2" Param2="1" />-->
        <Task Type="ADD_MARK" Key="ritualhall" Name="harp_p2_active_ready" Value="1" />
        <Task Type="REQUEST_TASKS" Param1="harp_p2_status" />
        <Task Type="ENABLE" Param1="harp_p3" Param2="1" />
        <Task Type="ENABLE" Param1="harp_p4" Param2="1" />
        <Task Type="ENABLE" Param1="mermaid_hint" Param2="1" />
        <Task Type="VISIBLE" Param1="mermaid_hint" Param2="1" Param3="0" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="mermaid_hint" Order="1" SubId="600" />
      <Mask Key="mask" Name="mermaid_m" X="652" Y="70" />  
      <Description Key="hint" Name="3"/>
      <Enable Value="0" />
      <Visible Value="0" />
      <IsOnceAction Value="0" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="652" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="70" />
      </MoveY>
      <Puzzles>
        <Puzzle Name="harp_use" X="0" Y="0" W="1" H="1" >
          <Tasks>
            <Task Type="ENABLE" Param1="mermaid_hint" Param2="0" />
            <Task Type="VISIBLE" Param1="mermaid_hint" Param2="0" Param3="0" />
            <Task Type="VISIBLE" Param1="mermaid_harp" Param2="1" Param3="0" />
            <Task Type="SET_SOUND" Mode="DelayPlay" Name="mermaid_song.ogg" Delay="1000"/>
            <Task Type="QUEUE" Mode="begin" Name="just_pause" />
            <Task Type="DELAY" Delay="200" />
            <Task Type="SET_PARTICLE" Particle="ItemUsed" ShowX="725" ShowY="135" OffX="0" OffY="0" Loop="0" ParticleId="ItemUsed_p" /> 
            <Task Type="DELAY" Delay="2800" />
            <Task Type="VISIBLE" Param1="mermaid_water" Param2="0" Param3="0" />
            <Task Type="VISIBLE" Param1="mermaid_water_s" Param2="0" Param3="0" />
            <Task Type="DELAY" Delay="250" />
            <Task Type="VISIBLE" Param1="fountain_p" Param2="0" Param3="0" />
            <Task Type="VISIBLE" Param1="fountain_p" Param2="0" Param3="0" />
            <Task Type="ADD_MARK" Param1="ritualhall" Param2="sound_water" Param3="1" />
            <Task Type="SET_SOUND" Mode="DelRepeatTag"  Tag="ritualhall_water"/>
            <Task Type="VISIBLE" Param1="mermaid_water_sprays" Param2="0" Param3="0" />
            <Task Type="ADD_VALUE" Key="ritualhall" Name="heart_p1_ready" Operator="+" Value="1" />
            <Task Type="REQUEST_TASKS" Param1="heart_p1_status" />
            <Task Type="QUEUE" Mode="end" />
          </Tasks>
        </Puzzle>
      </Puzzles>
      <Cursor Key="default" Name="mechanic" /> 
      <Tasks>
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="laser_prehint" Order="1" SubId="42" />
      <Mask Key="mask" Name="laser_m" X="474" Y="17" />  
      <Description Key="hint" Name="4"/>
      <Enable Value="0" />
      <Visible Value="0" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="474" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="30" />
      </MoveY>
      <Cursor Key="default" Name="loupe" /> 
      <Tasks>
        <Task Type="SET_SOUND" Mode="DelayPlay" Name="search_denied.ogg" Delay="100"/>
        <Task Type="ADD_ITEM" Param1="GROUP" Param2="laser_group" Param3="0" />
        
        <Task Type="ENABLE" Param1="laser_p1" Param2="1" />
        <Task Type="ENABLE" Param1="laser_p2" Param2="1" />
        <Task Type="ENABLE" Param1="laser_p3" Param2="1" />
        <Task Type="ENABLE" Param1="laser_p4" Param2="1" />
        <Task Type="ENABLE" Param1="laser_hint" Param2="1" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="laser_hint" Order="1" SubId="40" />
      <Mask Key="mask" Name="laser_m" X="474" Y="17" />  
      <Design Key="default" Name="laser_part" />
      <Description Key="hint" Name="4"/>
      <Enable Value="0" />
      <Visible Value="0" />
      <IsOnceAction Value="0" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="582" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="30" />
      </MoveY>
      <Puzzles>
        <Puzzle Name="laser_use" X="0" Y="0" W="1" H="1" >
          <Tasks>
        <Task Type="ADD_MARK" Param1="ritualhall" Param2="sound_laser" Param3="1" />
            <Task Type="ENABLE" Param1="laser_hint" Param2="0" />
            <Task Type="VISIBLE" Param1="laser_hint" Param2="1" Param3="0" />
            <Task Type="VISIBLE" Param1="laser_beam" Param2="1" Param3="0" />
            <Task Type="VISIBLE" Param1="laser_light" Param2="1" Param3="0" />
            <Task Type="SET_PARTICLE" Particle="ItemUsed" ShowX="610" ShowY="50" OffX="0" OffY="0" Loop="0" ParticleId="ItemUsed_p" /> 
            <Task Type="QUEUE" Mode="begin" Name="pause"/>
            <Task Type="DELAY" Delay="400"/>
<!--            <Task Type="ENABLE" Param1="projector" Param2="1" />-->
            <Task Type="SET_PARTICLE" Particle="ItemUsed" ShowX="240" ShowY="50" OffX="0" OffY="0" Loop="0" ParticleId="ItemUsed_p" /> 
            <Task Type="DELAY" Delay="500"/>
            <Task Type="REQUEST_TASKS" Param1="sound_laser_request" />
            <Task Type="ENABLE" Param1="projector" Param2="0" />
            <Task Type="REQUEST_TASKS" Param1="projector_do" />
            <Task Type="QUEUE" Mode="end"/>
          </Tasks>
        </Puzzle>
      </Puzzles>
      <Cursor Key="default" Name="mechanic" /> 
      <Tasks>
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="skeleton_prehint" Order="1" SubId="352" />
      <Mask Key="mask" Name="cage_skeleton_m" X="497" Y="229" />  
      <Description Key="hint" Name="5"/>
      <Enable Value="0" />
      <Visible Value="0" />
      <IsOnceAction Value="0" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="497" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="228" />
      </MoveY>
      <Cursor Key="default" Name="loupe" /> 
      <Tasks>
        <Task Type="SET_SOUND" Mode="DelayPlay" Name="search_denied2.ogg" Delay="100"/>
        <Task Type="ENABLE" Param1="skeleton_prehint" Param2="0" />
        <Task Type="VISIBLE" Param1="skeleton_prehint" Param2="0" Param3="0" />
        <Task Type="ADD_VALUE" Key="ritualhall" Name="heart_p1_ready" Operator="+" Value="1" />
        <Task Type="ADD_VALUE" Key="ritualhall" Name="heart_ready" Operator="+" Value="1" />
        <Task Type="ADD_ITEM" Param1="GROUP" Param2="heart_group" Param3="0" />
<!--        <Task Type="ENABLE" Param1="heart_p1" Param2="1" />-->
        <Task Type="ENABLE" Param1="heart_p2" Param2="1" />
        <Task Type="ENABLE" Param1="heart_p3" Param2="1" />
        <Task Type="ENABLE" Param1="heart_p4" Param2="1" />
        <Task Type="ENABLE" Param1="skeleton_hint" Param2="1" />
        <Task Type="REQUEST_TASKS" Param1="heart_p1_status" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="skeleton_hint" Order="1" SubId="350" />
      <Mask Key="mask" Name="cage_skeleton_m" X="497" Y="229" />  
      <Design Key="default" Name="cage_skeleton" />
      <Description Key="hint" Name="5"/>
      <Enable Value="0" />
      <Visible Value="0" />
      <IsOnceAction Value="0" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="477" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="227" />
      </MoveY>
      <Puzzles>
        <Puzzle Name="heart_use" X="0" Y="0" W="1" H="1" >
          <Tasks>
            <Task Type="ADD_VALUE" Key="ritualhall" Name="heart_ready" Operator="+" Value="1" />
            <Task Type="ENABLE" Param1="skeleton_hint" Param2="0" />
            <Task Type="VISIBLE" Param1="cage_skeleton_noheart" Param2="0" Param3="0" />
            <Task Type="SET_PARTICLE" Particle="ItemUsed" ShowX="545" ShowY="282" OffX="0" OffY="0" Loop="0" ParticleId="ItemUsed_p" /> 
        <Task Type="ADD_VALUE" Key="ritualhall" Name="capsule_level" Operator="+" Value="1" />
            <Task Type="QUEUE" Mode="begin" Name="pause"/>
            <Task Type="DELAY" Delay="1200"/>
            <Task Type="VISIBLE" Param1="cage_skeleton_hand1" Param2="0" Param3="0" />
            <Task Type="VISIBLE" Param1="cage_skeleton_hand2" Param2="1" Param3="0" />
<!--            <Task Type="MOVE" Name="sun_p2" X="-20" Y="50" IsShift="1" Mode="5" Loop="10" />-->
            <Task Type="REQUEST_TASKS" Param1="heart_status" />
            <Task Type="DELAY" Delay="1200"/>
        <Task Type="REQUEST_TASKS" Param1="capsule_disable" />
            <Task Type="QUEUE" Mode="end"/>
          </Tasks>
        </Puzzle>
      </Puzzles>
      <Cursor Key="default" Name="mechanic" /> 
      <Tasks>
      </Tasks>
    </Functional>
    
    
    <Functional>
      <Type Value="ITEM" />
      <Id Name="cage_inside" Order="1" SubId="281" />
      <Mask Key="mask" Name="cage_hatch_m" X="455" Y="341" />  
      <Enable Value="0" />
      <Visible Value="0" />
      <IsOnceAction Value="0" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="455" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="341" />
      </MoveY>
      <Cursor Key="default" Name="arrow_up" /> 
      <Tasks>
        <Task Type="ADD_MARK" Key="ritualhall" Name="cage_inside" Value="1" />
        <Task Type="ENABLE" Param1="cage_inside" Param2="0" />
        <Task Type="VISIBLE" Param1="cage_inside" Param2="0" Param3="0" />
        <Task Type="SET_SOUND" Mode="Replay" Name="skeleton_move.ogg" />
        <Task Type="SET_PARTICLE" Particle="rh_cage" ShowX="540" ShowY="440" OffX="-10" OffY="5" Loop="0" ParticleId="rh_cage_p" /> 
        <Task Type="ENABLE" Param1="sun_p1" Param2="0" />
<!--        <Task Type="ADD_VALUE" Key="ritualhall" Name="lotos_p4_ready" Operator="+" Value="1" />-->
            <Task Type="ADD_VALUE" Key="ritualhall" Name="sun_p1_ready" Operator="-" Value="1" />
            <Task Type="ADD_VALUE" Key="ritualhall" Name="sun_p2_state" Operator="+" Value="1" />
        <Task Type="ADD_MARK" Key="ritualhall" Name="lotos_p4_ready" Value="1" />
        
        <Task Type="QUEUE" Mode="begin" Name="cage_up"/>
        <Task Type="DELAY" Delay="1100"/>
        <Task Type="VISIBLE" Param1="cage_hatch" Param2="0" Param3="0" />
        <Task Type="VISIBLE" Param1="cage_hatch_s" Param2="0" Param3="0" />
        <Task Type="VISIBLE" Param1="cage_top" Param2="1" Param3="0" Param4="1111" />
        <Task Type="VISIBLE" Param1="skeleton_hint" Param2="1" Param3="0" Param4="1111" />
        <Task Type="VISIBLE" Param1="cage_fence" Param2="1" Param3="0" Param4="1111" />
        <Task Type="VISIBLE" Param1="cage_s" Param2="1" Param3="0" Param4="1111" />
        <Task Type="REQUEST_TASKS" Param1="heart_status" />
        <Task Type="REQUEST_TASKS" Param1="lotos_p4_status" />
        <Task Type="DELAY" Delay="1800"/>
        <Task Type="ENABLE" Param1="cage_outside" Param2="1" />
        <Task Type="VISIBLE" Param1="cage_outside" Param2="1" Param3="0" />
        <Task Type="QUEUE" Mode="end"/>
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="cage_outside" Order="1" SubId="360" />
      <Mask Key="mask" Name="cage_hatch_m" X="456" Y="132" />  
      <Enable Value="0" />
      <Visible Value="0" />
      <IsOnceAction Value="0" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="456" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="132" />
      </MoveY>
      <Cursor Key="default" Name="arrow_down" /> 
      <Tasks>
        <Task Type="ADD_MARK" Key="ritualhall" Name="cage_inside" Value="0" />
        <Task Type="ENABLE" Param1="cage_outside" Param2="0" />
        <Task Type="VISIBLE" Param1="cage_outside" Param2="0" Param3="0" />
        <Task Type="SET_SOUND" Mode="Replay" Name="skeleton_move.ogg" />
        <Task Type="SET_PARTICLE" Particle="rh_cage" ShowX="540" ShowY="440" OffX="-10" OffY="10" Loop="0" ParticleId="rh_cage_p" /> 
        <Task Type="ENABLE" Param1="skeleton_prehint" Param2="0" />
        <Task Type="ENABLE" Param1="skeleton_hint" Param2="0" />
        <Task Type="ENABLE" Param1="sun_p2" Param2="0" />
        <Task Type="ENABLE" Param1="lotos_p4" Param2="0" />
<!--        <Task Type="ADD_VALUE" Key="ritualhall" Name="lotos_p4_ready" Operator="-" Value="1" />-->
            <Task Type="ADD_VALUE" Key="ritualhall" Name="sun_p1_ready" Operator="+" Value="1" />
            <Task Type="ADD_VALUE" Key="ritualhall" Name="sun_p2_state" Operator="-" Value="1" />
        <Task Type="ADD_MARK" Key="ritualhall" Name="lotos_p4_ready" Value="0" />
        <Task Type="QUEUE" Mode="begin" Name="cage_down"/>
        <Task Type="DELAY" Delay="1100"/>
        <Task Type="VISIBLE" Param1="cage_top" Param2="0" Param3="0" Param4="838" />
        <Task Type="VISIBLE" Param1="skeleton_hint" Param2="0" Param3="0" Param4="838" />
        <Task Type="VISIBLE" Param1="cage_fence" Param2="0" Param3="0" Param4="838" />
        <Task Type="VISIBLE" Param1="cage_s" Param2="0" Param3="0" Param4="838" />
        <Task Type="VISIBLE" Param1="cage_skeleton_noheart" Param2="0" Param3="0" Param4="838" />
        <Task Type="VISIBLE" Param1="cage_skeleton_hand1" Param2="0" Param3="0" Param4="838" />
        <Task Type="VISIBLE" Param1="cage_skeleton_hand2" Param2="0" Param3="0" Param4="838" />
        <Task Type="VISIBLE" Param1="sun_p2" Param2="0" Param3="0" Param4="838" />
        <Task Type="VISIBLE" Param1="lotos_p4" Param2="0" Param3="0" Param4="838" />
        <Task Type="VISIBLE" Param1="cage_hatch" Param2="1" Param3="0" />
        <Task Type="VISIBLE" Param1="cage_hatch_s" Param2="1" Param3="0" />
        <Task Type="REQUEST_TASKS" Param1="sun_p1_status" />
        <Task Type="DELAY" Delay="1800"/>
        <Task Type="ENABLE" Param1="cage_inside" Param2="1" />
        <Task Type="VISIBLE" Param1="cage_inside" Param2="1" Param3="0" />
        <Task Type="QUEUE" Mode="end"/>
      </Tasks>
    </Functional>
    
    
<!--  Части всего ДЛЯ ПОИСКА-->
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="harp_p1" Order="1" SubId="460" />
<!--      <Mask Key="mask" Name="harp_1_m" X="408" Y="392" />  -->
      <Mask Key="mask" Name="mask_35-40_m" />  
      <Design Key="default" Name="harp_1" />
      <Enable Value="0" />
      <Visible Value="1" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="408" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="392" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="harp_group" Param3="harp_p1" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="harp_p1" Param3="harp_group" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="harp_p2" Order="1" SubId="470" />
<!--      <Mask Key="mask" Name="harp_2_m" X="756" Y="438" />  -->
      <Mask Key="mask" Name="mask_35-40_m" />  
      <Design Key="default" Name="harp_2" />
      <Enable Value="0" />
      <Visible Value="0" />
      <IsOnceAction Value="0" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="756" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="438" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
        <Task Type="VISIBLE" Param1="harp_p2" Param2="0" Param3="0" />
        <Task Type="ENABLE" Param1="harp_p2" Param2="0" />
          <!--for darkness-->
<!--            <Task Type="ADD_VALUE" Key="ritualhall" Name="harp_p2_ready" Operator="+" Value="1" />-->
        <Task Type="ADD_MARK" Key="ritualhall" Name="harp_p2_active_ready" Value="2" />
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="harp_group" Param3="harp_p2" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="harp_p2" Param3="harp_group" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="harp_p3" Order="1" SubId="480" />
<!--      <Mask Key="mask" Name="harp_3_m" X="118" Y="396" />  -->
      <Mask Key="mask" Name="mask_45-35_m" />  
      <Design Key="default" Name="harp_3" />
      <Enable Value="0" />
      <Visible Value="1" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="118" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="396" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="harp_group" Param3="harp_p3" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="harp_p3" Param3="harp_group" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="harp_p4" Order="1" SubId="490" />
<!--      <Mask Key="mask" Name="harp_4_m" X="210" Y="21" />  -->
      <Mask Key="mask" Name="mask_45-35_m" />  
      <Design Key="default" Name="harp_4" />
      <Enable Value="0" />
      <Visible Value="1" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="210" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="21" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="harp_group" Param3="harp_p4" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="harp_p4" Param3="harp_group" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="laser_p1" Order="1" SubId="320" />
      <Mask Key="mask" Name="laser_1_m" X="237" Y="100" />  
      <Design Key="default" Name="laser_1" />
      <Enable Value="0" />
      <Visible Value="1" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="237" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="100" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="laser_group" Param3="laser_p1" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="laser_p1" Param3="laser_group" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="laser_p2" Order="1" SubId="510" />
<!--      <Mask Key="mask" Name="laser_2_m" X="187" Y="512" />  -->
      <Mask Key="mask" Name="mask_30-30_m" />  
      <Design Key="default" Name="laser_2" />
      <Enable Value="0" />
      <Visible Value="1" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="187" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="512" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="laser_group" Param3="laser_p2" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="laser_p2" Param3="laser_group" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="laser_p3" Order="1" SubId="520" />
<!--      <Mask Key="mask" Name="laser_3_m" X="856" Y="273" />  -->
      <Mask Key="mask" Name="mask_30-30_m" />  
      <Design Key="default" Name="laser_3" />
      <Enable Value="0" />
      <Visible Value="1" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="856" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="273" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="laser_group" Param3="laser_p3" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="laser_p3" Param3="laser_group" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="laser_p4" Order="1" SubId="603" />
<!--      <Mask Key="mask" Name="laser_4_m" X="693" Y="167" />  -->
      <Mask Key="mask" Name="mask_40-45_m" />  
      <Design Key="default" Name="laser_4" />
      <Enable Value="0" />
      <Visible Value="1" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="693" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="167" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="laser_group" Param3="laser_p4" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="laser_p4" Param3="laser_group" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="lotos_p1" Order="1" SubId="540" />
<!--      <Mask Key="mask" Name="lotos_1_m" X="679" Y="554" />  -->
      <Mask Key="mask" Name="mask_45-35_m" />  
      <Design Key="default" Name="lotos_1" />
      <Enable Value="0" />
      <Visible Value="0" />
      <IsOnceAction Value="0" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="679" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="554" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
        <Task Type="VISIBLE" Param1="lotos_p1" Param2="0" Param3="0" />
        <Task Type="ENABLE" Param1="lotos_p1" Param2="0" />
          <!--for darkness-->
        <Task Type="ADD_MARK" Key="ritualhall" Name="lotos_p1_active_ready" Value="2" />
<!--            <Task Type="ADD_VALUE" Key="ritualhall" Name="lotos_p1_ready" Operator="+" Value="1" />-->
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="lotos_group" Param3="lotos_p1" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="lotos_p1" Param3="lotos_group" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="lotos_p2" Order="1" SubId="550" />
<!--      <Mask Key="mask" Name="lotos_2_m" X="227" Y="354" />  -->
      <Mask Key="mask" Name="mask_35-40_m" />  
      <Design Key="default" Name="lotos_2" />
      <Enable Value="0" />
      <Visible Value="0" />
      <IsOnceAction Value="0" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="227" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="354" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
        <Task Type="VISIBLE" Param1="lotos_p2" Param2="0" Param3="0" />
        <Task Type="ENABLE" Param1="lotos_p2" Param2="0" />
          <!--for darkness-->
        <Task Type="ADD_MARK" Key="ritualhall" Name="lotos_p2_active_ready" Value="2" />
<!--            <Task Type="ADD_VALUE" Key="ritualhall" Name="lotos_p2_ready" Operator="+" Value="1" />-->
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="lotos_group" Param3="lotos_p2" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="lotos_p2" Param3="lotos_group" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="lotos_p3" Order="1" SubId="560" />
      <Mask Key="mask" Name="lotos_3_m" X="761" Y="6" />  
      <Design Key="default" Name="lotos_3" />
      <Enable Value="0" />
      <Visible Value="1" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="761" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="6" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="lotos_group" Param3="lotos_p3" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="lotos_p3" Param3="lotos_group" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="lotos_p4" Order="1" SubId="255" />
<!--      <Mask Key="mask" Name="lotos_4_m" X="473" Y="247" />  -->
      <Mask Key="mask" Name="mask_30-30_m" />  
      <Design Key="default" Name="lotos_4" />
      <Enable Value="0" />
      <Visible Value="0" />
      <IsOnceAction Value="1" />
<!--      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="473" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="247" />
      </MoveY>-->
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="547" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="387" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
        <Task Type="ADD_MARK" Key="ritualhall" Name="lotos_p4_active_ready" Value="2" />
<!--        <Task Type="ADD_VALUE" Key="ritualhall" Name="lotos_p4_ready" Operator="+" Value="1" />-->
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="lotos_group" Param3="lotos_p4" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="lotos_p4" Param3="lotos_group" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="moon_p1" Order="1" SubId="570" />
<!--      <Mask Key="mask" Name="moon_1_m" X="245" Y="206" />  -->
      <Mask Key="mask" Name="mask_40-45_m" />  
      <Design Key="default" Name="moon_1" />
      <Enable Value="0" />
      <Visible Value="1" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="245" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="206" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
            <Task Type="ADD_VALUE" Key="ritualhall" Name="first_moon" Operator="+" Value="1" />
            <Task Type="REQUEST_TASKS" Param1="moon_find" />
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="moon_group" Param3="moon_p1" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="moon_p1" Param3="moon_group" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="moon_p2" Order="1" SubId="580" />
<!--      <Mask Key="mask" Name="moon_2_m" X="23" Y="190" />  -->
      <Mask Key="mask" Name="mask_35-40_m" />  
      <Design Key="default" Name="moon_2" />
      <Enable Value="0" />
      <Visible Value="1" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="23" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="190" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
            <Task Type="ADD_VALUE" Key="ritualhall" Name="first_moon" Operator="+" Value="1" />
            <Task Type="REQUEST_TASKS" Param1="moon_find" />
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="moon_group" Param3="moon_p2" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="moon_p2" Param3="moon_group" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="moon_p3" Order="1" SubId="395" />
<!--      <Mask Key="mask" Name="moon_3_m" X="359" Y="545" />  -->
      <Mask Key="mask" Name="mask_45-35_m" />  
      <Design Key="default" Name="moon_3" />
      <Enable Value="0" />
      <Visible Value="0" />
      <IsOnceAction Value="0" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="359" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="545" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
        <Task Type="VISIBLE" Param1="moon_p3" Param2="0" Param3="0" />
        <Task Type="ENABLE" Param1="moon_p3" Param2="0" />
        <Task Type="ADD_VALUE" Key="ritualhall" Name="moon_p3_ready" Operator="+" Value="44" />
            <Task Type="ADD_VALUE" Key="ritualhall" Name="first_moon" Operator="+" Value="1" />
            <Task Type="REQUEST_TASKS" Param1="moon_find" />
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="moon_group" Param3="moon_p3" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="moon_p3" Param3="moon_group" />
        <Task Type="ADD_MARK" Param1="ritualhall" Param2="moon_p3_state" Param3="2" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="moon_p4" Order="1" SubId="65" />
<!--      <Mask Key="mask" Name="moon_4_m" X="527" Y="14" />  -->
      <Mask Key="mask" Name="mask_45-35_m" />  
      <Design Key="default" Name="moon_4" />
      <Enable Value="0" />
      <Visible Value="1" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="527" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="14" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
            <Task Type="ADD_VALUE" Key="ritualhall" Name="first_moon" Operator="+" Value="1" />
            <Task Type="REQUEST_TASKS" Param1="moon_find" />
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="moon_group" Param3="moon_p4" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="moon_p4" Param3="moon_group" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="sun_p1" Order="1" SubId="285" />
<!--      <Mask Key="mask" Name="sun_1_m" X="532" Y="301" />  -->
      <Mask Key="mask" Name="mask_45-35_m" />  
      <Design Key="default" Name="sun_1" />
      <Enable Value="0" />
      <Visible Value="1" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="532" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="301" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
        <Task Type="ADD_VALUE" Key="ritualhall" Name="sun_p1_ready" Operator="+" Value="1" />
            <Task Type="ADD_VALUE" Key="ritualhall" Name="first_sun" Operator="+" Value="1" />
            <Task Type="REQUEST_TASKS" Param1="sun_find" />
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="sun_group" Param3="sun_p1" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="sun_p1" Param3="sun_group" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="sun_p2" Order="1" SubId="354" />
<!--      <Mask Key="mask" Name="sun_2_m" X="558" Y="386" />  -->
      <Mask Key="mask" Name="mask_40-45_m" />  
      <Design Key="default" Name="sun_2" />
      <Enable Value="0" />
      <Visible Value="0" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="596" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="265" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
        <Task Type="ADD_VALUE" Key="ritualhall" Name="heart_ready" Operator="+" Value="1" />
            <Task Type="ADD_VALUE" Key="ritualhall" Name="first_sun" Operator="+" Value="1" />
            <Task Type="REQUEST_TASKS" Param1="sun_find" />
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="sun_group" Param3="sun_p2" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="sun_p2" Param3="sun_group" />
        <Task Type="ADD_MARK" Param1="ritualhall" Param2="sun_p2_state" Param3="3" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="sun_p3" Order="1" SubId="630" />
<!--      <Mask Key="mask" Name="sun_3_m" X="62" Y="574" />  -->
      <Mask Key="mask" Name="mask_35-40_m" />  
      <Design Key="default" Name="sun_3" />
      <Enable Value="0" />
      <Visible Value="1" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="62" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="574" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
            <Task Type="ADD_VALUE" Key="ritualhall" Name="first_sun" Operator="+" Value="1" />
            <Task Type="REQUEST_TASKS" Param1="sun_find" />
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="sun_group" Param3="sun_p3" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="sun_p3" Param3="sun_group" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="sun_p4" Order="1" SubId="640" />
<!--      <Mask Key="mask" Name="sun_4_m" X="953" Y="441" />  -->
      <Mask Key="mask" Name="mask_35-40_m" />  
      <Design Key="default" Name="sun_4" />
      <Enable Value="0" />
      <Visible Value="1" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="953" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="441" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
            <Task Type="ADD_VALUE" Key="ritualhall" Name="first_sun" Operator="+" Value="1" />
            <Task Type="REQUEST_TASKS" Param1="sun_find" />
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="sun_group" Param3="sun_p4" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="sun_p4" Param3="sun_group" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="heart_p1" Order="1" SubId="75" />
<!--      <Mask Key="mask" Name="heart_1_m" X="773" Y="109" />  -->
      <Mask Key="mask" Name="mask_40-45_m" />  
      <Design Key="default" Name="heart_1" />
      <Enable Value="0" />
      <Visible Value="1" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="773" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="109" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
        <Task Type="ADD_VALUE" Key="ritualhall" Name="heart_p1_ready" Operator="+" Value="1" />
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="heart_group" Param3="heart_p1" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="heart_p1" Param3="heart_group" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="heart_p2" Order="1" SubId="325" />
<!--      <Mask Key="mask" Name="heart_2_m" X="403" Y="244" />  -->
      <Mask Key="mask" Name="mask_35-40_m" />  
      <Design Key="default" Name="heart_2" />
      <Enable Value="0" />
      <Visible Value="1" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="403" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="244" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="heart_group" Param3="heart_p2" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="heart_p2" Param3="heart_group" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="heart_p3" Order="1" SubId="670" />
<!--      <Mask Key="mask" Name="heart_3_m" X="976" Y="208" />  -->
      <Mask Key="mask" Name="mask_40-45_m" />  
      <Design Key="default" Name="heart_3" />
      <Enable Value="0" />
      <Visible Value="1" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="976" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="208" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="heart_group" Param3="heart_p3" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="heart_p3" Param3="heart_group" />
      </Tasks>
    </Functional>
  
    <Functional>
      <Type Value="ITEM" />
      <Id Name="heart_p4" Order="1" SubId="680" />
<!--      <Mask Key="mask" Name="heart_4_m" X="-6" Y="75" />  -->
      <Mask Key="mask" Name="mask_40-45_m" X="-1" Y="77" />  
      <Design Key="default" Name="heart_4" />
      <Enable Value="0" />
      <Visible Value="1" />
      <IsOnceAction Value="1" />
      <MoveX>
        <Type Value="STATIC" />
        <PosBegin Value="-6" />
      </MoveX>
      <MoveY>
        <Type Value="STATIC" />
        <PosBegin Value="75" />
      </MoveY>
      <Cursor Key="default" Name="default" /> 
      <Tasks>
        <Task Type="ADD_ITEM" Param1="ITEM" Param2="heart_group" Param3="heart_p4" />
        <Task Type="EFFECT" Param1="GET_ITEM_GROUP" Param2="heart_p4" Param3="heart_group" />
      </Tasks>
    </Functional>


    
  </Functionals>


  <RequestTasks>

    <RequestTask Name="QuestOnBegin">
      <Condition>
        <Var Key="ritualhall" Name="State" Value="0" />
        <Var Key="Atlantic" Name="complite" Value="0" />
      </Condition>
      <Tasks>
        <Task Type="SET_HINT" Param1="goal" Param2="1" Param3="0" />
        <Task Type="ENABLE" Param1="capsule_force" Param2="1" />
        <Task Type="TOPDESCRIPTION" SKey="dialog" SName="1" />
        <Task Type="ADD_MARK" Param1="ritualhall" Param2="State" Param3="1" />
      </Tasks>
    </RequestTask>
  
     <RequestTask Name="QuestOnBegin">
      <Condition>
        <Var Key="ritualhall" Name="State" Value="0" />
        <Var Key="Atlantic" Name="complite" Value="1" />
      </Condition>
      <Tasks>
        <!--Переходы-->
        <Task Type="ENABLE" Param1="free_to_sluice" Param2="1" Param3="0"/>
        <Task Type="VISIBLE" Param1="free_to_sluice" Param2="1" />
        <Task Type="ADD_MARK" Param1="ritualhall" Param2="State" Param3="1" />
        
      </Tasks>
    </RequestTask>

    <!--Эта задача выполняется непосредственно когда происходит завершение уровня-->
    <RequestTask Name="QuestOnEnd">
      <Condition>
        <Var Key="ritualhall" Name="State" Value="4" />
      </Condition>
      <Tasks>
<!--        <Task Type="ADD_MARK" Param1="ritualhall" Param2="State" Param3="8" />-->
        <Task Type="SCENE" Mode="Create" Name="comics_end"/>
        <Task Type="SCENE" Mode="Exit" Name="ritualhall"/>
        <Task Type="REQUEST_TASKS" NameOfRequest="CompliteStage" />
      </Tasks>
    </RequestTask>

    <RequestTask Name="CompliteStage">
      <Condition>
        <Var Key="no" Name="no" Value="0" />
      </Condition>
      <Tasks>
        <Task Type="ADD_MARK" Param1="Atlantic" Param2="complite" Param3="1" />
        <Task Type="ADD_MARK" Param1="seabed" Param2="State" Param3="0" />
        <Task Type="ADD_MARK" Param1="sluice_chamber" Param2="State" Param3="0" />
        <Task Type="ADD_MARK" Param1="ritualhall" Param2="State" Param3="0" />
      </Tasks>
    </RequestTask>
    
    
    <RequestTask Name="sound_capsule_request">
      <Condition>
        <Var Key="ritualhall" Name="sound_capsule" Value="0" />
      </Condition>
      <Tasks>
        <Task Type="SET_SOUND" Mode="AddRepeatTag" Name="capsule_pulsar.ogg" DelayMin="0" DelayMax="0" Tag="ritualhall_capsule" />
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="sound_laser_request">
      <Condition>
        <Var Key="ritualhall" Name="sound_laser" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="SET_SOUND" Mode="AddRepeatTag" Name="laser_crack.ogg" DelayMin="0" DelayMax="0" Tag="ritualhall_laser"/>
<!--        <Task Type="SET_SOUND" Mode="DelRepeatTag"  Tag="ritualhall_laser"/>-->
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="sound_water_request">
      <Condition>
        <Var Key="ritualhall" Name="sound_water" Value="0" />
      </Condition>
      <Tasks>
<!--        <Task Type="SET_SOUND" Mode="AddRepeatTag" Name="tap_flow.ogg" DelayMin="0" DelayMax="0" Tag="ritualhall_water"/>-->
        <Task Type="SET_SOUND" Mode="AddRepeatTag" Name="water_fall.ogg" DelayMin="0" DelayMax="0" Tag="ritualhall_water"/>
      </Tasks>
    </RequestTask>
    
<!--    <RequestTask Name="sound_laser_request">
      <Condition>
        <Var Key="ritualhall" Name="sound_water" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="SET_SOUND" Mode="AddRepeatTag" Name="fire_burn.ogg" DelayMin="0" DelayMax="0" Tag="crypt"/>
      </Tasks>
    </RequestTask>-->
    
    <RequestTask Name="rotates_game_status">
      <Condition>
        <Var Key="ritualhall" Name="rotates_game_state" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="VISIBLE" Param1="game_rotates" Param2="0" Param3="1" />
        <Task Type="ENABLE" Param1="game_rotates" Param2="0" />
        <Task Type="VISIBLE" Param1="lamps_blink" Param2="0" Param3="0" Param4="1500" />
          <Task Type="SET_SOUND" Mode="DelayPlay" Name="gong.ogg" Delay="800"/>
        
        
            <Task Type="QUEUE" Mode="begin" Name="pause"/>
            <Task Type="DELAY" Delay="800"/>
        <Task Type="ENABLE" Param1="lamps_blink" Param2="0" />
            <Task Type="SET_PARTICLE" Particle="ItemUsed" ShowX="530" ShowY="370" OffX="0" OffY="0" Loop="0" ParticleId="ItemUsed_p" /> 
<!--            <Task Type="ENABLE" Param1="cage_inside" Param2="1" />
            <Task Type="VISIBLE" Param1="cage_inside" Param2="1" Param3="0" />-->
<!--        <Task Type="ENABLE" Param1="cage_inside" Param2="0" />
        <Task Type="VISIBLE" Param1="cage_inside" Param2="0" Param3="0" />-->
<!--        <Task Type="ENABLE" Param1="cage_p" Param2="0" />
        <Task Type="VISIBLE" Param1="cage_p" Param2="0" Param3="1" />
        <Task Type="ENABLE" Param1="cage_p" Param2="1" />
        <Task Type="VISIBLE" Param1="cage_p" Param2="1" Param3="0" />-->
            <Task Type="DELAY" Delay="500"/>
        <Task Type="SET_SOUND" Mode="Replay" Name="skeleton_move.ogg" />
        <Task Type="SET_PARTICLE" Particle="rh_cage" ShowX="540" ShowY="440" OffX="-10" OffY="5" Loop="0" ParticleId="rh_cage_p" /> 
<!--        <Task Type="ADD_VALUE" Key="ritualhall" Name="lotos_p4_ready" Operator="+" Value="1" />-->
            <Task Type="ADD_VALUE" Key="ritualhall" Name="sun_p1_ready" Operator="-" Value="1" />
            <Task Type="ADD_VALUE" Key="ritualhall" Name="sun_p2_state" Operator="+" Value="1" />
        <Task Type="ADD_MARK" Key="ritualhall" Name="lotos_p4_ready" Value="1" />
        <Task Type="DELAY" Delay="1100"/>
        <Task Type="VISIBLE" Param1="cage_hatch" Param2="0" Param3="0" />
        <Task Type="VISIBLE" Param1="cage_hatch_s" Param2="0" Param3="0" />
        <Task Type="VISIBLE" Param1="cage_top" Param2="1" Param3="0" Param4="1111" />
        <Task Type="VISIBLE" Param1="skeleton_hint" Param2="1" Param3="0" Param4="1111" />
        <Task Type="VISIBLE" Param1="cage_fence" Param2="1" Param3="0" Param4="1111" />
        <Task Type="VISIBLE" Param1="cage_s" Param2="1" Param3="0" Param4="1111" />
        <Task Type="REQUEST_TASKS" Param1="heart_status" />
        <Task Type="REQUEST_TASKS" Param1="lotos_p4_status" />
        <Task Type="ADD_MARK" Key="ritualhall" Name="cage_inside" Value="1" />
        <Task Type="ENABLE" Param1="cage_outside" Param2="1" />
        <Task Type="VISIBLE" Param1="cage_outside" Param2="1" Param3="0" />
            <Task Type="QUEUE" Mode="end"/>
<!--        <Task Type="ADD_VALUE" Key="ritualhall" Name="capsule_level" Operator="+" Value="1" />
        <Task Type="REQUEST_TASKS" Param1="capsule_disable" />-->
        <Task Type="ADD_MARK" Param1="ritualhall" Param2="rotates_game_state" Param3="2" />
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="sun_p2_status">
      <Condition>
        <Var Key="ritualhall" Name="sun_p2_state" Value="2" />
      </Condition>
      <Tasks>
        <Task Type="ENABLE" Param1="sun_p2" Param2="1" />
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="moon_find">
      <Condition>
        <Var Key="ritualhall" Name="first_moon" Value="4" />
      </Condition>
      <Tasks>
        <Task Type="ADD_MARK" Key="ritualhall" Name="projector_on" Value="0" />
        <Task Type="ENABLE" Param1="projector" Param2="0" />
        <Task Type="SET_SOUND" Mode="DelayPlay" Name="switch_off.ogg" Delay="100"/>
        <Task Type="VISIBLE" Param1="projector_light" Param2="0" Param3="0" Param4="1500"/>
        <Task Type="VISIBLE" Param1="foreground" Param2="0" Param3="0" Param4="1533"/>
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="sun_find">
      <Condition>
        <Var Key="ritualhall" Name="first_sun" Value="4" />
      </Condition>
      <Tasks>
        <Task Type="ADD_MARK" Key="ritualhall" Name="projector_on" Value="0" />
        <Task Type="ENABLE" Param1="moon_p3" Param2="0" />
        <Task Type="SET_SOUND" Mode="DelayPlay" Name="switch_off.ogg" Delay="100"/>
        <Task Type="VISIBLE" Param1="projector_light" Param2="0" Param3="0" Param4="500"/>
        <Task Type="VISIBLE" Param1="foreground" Param2="0" Param3="0" Param4="1133"/>
        <Task Type="VISIBLE" Param1="moon_p3" Param2="0" Param3="0" Param4="1133"/>
        <Task Type="QUEUE" Mode="begin" Name="pause_projector"/>
        <Task Type="DELAY" Delay="1200"/>
        <Task Type="ENABLE" Param1="projector" Param2="1" />
        <Task Type="QUEUE" Mode="end"  />
      </Tasks>
    </RequestTask>
    
<!--    <RequestTask Name="moon_find">
      <Condition>
        <Var Key="ritualhall" Name="first_moon" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="ADD_ITEM" Param1="GROUP" Param2="moon_group" Param3="0" />
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="sun_find">
      <Condition>
        <Var Key="ritualhall" Name="first_sun" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="ADD_ITEM" Param1="GROUP" Param2="sun_group" Param3="0" />
      </Tasks>
    </RequestTask>-->
    
    <RequestTask Name="heart_status">
      <Condition>
        <Var Key="ritualhall" Name="heart_ready" Value="0" />
      </Condition>
      <Tasks>
        <Task Type="ENABLE" Param1="skeleton_prehint" Param2="1" />
        <Task Type="VISIBLE" Param1="cage_skeleton_hand1" Param2="1" Param3="0" Param4="1111" />
        <Task Type="VISIBLE" Param1="cage_skeleton_noheart" Param2="1" Param3="0" Param4="1111" />
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="heart_status">
      <Condition>
        <Var Key="ritualhall" Name="heart_ready" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="ENABLE" Param1="skeleton_hint" Param2="1" />
        <Task Type="VISIBLE" Param1="cage_skeleton_hand1" Param2="1" Param3="0" Param4="1111" />
        <Task Type="VISIBLE" Param1="cage_skeleton_noheart" Param2="1" Param3="0" Param4="1111" />
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="heart_status">
      <Condition>
        <Var Key="ritualhall" Name="heart_ready" Value="2" />
      </Condition>
      <Tasks>
        <Task Type="ADD_VALUE" Key="ritualhall" Name="heart_ready" Operator="+" Value="1" />
<!--        <Task Type="ENABLE" Param1="sun_p2" Param2="1" />-->
        <Task Type="VISIBLE" Param1="sun_p2" Param2="1" Param3="0" Param4="700" />
        <Task Type="REQUEST_TASKS" Param1="sun_p2_status" />
<!--            <Task Type="MOVE" Name="sun_p2" X="0" Y="-50" IsShift="1" Mode="5" Loop="1500" />-->
            <Task Type="QUEUE" Mode="begin" Name="pause"/>
            <Task Type="DELAY" Delay="200"/>
            <Task Type="SET_PARTICLE" Particle="ItemUsed" ShowX="610" ShowY="285" OffX="0" OffY="0" Loop="0" ParticleId="ItemUsed_p" /> 
            <Task Type="QUEUE" Mode="end"/>
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="heart_status">
      <Condition>
        <Var Key="ritualhall" Name="heart_ready" Value="3" />
      </Condition>
      <Tasks>
<!--        <Task Type="ENABLE" Param1="sun_p2" Param2="1" />-->
        <Task Type="REQUEST_TASKS" Param1="sun_p2_status" />
        <Task Type="VISIBLE" Param1="sun_p2" Param2="1" Param3="0" />
        <Task Type="VISIBLE" Param1="cage_skeleton_hand2" Param2="1" Param3="0" Param4="1111" />
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="heart_status">
      <Condition>
        <Var Key="ritualhall" Name="heart_ready" Value="4" />
      </Condition>
      <Tasks>
        <Task Type="VISIBLE" Param1="cage_skeleton_hand2" Param2="1" Param3="0" Param4="1111" />
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="heart_p1_status">
      <Condition>
        <Var Key="ritualhall" Name="heart_p1_ready" Value="2" />
      </Condition>
      <Tasks>
        <Task Type="ENABLE" Param1="heart_p1" Param2="1" />
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="moon_p3_status">
      <Condition>
        <Var Key="ritualhall" Name="moon_p3_ready" Value="3" />
        <Var Key="ritualhall" Name="projector_on" Value="1" />
      </Condition>
      <Tasks>
<!--        <Task Type="ENABLE" Param1="moon_p3" Param2="1" />-->
        <Task Type="VISIBLE" Param1="moon_p3" Param2="1" Param3="0" Param4="1133"/>
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="moon_p3_status">
      <Condition>
        <Var Key="ritualhall" Name="moon_p3_ready" Value="4" />
        <Var Key="ritualhall" Name="projector_on" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="ENABLE" Param1="moon_p3" Param2="1" />
        <Task Type="VISIBLE" Param1="moon_p3" Param2="1" Param3="0" Param4="1133"/>
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="sun_p1_status">
      <Condition>
        <Var Key="ritualhall" Name="sun_p1_ready" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="ENABLE" Param1="sun_p1" Param2="1" />
      </Tasks>
    </RequestTask>
    
<!--    <RequestTask Name="lotos_p1_status">
      <Condition>
        <Var Key="ritualhall" Name="lotos_p1_ready" Value="0" />
      </Condition>
      <Tasks>
        <Task Type="VISIBLE" Param1="lotos_p1" Param2="1" Param3="0" Param4="1133"/>
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="lotos_p1_status">
      <Condition>
        <Var Key="ritualhall" Name="lotos_p1_ready" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="ENABLE" Param1="lotos_p1" Param2="1" />
        <Task Type="VISIBLE" Param1="lotos_p1" Param2="1" Param3="0" Param4="1133"/>
      </Tasks>
    </RequestTask>-->
    
<!--    <RequestTask Name="lotos_p2_status">
      <Condition>
        <Var Key="ritualhall" Name="lotos_p2_ready" Value="0" />
      </Condition>
      <Tasks>
        <Task Type="VISIBLE" Param1="lotos_p2" Param2="1" Param3="0" Param4="1500"/>
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="lotos_p2_status">
      <Condition>
        <Var Key="ritualhall" Name="lotos_p2_ready" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="ENABLE" Param1="lotos_p2" Param2="1" />
        <Task Type="VISIBLE" Param1="lotos_p2" Param2="1" Param3="0" Param4="1133"/>
      </Tasks>
    </RequestTask>-->
    
    <RequestTask Name="lotos_p1_status">
      <Condition Mode="And">
        <Var Key="ritualhall" Name="projector_on" Value="1" />
        <Var Key="ritualhall" Name="lotos_p1_active_ready" Value="0" />
      </Condition>
      <Tasks>
        <Task Type="VISIBLE" Param1="lotos_p1" Param2="1" Param3="0" Param4="1133"/>
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="lotos_p1_status">
      <Condition Mode="And">
        <Var Key="ritualhall" Name="projector_on" Value="1" />
        <Var Key="ritualhall" Name="lotos_p1_active_ready" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="ENABLE" Param1="lotos_p1" Param2="1" />
        <Task Type="VISIBLE" Param1="lotos_p1" Param2="1" Param3="0" Param4="1133"/>
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="lotos_p2_status">
      <Condition Mode="And">
        <Var Key="ritualhall" Name="projector_on" Value="1" />
        <Var Key="ritualhall" Name="lotos_p2_active_ready" Value="0" />
      </Condition>
      <Tasks>
        <Task Type="VISIBLE" Param1="lotos_p2" Param2="1" Param3="0" Param4="1500"/>
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="lotos_p2_status">
      <Condition Mode="And">
        <Var Key="ritualhall" Name="projector_on" Value="1" />
        <Var Key="ritualhall" Name="lotos_p2_active_ready" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="ENABLE" Param1="lotos_p2" Param2="1" />
        <Task Type="VISIBLE" Param1="lotos_p2" Param2="1" Param3="0" Param4="1133"/>
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="lotos_p4_status">
      <Condition Mode="And">
        <Var Key="ritualhall" Name="lotos_p4_ready" Value="1" />
        <Var Key="ritualhall" Name="lotos_p4_active_ready" Value="0" />
      </Condition>
      <Tasks>
        <Task Type="VISIBLE" Param1="lotos_p4" Param2="1" Param3="0" />
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="lotos_p4_status">
<!--      <Condition>
        <Var Key="ritualhall" Name="lotos_p4_ready" Value="1" />
      </Condition>-->
      <Condition Mode="And">
        <Var Key="ritualhall" Name="lotos_p4_ready" Value="1" />
        <Var Key="ritualhall" Name="lotos_p4_active_ready" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="VISIBLE" Param1="lotos_p4" Param2="1" Param3="0" />
        <Task Type="ENABLE" Param1="lotos_p4" Param2="1" />
<!--        <Task Type="REQUEST_TASKS" Param1="lotos_p4_active" />-->
      </Tasks>
    </RequestTask>
    
<!--    <RequestTask Name="lotos_p4_active">
      <Condition>
        <Var Key="ritualhall" Name="lotos_p4_active_ready" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="ENABLE" Param1="lotos_p4" Param2="1" />
      </Tasks>
    </RequestTask>-->
    
    <RequestTask Name="harp_p2_status">
      <Condition Mode="And">
        <Var Key="ritualhall" Name="projector_on" Value="1" />
        <Var Key="ritualhall" Name="harp_p2_active_ready" Value="0" />
      </Condition>
      <Tasks>
        <Task Type="VISIBLE" Param1="harp_p2" Param2="1" Param3="0" Param4="1133"/>
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="harp_p2_status">
      <Condition Mode="And">
        <Var Key="ritualhall" Name="projector_on" Value="1" />
        <Var Key="ritualhall" Name="harp_p2_active_ready" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="ENABLE" Param1="harp_p2" Param2="1" />
        <Task Type="VISIBLE" Param1="harp_p2" Param2="1" Param3="0" Param4="1133"/>
      </Tasks>
    </RequestTask>
    
    <!--    <RequestTask Name="harp_p2_status">
      <Condition>
        <Var Key="ritualhall" Name="harp_p2_ready" Value="0" />
      </Condition>
      <Tasks>
        <Task Type="VISIBLE" Param1="harp_p2" Param2="1" Param3="0" Param4="1133"/>
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="harp_p2_status">
      <Condition>
        <Var Key="ritualhall" Name="harp_p2_ready" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="ENABLE" Param1="harp_p2" Param2="1" />
        <Task Type="VISIBLE" Param1="harp_p2" Param2="1" Param3="0" Param4="1133"/>
      </Tasks>
    </RequestTask>-->
    
    <RequestTask Name="tree_status">
      <Condition>
        <Var Key="ritualhall" Name="tree_ready" Value="2" />
      </Condition>
      <Tasks>
        <Task Type="ENABLE" Param1="projector" Param2="0" />
        <Task Type="VISIBLE" Param1="projector_light" Param2="0" Param3="0" Param4="1500"/>
<!--        <Task Type="SET_SOUND" Mode="DelayPlay" Name="bonus_check.ogg" Delay="0"/>-->
            <Task Type="ENABLE" Param1="cage_inside" Param2="0" />
            <Task Type="ENABLE" Param1="cage_outside" Param2="0" />
        <Task Type="ENABLE" Param1="capsule_tree_hint" Param2="0" />
        <Task Type="ENABLE" Param1="capsule_tree_prehint" Param2="0" />
        <Task Type="QUEUE" Mode="begin" Name="final_tree_grow"/>
        <Task Type="DELAY" Delay="2000"/>
        <Task Type="SET_SOUND" Mode="DelayPlay" Name="tree_grow.ogg" Delay="0"/>
        <Task Type="VISIBLE" Param1="tree_small" Param2="0" Param3="0" Param4="2500" />
        <Task Type="VISIBLE" Param1="tree_big" Param2="1" Param3="0" Param4="2000" />
        <Task Type="VISIBLE" Param1="tree_big_s" Param2="1" Param3="0" Param4="2000" />
        <Task Type="DELAY" Delay="1500"/>
        <Task Type="SET_PARTICLE" Particle="ItemUsed" ShowX="390" ShowY="200" OffX="0" OffY="0" Loop="0" ParticleId="ItemUsed_p" /> 
        <Task Type="DELAY" Delay="505"/>
        <Task Type="ENABLE" Param1="tree_big" Param2="1" />
        <Task Type="ADD_VALUE" Key="ritualhall" Name="tree_ready" Operator="+" Value="1" />
        <Task Type="QUEUE" Mode="end"/>
      </Tasks>
    </RequestTask>
    
    
    
    <RequestTask Name="capsule_disable">
      <Condition>
        <Var Key="ritualhall" Name="capsule_level" Value="3" />
      </Condition>
      <Tasks>
        <Task Type="ADD_MARK" Param1="ritualhall" Param2="sound_capsule" Param3="1" />
        <Task Type="ADD_MARK" Param1="ritualhall" Param2="capsule_level" Param3="4" />
        <Task Type="SET_SOUND" Mode="DelRepeatTag"  Tag="ritualhall_capsule"/>
        <Task Type="ENABLE" Param1="capsule_hint" Param2="0" />
            <Task Type="SET_SOUND" Mode="DelayPlay" Name="electro_sparks.ogg" Delay="200"/>
        <Task Type="VISIBLE" Param1="energymeter_light" Param2="0" Param3="0" Param4="2000" />
        <Task Type="QUEUE" Mode="begin" Name="pause_capsule"/>
        <Task Type="DELAY" Delay="1000"/>
        <Task Type="VISIBLE" Param1="capsule_pulsar_p" Param2="0" Param3="0" Param4="1500" />
        <Task Type="VISIBLE" Param1="energymeter_energy3" Param2="0" Param3="0" Param4="1500" />
        <Task Type="VISIBLE" Param1="capsule_light" Param2="0" Param3="0" Param4="1500" />
        <Task Type="DELAY" Delay="1000"/>
        <Task Type="VISIBLE" Param1="capsule_hint" Param2="0" Param3="0" Param4="2500" />
        <Task Type="ENABLE" Param1="capsule_pulsar_p" Param2="0" />
        <Task Type="ENABLE" Param1="capsule_tree_prehint" Param2="1" />
        <Task Type="VISIBLE" Param1="capsule_tree_prehint" Param2="1" Param3="0"  />
        <Task Type="QUEUE" Mode="end"  />
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="projector_do">
      <Condition>
        <Var Key="ritualhall" Name="projector_on" Value="0" />
      </Condition>
      <Tasks>
<!--        <Task Type="ADD_MARK" Param1="ritualhall" Param2="projector_state" Param3="1" />-->
        <Task Type="SET_SOUND" Mode="DelayPlay" Name="switch_on.ogg" Delay="100"/>
        <Task Type="VISIBLE" Param1="projector_light" Param2="1" Param3="0" Param4="500"/>
        <Task Type="VISIBLE" Param1="foreground" Param2="1" Param3="0" Param4="833"/>
        <Task Type="ADD_MARK" Key="ritualhall" Name="projector_on" Value="1" />
        <Task Type="REQUEST_TASKS" Param1="lotos_p1_status" />
        <Task Type="REQUEST_TASKS" Param1="lotos_p2_status" />
        <Task Type="REQUEST_TASKS" Param1="moon_p3_status" />
        <Task Type="REQUEST_TASKS" Param1="harp_p2_status" />
        <Task Type="QUEUE" Mode="begin" Name="pause_projector"/>
        <Task Type="DELAY" Delay="1200"/>
        <Task Type="ENABLE" Param1="projector" Param2="1" />
        <Task Type="QUEUE" Mode="end"  />
        <Task Type="ADD_VALUE" Key="ritualhall" Name="capsule_level" Operator="+" Value="1" />
        <Task Type="REQUEST_TASKS" Param1="capsule_disable" />
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="projector_do">
      <Condition>
        <Var Key="ritualhall" Name="projector_on" Value="1" />
      </Condition>
      <Tasks>
<!--        <Task Type="ADD_MARK" Param1="ritualhall" Param2="projector_state" Param3="0" />-->
        <Task Type="ADD_MARK" Key="ritualhall" Name="projector_on" Value="0" />
        <Task Type="ENABLE" Param1="moon_p3" Param2="0" />
        <Task Type="ENABLE" Param1="lotos_p1" Param2="0" />
        <Task Type="ENABLE" Param1="lotos_p2" Param2="0" />
        <Task Type="ENABLE" Param1="harp_p2" Param2="0" />
        <Task Type="SET_SOUND" Mode="DelayPlay" Name="switch_off.ogg" Delay="100"/>
        <Task Type="VISIBLE" Param1="projector_light" Param2="0" Param3="0" Param4="500"/>
        <Task Type="VISIBLE" Param1="foreground" Param2="0" Param3="0" Param4="1133"/>
        <Task Type="VISIBLE" Param1="lotos_p1" Param2="0" Param3="0" Param4="1133"/>
        <Task Type="VISIBLE" Param1="lotos_p2" Param2="0" Param3="0" Param4="1133"/>
        <Task Type="VISIBLE" Param1="moon_p3" Param2="0" Param3="0" Param4="1133"/>
        <Task Type="VISIBLE" Param1="harp_p2" Param2="0" Param3="0" Param4="1133"/>
        <Task Type="ADD_VALUE" Key="ritualhall" Name="capsule_level" Operator="-" Value="1" />
        <Task Type="QUEUE" Mode="begin" Name="pause_projector"/>
        <Task Type="DELAY" Delay="1200"/>
        <Task Type="ENABLE" Param1="projector" Param2="1" />
        <Task Type="QUEUE" Mode="end"  />
      </Tasks>
    </RequestTask>

    <RequestTask Name="help_sinchronization">
      <Condition>
        <Var Key="help" Name="state" Value="42" Mode="Less" />
      </Condition>
      <Tasks>
        <Task Type="REQUEST_TASKS" NameOfRequest="make_ritualhall_begin_help" />
        <Task Type="ADD_VALUE" Key="help" Name="state" Operator="set" Value="42" />
      </Tasks>
    </RequestTask>

    <RequestTask Name="projector_light">
      <Condition>
        <Var Key="ritualhall" Name="projector_on" Value="0" />
      </Condition>
      <Tasks>
        <Task Type="EFFECT" Param1="HELP_FUN" Param2="projector"/>
      </Tasks>
    </RequestTask>
    <RequestTask Name="cage_outside_light">
      <Condition>
        <Var Key="ritualhall" Name="cage_inside" Value="1" />
      </Condition>
      <Tasks>
        <Task Type="EFFECT" Param1="HELP_FUN" Param2="cage_outside"/>
      </Tasks>
    </RequestTask>
    
    <RequestTask Name="cage_inside_light">
      <Condition>
        <Var Key="ritualhall" Name="cage_inside" Value="0" />
      </Condition>
      <Tasks>
        <Task Type="EFFECT" Param1="HELP_FUN" Param2="cage_inside"/>
      </Tasks>
    </RequestTask>

  </RequestTasks>


  <Conversations>

    <Conversation Name="to_deactivate_capsule" CountOfStartSentese="1">
      <Dialogs>
      
<!--        <Sentense>
          <Character>
            <Body Key="mia" Name="default"/>
            <Align Value="left"/>
          </Character>
          <Dialog>
            <Description Key="dialog" Name="1"/>
            <Align Value="left"/>
          </Dialog>
        </Sentense>-->

        <Sentense>
          <Character>
            <Body Key="jack" Name="default"/>
            <Align Value="right"/>
          </Character>
          <Dialog>
            <Description Key="dialog" Name="3"/>
            <Align Value="right"/>
          </Dialog>
        </Sentense>
      </Dialogs>

      <Tasks>
        <Task Type="SET_HINT" Param1="goal" Param2="2" Param3="0" />
        <Task Type="ENABLE" Param1="capsule_hint" Param2="1" />
        <Task Type="ENABLE" Param1="idol_prehint" Param2="1" />
        <Task Type="VISIBLE" Param1="idol_prehint" Param2="1" Param3="0" />
        <Task Type="ENABLE" Param1="mermaid_prehint" Param2="1" />
        <Task Type="VISIBLE" Param1="mermaid_prehint" Param2="1" Param3="0" />
        <Task Type="ENABLE" Param1="laser_prehint" Param2="1" />
        <Task Type="VISIBLE" Param1="laser_prehint" Param2="1" Param3="0" />
<!--        <Task Type="ENABLE" Param1="projector" Param2="1" />-->
        <Task Type="ENABLE" Param1="game_rotates" Param2="1" />
        <Task Type="VISIBLE" Param1="game_rotates" Param2="1" Param3="0" />
      </Tasks>
    </Conversation>

<!--    <Conversation Name="grow_tree" CountOfStartSentese="2">
      <Dialogs>
        <Sentense>
          <Character>
            <Body Key="mia" Name="default"/>
            <Align Value="left"/>
          </Character>
          <Dialog>
            <Description Key="dialog" Name="5"/>
            <Align Value="left"/>
          </Dialog>
        </Sentense>

        <Sentense>
          <Character>
            <Body Key="jack" Name="default"/>
            <Align Value="right"/>
          </Character>
        </Sentense>
      </Dialogs>

      <Tasks>
        <Task Type="SET_HINT" Param1="goal" Param2="3" Param3="0" />
        <Task Type="ENABLE" Param1="capsule_tree_hint" Param2="1" />
        <Task Type="VISIBLE" Param1="capsule_tree_hint" Param2="1" Param3="0" />
        
        
        <Task Type="ADD_ITEM" Param1="GROUP" Param2="moon_group" Param3="0" />
        <Task Type="ADD_ITEM" Param1="GROUP" Param2="sun_group" Param3="0" />
            
        <Task Type="ENABLE" Param1="sun_p1" Param2="1" />
        <Task Type="ENABLE" Param1="sun_p3" Param2="1" />
        <Task Type="ENABLE" Param1="sun_p4" Param2="1" />
        <Task Type="ENABLE" Param1="moon_p1" Param2="1" />
        <Task Type="ENABLE" Param1="moon_p2" Param2="1" />
        <Task Type="ENABLE" Param1="moon_p4" Param2="1" />
        
            <Task Type="ADD_VALUE" Key="ritualhall" Name="sun_p1_ready" Operator="+" Value="1" />
        <Task Type="ADD_MARK" Param1="ritualhall" Param2="sun_p2_state" Param3="1" />
            <Task Type="ADD_VALUE" Key="ritualhall" Name="moon_p3_ready" Operator="+" Value="1" />
        <Task Type="REQUEST_TASKS" Param1="sun_p1_status" />
        <Task Type="REQUEST_TASKS" Param1="sun_p2_status" />
        <Task Type="REQUEST_TASKS" Param1="moon_p3_status" />
        
      </Tasks>
    </Conversation>-->

  </Conversations>


</Quest>