<?xml version="1.0" encoding="utf-8"?>
<Scenes>
  <S_6_DOCK Ambient="6_dock.ini">
    <Objects>
      <frame>
        <States>
          <general X="0" Y="0" Width="1366" Height="800" Enabled="1" />
        </States>
        <Events>
          <SceneLoad act1="load" />
          <SceneEnter act1="enter" />
        </Events>
        <Actions>
          <load>
            <Operations>
              <ChangeScene scene="S_6_DOCK_VIDEO"></ChangeScene>
            </Operations>
          </load>
          <enter>
            <Operations>
              <ChangeObjectState state="off" obj="mask_rain"></ChangeObjectState>
              <ChangeObjectState state="off" obj="mask_drops"></ChangeObjectState>
              <ChangeObjectState state="off" obj="mask_drops_0"></ChangeObjectState>
              <ChangeObjectState state="off" obj="water_2"></ChangeObjectState>
              <ChangeObjectState state="off" obj="water_3"></ChangeObjectState>
              <ChangeObjectState state="general" obj="mask_rain">
                <Conditions>
                  <eq Arg1="S_GLOBAL.rain.mode" Arg2="$2" />
                </Conditions>
              </ChangeObjectState>
              <ChangeObjectState state="general" obj="mask_drops_0">
                <Conditions>
                  <eq Arg1="S_GLOBAL.rain.mode" Arg2="$2" />
                </Conditions>
              </ChangeObjectState>
              <ChangeObjectState state="general" obj="mask_drops">
                <Conditions>
                  <eq Arg1="S_GLOBAL.rain.mode" Arg2="$2" />
                </Conditions>
              </ChangeObjectState>
              <ChangeObjectState state="off" obj="water_1"></ChangeObjectState>
              <ChangeObjectState state="general" obj="water_1">
                <Conditions>
                  <eq Arg1="S_GLOBAL.rain.mode" Arg2="$2" />
                </Conditions>
              </ChangeObjectState>
              <ChangeObjectState state="general" obj="water_2">
                <Conditions>
                  <eq Arg1="S_GLOBAL.rain.mode" Arg2="$2" />
                </Conditions>
              </ChangeObjectState>
              <ChangeObjectState state="general" obj="water_3">
                <Conditions>
                  <eq Arg1="S_GLOBAL.rain.mode" Arg2="$2" />
                </Conditions>
              </ChangeObjectState>
              <ChangeObjectState state="off" obj="S_6_DOCK_CHEST.mask_rain"></ChangeObjectState>
              <ChangeObjectState state="off" obj="S_6_DOCK_CHEST.mask_drops"></ChangeObjectState>
              <ChangeObjectState state="off" obj="S_6_DOCK_CHEST.mask_drops_0"></ChangeObjectState>
              <ChangeObjectState state="off" obj="S_6_DOCK_BOTTLE.mask_rain"></ChangeObjectState>
              <ChangeObjectState state="off" obj="S_6_DOCK_BOTTLE.mask_rain2"></ChangeObjectState>
              <ChangeObjectState state="off" obj="S_6_DOCK_BOTTLE.mask_drops"></ChangeObjectState>
              <ChangeObjectState state="off" obj="S_6_DOCK_BOTTLE.mask_drops_0"></ChangeObjectState>
              <ChangeObjectState state="off" obj="S_6_DOCK_GRILLE.mask_drops_0"></ChangeObjectState>
              <ChangeObjectState state="st_no_fx" obj="S_6_DOCK_GRILLE.cap"></ChangeObjectState>
              <ChangeObjectState state="off" obj="S_6_DOCK_GRILLE.mask_rain"></ChangeObjectState>
              <ChangeObjectState state="st_no_fx" obj="S_6_DOCK_GRILLE.grille">
                <Conditions>
                  <eq Arg1="#ObjectState:S_6_DOCK_GRILLE.grille" Arg2="$general" />
                </Conditions>
              </ChangeObjectState>
              <ChangeObjectState state="general" obj="S_6_DOCK_CHEST.mask_rain">
                <Conditions>
                  <eq Arg1="S_GLOBAL.rain.mode" Arg2="$2" />
                </Conditions>
              </ChangeObjectState>
              <ChangeObjectState state="general" obj="S_6_DOCK_CHEST.mask_drops">
                <Conditions>
                  <eq Arg1="S_GLOBAL.rain.mode" Arg2="$2" />
                </Conditions>
              </ChangeObjectState>
              <ChangeObjectState state="general" obj="S_6_DOCK_CHEST.mask_drops_0">
                <Conditions>
                  <eq Arg1="S_GLOBAL.rain.mode" Arg2="$2" />
                </Conditions>
              </ChangeObjectState>
              <ChangeObjectState state="general" obj="S_6_DOCK_BOTTLE.mask_rain">
                <Conditions>
                  <eq Arg1="S_GLOBAL.rain.mode" Arg2="$2" />
                </Conditions>
              </ChangeObjectState>
              <ChangeObjectState state="general" obj="S_6_DOCK_BOTTLE.mask_rain2">
                <Conditions>
                  <eq Arg1="S_GLOBAL.rain.mode" Arg2="$2" />
                </Conditions>
              </ChangeObjectState>
              <ChangeObjectState state="general" obj="S_6_DOCK_BOTTLE.mask_drops">
                <Conditions>
                  <eq Arg1="S_GLOBAL.rain.mode" Arg2="$2" />
                </Conditions>
              </ChangeObjectState>
              <ChangeObjectState state="general" obj="S_6_DOCK_BOTTLE.mask_drops_0">
                <Conditions>
                  <eq Arg1="S_GLOBAL.rain.mode" Arg2="$2" />
                </Conditions>
              </ChangeObjectState>
              <ChangeObjectState state="general" obj="S_6_DOCK_GRILLE.mask_drops_0">
                <Conditions>
                  <eq Arg1="S_GLOBAL.rain.mode" Arg2="$2" />
                </Conditions>
              </ChangeObjectState>
              <ChangeObjectState state="general" obj="S_6_DOCK_GRILLE.cap">
                <Conditions>
                  <eq Arg1="S_GLOBAL.rain.mode" Arg2="$2" />
                </Conditions>
              </ChangeObjectState>
              <ChangeObjectState state="general" obj="S_6_DOCK_GRILLE.mask_rain">
                <Conditions>
                  <eq Arg1="S_GLOBAL.rain.mode" Arg2="$2" />
                </Conditions>
              </ChangeObjectState>
              <ChangeObjectState state="general" obj="S_6_DOCK_GRILLE.grille">
                <Conditions>
                  <eq Arg1="S_GLOBAL.rain.mode" Arg2="$2" />
                  <eq Arg1="#ObjectState:S_6_DOCK_GRILLE.grille" Arg2="$st_no_fx" />
                </Conditions>
              </ChangeObjectState>
            </Operations>
          </enter>
        </Actions>
      </frame>
      <sky>
        <States>
          <general Image="IMAGE_6_DOCK_SKY" X="0" Y="300" Enabled="1" CenterY="300" />
        </States>
        <Events>
          <SceneLoad act1="load" />
        </Events>
        <Actions>
          <load Modal="0">
            <Operations>
              <ExecuteAction act="loop" />
            </Operations>
          </load>
          <loop Modal="0">
            <Operations>
              <MoveObjectByTrajectory Value="tr_sky1"></MoveObjectByTrajectory>
              <MoveObjectByTrajectory Value="tr_sky2" />
              <ExecuteAction act="loop" />
            </Operations>
          </loop>
        </Actions>
      </sky>
      <sky2>
        <States>
          <general Image="IMAGE_6_DOCK_SKY" X="0" Y="300" Enabled="1" CenterY="300" />
        </States>
        <Events>
          <SceneLoad act1="load" />
        </Events>
        <Actions>
          <load Modal="0">
            <Operations>
              <ExecuteAction act="loop" />
            </Operations>
          </load>
          <loop Modal="0">
            <Operations>
              <MoveObjectByTrajectory Value="tr_sky2"></MoveObjectByTrajectory>
              <MoveObjectByTrajectory Value="tr_sky1" />
              <ExecuteAction act="loop" />
            </Operations>
          </loop>
        </Actions>
      </sky2>
      <cloud_1_add>
        <States>
          <general X="90" Y="0" Image="IMAGE_6_DOCK_CLOUD_1_ADD" DrawMode="Add" Enabled="1"></general>
        </States>
        <Actions>
          <load Modal="0">
            <Operations>
              <MoveObjectByTrajectory Value="tr_cloud1"></MoveObjectByTrajectory>
              <ExecuteAction act="load" />
            </Operations>
          </load>
        </Actions>
        <Events>
          <SceneLoad act1="load" />
        </Events>
      </cloud_1_add>
      <cloud_2_add>
        <States>
          <general X="767" Y="66" Image="IMAGE_6_DOCK_CLOUD_2_ADD" DrawMode="Add" Enabled="1"></general>
        </States>
        <Actions>
          <load Modal="0">
            <Operations>
              <MoveObjectByTrajectory Value="tr_cloud2"></MoveObjectByTrajectory>
              <ExecuteAction act="load" />
            </Operations>
          </load>
        </Actions>
        <Events>
          <SceneLoad act1="load" />
        </Events>
      </cloud_2_add>
      <cloud_3_add>
        <States>
          <general X="354" Y="0" Image="IMAGE_6_DOCK_CLOUD_3_ADD" DrawMode="Add" Enabled="1"></general>
        </States>
        <Actions>
          <load Modal="0">
            <Operations>
              <MoveObjectByTrajectory Value="tr_cloud2_0"></MoveObjectByTrajectory>
              <ExecuteAction act="loop" />
            </Operations>
          </load>
          <loop Modal="0">
            <Operations>
              <MoveObjectByTrajectory Value="tr_cloud2"></MoveObjectByTrajectory>
              <ExecuteAction act="loop" />
            </Operations>
          </loop>
        </Actions>
        <Events>
          <SceneLoad act1="load" />
        </Events>
      </cloud_3_add>
      <sea>
        <States>
          <general X="0" Y="300" Image="IMAGE_6_DOCK_SEA" />
        </States>
      </sea>
      <rocks>
        <States>
          <general X="0" Y="0" Image="IMAGE_6_DOCK_ROCKS" />
        </States>
      </rocks>
      <water>
        <States>
          <general X="270" Y="286" Movie="VIDEO_6_WATER_LOOP" />
        </States>
      </water>
      <ship_1_hub>
        <States>
          <general X="806" Y="435" Widht="1" Height="1">
            <Effects>
              <Oscillation st_min="st_min" st_max="st_max" time="3200" scope="1111" bRand="0" bSmoth="1" />
            </Effects>
          </general>
          <st_max Y="432"></st_max>
          <st_min Y="438" />
        </States>
        <Objects>
          <ship_1>
            <States>
              <general X="0" Y="0" Image="IMAGE_6_DOCK_SHIP_1" CenterX="256" CenterY="435">
                <Effects>
                  <Oscillation st_min="st_min" st_max="st_max" time="2700" scope="1111" bRand="0" bSmoth="1" />
                </Effects>
              </general>
              <st_max Angle="-1"></st_max>
              <st_min Angle="1" />
            </States>
            <Objects>
              <sail_1>
                <States>
                  <general X="-242" Y="-425" Image="IMAGE_6_DOCK_SAIL_1">
                    <Effects>
                      <Grid arg="effects/grid_s6_sail1.xml" />
                    </Effects>
                  </general>
                </States>
              </sail_1>
              <sail_2>
                <States>
                  <general X="28" Y="-284" Image="IMAGE_6_DOCK_SAIL_2">
                    <Effects>
                      <Grid arg="effects/grid_s6_sail5.xml" />
                    </Effects>
                  </general>
                </States>
              </sail_2>
              <patch_sail_2>
                <States>
                  <general X="14" Y="-223" Image="IMAGE_6_DOCK_PATCH_SAIL_2" />
                </States>
              </patch_sail_2>
              <sail_3>
                <States>
                  <general X="-12" Y="-360" Image="IMAGE_6_DOCK_SAIL_3">
                    <Effects>
                      <Grid arg="effects/grid_s6_sail3.xml" />
                    </Effects>
                  </general>
                </States>
              </sail_3>
            </Objects>
          </ship_1>
        </Objects>
      </ship_1_hub>
      <ship_2_hub>
        <States>
          <general X="-130" Y="665" Widht="1" Height="1">
            <Effects>
              <Oscillation st_min="st_min" st_max="st_max" time="3000" scope="1111" bRand="0" bSmoth="1" />
            </Effects>
          </general>
          <st_max Y="652"></st_max>
          <st_min Y="660" />
        </States>
        <Objects>
          <ship_2>
            <States>
              <general X="0" Y="0" Image="IMAGE_6_DOCK_SHIP_2" CenterX="-111" CenterY="665">
                <Effects>
                  <Oscillation st_min="st_min" st_max="st_max" time="2400" scope="1111" bRand="0" bSmoth="1" />
                </Effects>
              </general>
              <st_max Angle="-1"></st_max>
              <st_min Angle="1" />
            </States>
            <Objects>
              <sail_4>
                <States>
                  <general X="297" Y="-665" Image="IMAGE_6_DOCK_SAIL_4">
                    <Effects>
                      <Grid arg="effects/grid_s6_sail4.xml" />
                    </Effects>
                  </general>
                </States>
              </sail_4>
              <sail_5>
                <States>
                  <general X="345" Y="-501" Image="IMAGE_6_DOCK_SAIL_5">
                    <Effects>
                      <Grid arg="effects/grid_s6_sail5.xml" />
                    </Effects>
                  </general>
                </States>
              </sail_5>
            </Objects>
          </ship_2>
        </Objects>
      </ship_2_hub>
      <back>
        <States>
          <general X="0" Y="0" Image="IMAGE_6_DOCK_BACK" />
        </States>
      </back>
      <water_1>
        <States>
          <general X="938" Y="202" Image="IMAGE_PARTICLE_WATER_1" HitTest="Rect" ScaleY="0.5" Enabled="1" Angle="0"></general>
          <off ScaleY="0.8" ScaleX="0.8" CA="200">
            <Effects>
              <Drop image_anim="NULL" time_drop_in_anim="100" time_pause_min="1000" time_pause_max="2500" image_drop="IMAGE_PARTICLE_DROP" drop1="941,202,935,364,200" />
            </Effects>
          </off>
        </States>
      </water_1>
      <chest>
        <States>
          <general X="208" Y="436" Image="IMAGE_6_DOCK_CHEST_CLOSED" />
          <st2 X="169" Y="423" Image="IMAGE_6_DOCK_CHEST_OPEN" />
        </States>
      </chest>
      <waterplant>
        <States>
          <general X="282" Y="457" Image="IMAGE_6_DOCK_WATERPLANT" />
          <off />
        </States>
      </waterplant>
      <fog_add>
        <States>
          <general X="324" Y="258" Image="IMAGE_6_DOCK_FOG_ADD" DrawMode="Add" Enabled="1" ClipRect="643,222,414,187"></general>
        </States>
        <Actions>
          <load Modal="0">
            <Operations>
              <MoveObjectByTrajectory Value="tr_fog_1" />
              <ExecuteAction act="load" />
            </Operations>
          </load>
        </Actions>
        <Events>
          <SceneLoad act1="load" />
        </Events>
      </fog_add>
      <fog_12>
        <States>
          <general Image="IMAGE_6_DOCK_FOG_ADD" X="340" Y="258" Enabled="1" DrawMode="Add" ClipRect="643,222,414,187" />
        </States>
        <Events>
          <SceneLoad act1="load" />
        </Events>
        <Actions>
          <load Modal="0">
            <Operations>
              <MoveObjectByTrajectory Value="tr_fog_1_2" />
              <ExecuteAction act="loop" />
            </Operations>
          </load>
          <loop Modal="0">
            <Operations>
              <MoveObjectByTrajectory Value="tr_fog_1" />
              <ExecuteAction act="loop" />
            </Operations>
          </loop>
        </Actions>
      </fog_12>
      <video_pirat_fall>
        <Actions>
          <end>
            <Conditions>
              <eq Arg1="$VIDEO_6_PIRATE_SLEEP" Arg2="$arg" />
            </Conditions>
            <Operations>
              <ChangeObjectState state="general" obj="pirate_sleep" />
              <ChangeObjectState state="off"></ChangeObjectState>
              <ChangeObjectState state="goto" obj="mask_go"></ChangeObjectState>
              <Pause time="300" />
              <ShowTextMessage Value="BBT_6_PIRATE_SLEEP" />
              <PlayMusic name="music_9" />
            </Operations>
          </end>
        </Actions>
        <Events>
          <VideoCompleted act1="end" />
        </Events>
        <States>
          <off />
          <st_sleep X="688" Y="251" Movie="VIDEO_6_PIRATE_SLEEP" Enabled="1" />
        </States>
      </video_pirat_fall>
      <patch_fog2>
        <States>
          <general X="522" Y="259" Image="IMAGE_6_DOCK_PATCH_FOG2" />
        </States>
      </patch_fog2>
      <patch_fog1>
        <States>
          <general X="989" Y="268" Image="IMAGE_6_DOCK_PATCH_FOG1" />
        </States>
      </patch_fog1>
      <grill_1>
        <States>
          <general X="672" Y="531" Image="IMAGE_6_DOCK_GRILL_1_CLOSED" />
          <st2 X="750" Y="563" Image="IMAGE_6_DOCK_GRILL_1_OPEN" />
        </States>
      </grill_1>
      <grill_2>
        <States>
          <general X="604" Y="430" Image="IMAGE_6_DOCK_GRILL_2_CLOSED" />
          <st2 X="556" Y="440" Image="IMAGE_6_DOCK_GRILL_2_OPEN" />
        </States>
      </grill_2>
      <roof>
        <States>
          <general X="942" Y="0" Image="IMAGE_6_DOCK_ROOF" />
        </States>
      </roof>
      <paper>
        <States>
          <general X="694" Y="371" Image="IMAGE_6_DOCK_PAPER" />
          <off />
        </States>
      </paper>
      <bottle>
        <States>
          <general X="724" Y="348" Image="IMAGE_6_DOCK_BOTTLE" />
          <off />
        </States>
      </bottle>
      <boxes>
        <States>
          <general X="1052" Y="0" Image="IMAGE_6_DOCK_BOXES" />
        </States>
      </boxes>
      <mask_ho>
        <Actions>
          <click>
            <Operations>
              <ChangeScene scene="S_6_DOCK_HO">
                <Conditions>
                  <eq Arg1="#ObjectState:" Arg2="$st_ho" />
                </Conditions>
              </ChangeScene>
              <ChangeScene scene="S_6_DOCK_CHEST">
                <Conditions>
                  <eq Arg1="#ObjectState:" Arg2="$zoom" />
                </Conditions>
              </ChangeScene>
            </Operations>
          </click>
          <open>
            <Operations>
              <Pause time="600"></Pause>
              <PlaySoundSample name="s_6_chest_open" />
              <ChangeObjectState state="st2" obj="chest"></ChangeObjectState>
              <ChangeObjectState state="st_ho" obj="S_6_DOCK.mask_ho"></ChangeObjectState>
            </Operations>
          </open>
        </Actions>
        <Events>
          <LeftMouse act1="click" />
        </Events>
        <States>
          <zoom X="189" Y="391" Width="200" Height="193" Enabled="1" Cursor="Zoom" HintX="101" HintY="103">
            <Effects>
              <Glint />
            </Effects>
          </zoom>
          <st_ho X="165" Y="388" Width="214" Height="174" Enabled="1" Cursor="Zoom" HintX="100" HintY="90">
            <Effects>
              <Sparkles />
            </Effects>
          </st_ho>
          <empty />
        </States>
      </mask_ho>
      <mask_grill>
        <Actions>
          <click>
            <Operations>
              <ChangeScene scene="S_6_DOCK_GRILLE"></ChangeScene>
            </Operations>
          </click>
        </Actions>
        <Events>
          <LeftMouse act1="click" />
        </Events>
        <States>
          <zoom X="619" Y="478" Width="277" Height="110" Enabled="1" Cursor="Zoom" HintX="144" HintY="78">
            <Effects>
              <Glint />
            </Effects>
          </zoom>
          <empty />
        </States>
      </mask_grill>
      <mask_go>
        <Actions>
          <run>
            <Conditions>
              <eq Arg1="#ObjectState:" Arg2="$goto" />
            </Conditions>
            <Operations>
              <RunMinigame arg="MG_6_DOCK" />
            </Operations>
          </run>
          <goto>
            <Operations>
              <ChangeObjectState state="off" />
              <ChangeObjectState state="video" obj="S_7_SHIP_VIDEO.video"></ChangeObjectState>
              <ChangeScene Value="S_7_SHIP_VIDEO" />
              <ExecuteCustomCode arg="ChangeMap" act="lock_scene" sc="S_2_PRISON"></ExecuteCustomCode>
              <ExecuteCustomCode arg="ChangeMap" act="lock_scene" sc="S_3_SQUARE"></ExecuteCustomCode>
              <ExecuteCustomCode arg="ChangeMap" act="lock_scene" sc="S_4_OUTSKIRTS"></ExecuteCustomCode>
              <ExecuteCustomCode arg="ChangeMap" act="lock_scene" sc="S_5_BRIDGE"></ExecuteCustomCode>
              <ExecuteCustomCode arg="ChangeMap" act="lock_scene" sc="S_6_DOCK" />
            </Operations>
          </goto>
          <msg>
            <Operations>
              <ShowTextMessage Value="BBT_6_GO_WRONG" />
            </Operations>
            <Conditions>
              <eq Arg1="#ObjectState:" Arg2="$msg" />
            </Conditions>
          </msg>
        </Actions>
        <Events>
          <LeftMouse act1="run" a2="msg" />
        </Events>
        <States>
          <msg X="753" Y="105" Width="303" Height="388" Enabled="1" Cursor="Ask" HintX="188" HintY="261" />
          <goto X="768" Y="124" Width="303" Height="281" Enabled="1" Cursor="GoAway" HintX="159" HintY="193"></goto>
          <off />
        </States>
      </mask_go>
      <mask_return>
        <Actions>
          <click>
            <Operations>
              <PlaySoundSample Value="s_5_step" />
              <ChangeScene Value="S_5_BRIDGE" />
            </Operations>
          </click>
        </Actions>
        <Events>
          <LeftMouse act1="click" />
        </Events>
        <States>
          <general X="0" Y="598" Width="1366" Height="202" Cursor="GoAway" CursorDir="180" Enabled="1" HintX="671" HintY="5">
            <Effects>
              <Hover id_image="IMAGE_PARTICLE_BOTTOM_LIGHT" position="0,509" />
            </Effects>
          </general>
        </States>
      </mask_return>
      <video_sc>
        <Actions>
          <end>
            <Conditions>
              <eq Arg1="$VIDEO_6_SCARECROW_GETUP" Arg2="$arg" />
            </Conditions>
            <Operations>
              <ChangeObjectState state="st_loop"></ChangeObjectState>
              <ChangeObjectState state="zoom" obj="mask_bottle"></ChangeObjectState>
              <ChangeObjectState state="st_loop" obj="S_6_DOCK_BOTTLE.video_sc" />
              <ChangeVariableValue name="mask_bottle.hint" value="1" op="=" />
              <PlayMusic name="music_7" />
            </Operations>
          </end>
          <show>
            <Operations>
              <Pause time="300" />
              <ChangeObjectState state="st_show" />
            </Operations>
          </show>
        </Actions>
        <Events>
          <VideoCompleted act1="end" />
        </Events>
        <States>
          <off />
          <st_show Movie="VIDEO_6_SCARECROW_GETUP" Enabled="1" X="534" Y="350" />
          <st_loop Movie="VIDEO_6_SCARECROW_LOOP" X="570" Y="350" />
        </States>
      </video_sc>
      <video_pirat>
        <Actions>
          <show>
            <Operations>
              <Pause time="100" />
              <ChangeObjectState state="off" />
              <ChangeObjectState state="st_sleep" obj="video_pirat_fall" />
            </Operations>
          </show>
        </Actions>
        <States>
          <st_loop X="752" Y="260" Movie="VIDEO_6_PIRATE_LOOP" />
          <off />
        </States>
      </video_pirat>
      <pirate_sleep>
        <States>
          <off />
          <general X="697" Y="345" Image="IMAGE_6_DOCK_PIRATE_SIT" Enabled="1" Cursor="Zoom" HitTest="Rect:-7,-17,120,110" />
        </States>
        <Actions>
          <click>
            <Operations>
              <ShowTextMessage Value="BBT_6_PIRATE_SLEEP_CLICK" />
            </Operations>
          </click>
        </Actions>
        <Events>
          <LeftMouse act1="click" />
        </Events>
      </pirate_sleep>
      <mask_bottle>
        <Actions>
          <click>
            <Operations>
              <ChangeScene scene="S_6_DOCK_BOTTLE"></ChangeScene>
            </Operations>
          </click>
          <open>
            <Operations>
              <ChangeObjectState state="empty" obj="mask_grill"></ChangeObjectState>
              <ChangeObjectState state="zoom" />
              <Pause time="700" />
              <ChangeScene scene="S_6_DOCK_BOTTLE"></ChangeScene>
            </Operations>
          </open>
        </Actions>
        <Events>
          <LeftMouse act1="click" />
        </Events>
        <States>
          <empty />
          <zoom X="529" Y="282" Width="236" Height="200" Enabled="1" Cursor="Zoom" HintX="157" HintY="105" HitTest="Rect">
            <Effects>
              <Glint />
            </Effects>
          </zoom>
        </States>
        <Variables hint="0" />
      </mask_bottle>
      <mask_rain>
        <States>
          <general X="0" Y="0" Width="1366" Height="500">
            <Effects>
              <Leafs file="effects/6_rain.xml" />
            </Effects>
          </general>
          <off />
        </States>
      </mask_rain>
      <mask_drops_0>
        <States>
          <general X="35" Y="365" Width="1103" Height="396" Enabled="1" HitTest="Poly:508,69;680,76;739,55;784,-1;1103,0;1099,113;1019,149;1034,387;0,396;-7,235;">
            <Effects>
              <Splash PerfBound="10" Count="150" ScaleMin="30" ScaleMax="90" TimeMin="300" TimeMax="700" ImageName="IMAGE_PARTICLE_RAINDROP" UseScaleDependency="1" />
            </Effects>
          </general>
          <off />
        </States>
      </mask_drops_0>
      <mask_drops>
        <States>
          <general X="1052" Y="481" Width="326" Height="61" Enabled="1" HitTest="Poly:84,2;177,38;323,10;306,64;2,24;">
            <Effects>
              <Splash PerfBound="10" Count="5" ScaleMin="60" ScaleMax="80" TimeMin="400" TimeMax="700" ImageName="IMAGE_PARTICLE_RAINDROP" />
            </Effects>
          </general>
          <off />
        </States>
      </mask_drops>
      <water_2>
        <States>
          <general X="996" Y="89" Image="IMAGE_PARTICLE_WATER_2" HitTest="Rect" ScaleY="0.8" Enabled="1" Angle="0"></general>
          <off></off>
        </States>
      </water_2>
      <water_3>
        <States>
          <general X="1137" Y="57" Image="IMAGE_PARTICLE_WATER_2" HitTest="Rect" ScaleY="1" Enabled="1" Angle="0"></general>
          <off></off>
        </States>
      </water_3>
    </Objects>
    <Trajectories>
      <tr_fog_1>
        <TrajectoryPoints>
          <start Time="0" X="140"></start>
          <start Time="25000" X="1017"></start>
        </TrajectoryPoints>
      </tr_fog_1>
      <tr_fog_1_2>
        <TrajectoryPoints>
          <start Time="0" X="688"></start>
          <start Time="9400" X="1017"></start>
        </TrajectoryPoints>
      </tr_fog_1_2>
      <tr_cloud1>
        <TrajectoryPoints>
          <start Time="0" ScaleX="1" ScaleY="1" X="-415" Y="-8" CA="255"></start>
          <start Time="40000" ScaleX="1.1" ScaleY="1.1" X="220" Y="-50" CA="255"></start>
          <start Time="60000" ScaleX="1.1" ScaleY="1.1" X="570" Y="-75" CA="255"></start>
          <start Time="80000" ScaleX="1.2" ScaleY="1.2" X="920" Y="-100" CA="0"></start>
        </TrajectoryPoints>
      </tr_cloud1>
      <tr_cloud2>
        <TrajectoryPoints>
          <start Time="0" ScaleX="1" ScaleY="1" X="160" Y="20" CA="0"></start>
          <start Time="10000" ScaleX="1" ScaleY="1" X="380" Y="0" CA="255"></start>
          <start Time="20000" ScaleX="1" ScaleY="1" X="515" Y="-30" CA="255"></start>
          <start Time="50000" ScaleX="1.2" ScaleY="1.2" X="1230" Y="-50" CA="255"></start>
        </TrajectoryPoints>
      </tr_cloud2>
      <tr_cloud2_0>
        <TrajectoryPoints>
          <start Time="0" ScaleX="1" ScaleY="1" X="610" Y="20" CA="255"></start>
          <start Time="30000" ScaleX="1.2" ScaleY="1.2" X="1230" Y="-50" CA="255"></start>
        </TrajectoryPoints>
      </tr_cloud2_0>
      <tr_sky1>
        <TrajectoryPoints>
          <start Time="0" ScaleX="1" ScaleY="1" CA="0"></start>
          <start Time="6000" ScaleX="1.1" ScaleY="1.13" CA="255"></start>
          <start Time="9000" ScaleX="1.15" ScaleY="1.195" CA="255"></start>
        </TrajectoryPoints>
      </tr_sky1>
      <tr_sky2>
        <TrajectoryPoints>
          <start Time="0" ScaleX="1.15" ScaleY="1.195" CA="255"></start>
          <start Time="3000" ScaleX="1.2" ScaleY="1.26" CA="255"></start>
          <start Time="9000" ScaleX="1.3" ScaleY="1.4" CA="0"></start>
        </TrajectoryPoints>
      </tr_sky2>
    </Trajectories>
    <Scenes>
      <S_6_DOCK_CHEST>
        <Objects>
          <back>
            <States>
              <general X="0" Y="0" Image="IMAGE_6_DOCK_CHEST_BACK" />
            </States>
            <Variables count_to_close="0" />
            <Actions>
              <try_close>
                <Operations>
                  <ChangeVariableValue variable="count_to_close" obj="1" op="-" />
                  <ChangeObjectState state="empty" name="S_6_DOCK.mask_dock_chest">
                    <Conditions>
                      <eq Arg1="count_to_close" Arg2="$0" />
                    </Conditions>
                  </ChangeObjectState>
                  <ChangeScene name="CloseZoom">
                    <Conditions>
                      <eq Arg1="count_to_close" Arg2="$0" />
                    </Conditions>
                  </ChangeScene>
                </Operations>
              </try_close>
            </Actions>
          </back>
          <lockpick_shadow>
            <States>
              <general X="367" Y="276" Image="IMAGE_6_DOCK_CHEST_LOCKPICK_SHADOW" CA="0" />
            </States>
          </lockpick_shadow>
          <lockpick>
            <States>
              <general X="341" Y="224" Image="IMAGE_6_DOCK_CHEST_LOCKPICK" CA="0" />
            </States>
          </lockpick>
          <mask>
            <States>
              <general X="325" Y="250" Image="IMAGE_6_DOCK_CHEST_MASK" />
            </States>
          </mask>
          <cover>
            <States>
              <general X="311" Y="30" Image="IMAGE_6_DOCK_CHEST_COVER" CenterX="266" CenterY="30" />
            </States>
            <Objects>
              <plant_1>
                <States>
                  <general X="-261" Y="27" Image="IMAGE_6_DOCK_CHEST_PLANT_1" />
                </States>
              </plant_1>
              <plant_1_mask>
                <States>
                  <general X="-257" Y="20" Image="IMAGE_6_DOCK_CHEST_PLANT_1_MASK" />
                </States>
              </plant_1_mask>
              <plant_2>
                <States>
                  <general X="-168" Y="170" Image="IMAGE_6_DOCK_CHEST_PLANT_2">
                    <Effects>
                      <Oscillation st_min="st_min" st_max="st_max" time="3200" scope="1111" bRand="1" bSmoth="1" />
                    </Effects>
                  </general>
                  <st_max Angle="-2" />
                  <st_min Angle="2" />
                </States>
              </plant_2>
              <plant_3>
                <States>
                  <general X="176" Y="111" Image="IMAGE_6_DOCK_CHEST_PLANT_3">
                    <Effects>
                      <Oscillation st_min="st_min" st_max="st_max" time="3200" scope="1111" bRand="1" bSmoth="1" />
                    </Effects>
                  </general>
                  <st_max Angle="-2" />
                  <st_min Angle="2" />
                </States>
              </plant_3>
              <plant_4>
                <States>
                  <general X="171" Y="63" Image="IMAGE_6_DOCK_CHEST_PLANT_4">
                    <Effects>
                      <Oscillation st_min="st_min" st_max="st_max" time="3200" scope="1111" bRand="1" bSmoth="1" />
                    </Effects>
                  </general>
                  <st_min Angle="-2" />
                  <st_max Angle="2" />
                </States>
              </plant_4>
            </Objects>
          </cover>
          <mask_drops_0>
            <States>
              <general X="2" Y="242" Width="649" Height="240" Enabled="1" HitTest="Poly:-5,49;70,34;164,213;578,109;578,75;638,86;636,237;0,240;">
                <Effects>
                  <Splash PerfBound="10" Count="10" ScaleMin="70" ScaleMax="120" TimeMin="400" TimeMax="800" ImageName="IMAGE_PARTICLE_RAINDROP" useAlpha="0" useCount="0" useScale="0" UseScaleDependency="1" />
                </Effects>
              </general>
              <off />
            </States>
          </mask_drops_0>
          <bad_plant_1>
            <States>
              <general X="286" Y="114" Image="IMAGE_6_DOCK_CHEST_BAD_PLANT_1" />
              <off />
            </States>
          </bad_plant_1>
          <bad_plant_2>
            <States>
              <general X="255" Y="145" Image="IMAGE_6_DOCK_CHEST_BAD_PLANT_2"></general>
              <off />
            </States>
          </bad_plant_2>
          <mask_use>
            <Actions>
              <click3>
                <Conditions>
                  <eq Arg1="$lockpick" Arg2="$arg" />
                  <eq Arg1="#ObjectState:" Arg2="$st_use" />
                </Conditions>
                <Operations>
                  <PlaySoundSample name="s_6_chest_picks" />
                  <ChangeObjectState state="empty" />
                  <RemoveInventoryItem name="lockpick" />
                  <MoveObjectByTrajectory Value="tr_key" obj="lockpick"></MoveObjectByTrajectory>
                  <MoveObjectByTrajectory Value="tr_key2" obj="lockpick" />
                  <ExecuteAction act="S_6_DOCK.mask_ho.open" />
                  <ChangeScene Value="CloseZoom" />
                </Operations>
              </click3>
              <about>
                <Conditions>
                  <eq Arg1="$empty" Arg2="$arg" />
                  <eq Arg1="#ObjectState:" Arg2="$st_use" />
                </Conditions>
                <Operations>
                  <PlaySoundSample name="s_6_chest_try" />
                  <MoveObjectByTrajectory Value="tr_drag" obj="cover" />
                  <ShowTextMessage message="BBT_6_NEED_KEY" />
                </Operations>
              </about>
              <wrong>
                <Conditions>
                  <neq Arg1="$lockpick" Arg2="$arg" />
                  <neq Arg1="$empty" Arg2="$arg" />
                  <eq Arg1="#ObjectState:" Arg2="$st_use" />
                </Conditions>
                <Operations>
                  <ShowTextMessage message="BBT_CLICK_WRONG" />
                </Operations>
              </wrong>
              <hand1>
                <Conditions>
                  <eq Arg1="#ObjectState:" Arg2="$st_hand1" />
                </Conditions>
                <Operations>
                  <PlaySoundSample name="s_6_chest_click_1" />
                  <ChangeObjectState state="st_hand2" />
                  <ChangeObjectState state="off" obj="bad_plant_1" Time="500"></ChangeObjectState>
                </Operations>
              </hand1>
              <hand2>
                <Conditions>
                  <eq Arg1="#ObjectState:" Arg2="$st_hand2" />
                </Conditions>
                <Operations>
                  <PlaySoundSample name="s_6_chest_click_2" />
                  <ChangeObjectState state="st_use" />
                  <ChangeObjectState state="off" obj="bad_plant_2" Time="500"></ChangeObjectState>
                  <ChangeObjectState state="off" obj="S_6_DOCK.waterplant"></ChangeObjectState>
                  <ChangeVariableValue name="hint" value="0" op="=" />
                </Operations>
              </hand2>
            </Actions>
            <Events>
              <LeftMouse act1="click3" act2="about" act3="wrong" a5="hand2" a4="hand1" />
            </Events>
            <States>
              <st_hand1 X="0" Y="0" Width="611" Height="474" Enabled="1" Cursor="Hand" HintX="361" HintY="267" Angle="0">
                <Effects>
                  <Glint />
                </Effects>
              </st_hand1>
              <st_hand2 X="44" Y="3" Width="581" Height="462" Enabled="1" Cursor="Hand" HitTest="Rect" HintX="329" HintY="274">
                <Effects>
                  <Glint />
                </Effects>
              </st_hand2>
              <st_use X="28" Y="65" Width="524" Height="426" Enabled="1" Cursor="Gears" Angle="11" HintX="347" HintY="309">
                <Effects>
                  <Glint />
                </Effects>
              </st_use>
              <empty />
            </States>
            <Variables hint="1" />
          </mask_use>
          <mask_drops>
            <States>
              <general X="49" Y="10" Width="536" Height="144" Enabled="1" Angle="0" HitTest="Poly:7,40;466,-3;529,124;91,213;">
                <Effects>
                  <Splash PerfBound="10" Count="10" ScaleMin="70" ScaleMax="120" TimeMin="400" TimeMax="800" ImageName="IMAGE_PARTICLE_RAINDROP" useAlpha="0" useCount="0" useScale="0" UseScaleDependency="1" />
                </Effects>
              </general>
              <off />
            </States>
          </mask_drops>
          <mask_rain>
            <States>
              <general X="0" Y="0" Width="800" Height="500">
                <Effects>
                  <Rain file="effects/rain_4_zoom.xml" />
                </Effects>
              </general>
              <off />
            </States>
          </mask_rain>
        </Objects>
        <Trajectories>
          <tr_drag>
            <TrajectoryPoints>
              <start Time="0" ScaleY="1"></start>
              <start Time="400" ScaleY="0.99"></start>
              <start Time="600" ScaleY="1"></start>
            </TrajectoryPoints>
          </tr_drag>
          <tr_key>
            <TrajectoryPoints>
              <start Time="0" X="500" Y="284" CA="0"></start>
              <start Time="300" X="451" Y="248" CA="255"></start>
              <start Time="800" X="348" Y="221" CA="255"></start>
            </TrajectoryPoints>
          </tr_key>
          <tr_key2>
            <TrajectoryPoints>
              <start Time="0" X="348" Y="221" Angle="0"></start>
              <start Time="300" X="348" Y="223" Angle="2"></start>
              <start Time="600" X="348" Y="222" Angle="-2"></start>
              <start Time="800" X="352" Y="221" Angle="0"></start>
              <start Time="1000" X="351" Y="225" Angle="1"></start>
            </TrajectoryPoints>
          </tr_key2>
        </Trajectories>
      </S_6_DOCK_CHEST>
      <S_6_DOCK_GRILLE>
        <Objects>
          <frame>
            <States>
              <general X="0" Y="0" Width="800" Height="500" />
            </States>
          </frame>
          <back>
            <States>
              <general X="32" Y="0" Image="IMAGE_6_DOCK_GRILLE_BACK"></general>
            </States>
          </back>
          <mask_drops_0>
            <States>
              <general X="148" Y="44" Width="555" Height="313" Enabled="1" HitTest="Poly:111,188;163,50;456,60;449,184;524,196;546,316;0,313;55,187;">
                <Effects>
                  <Splash PerfBound="10" Count="20" ScaleMin="50" ScaleMax="80" TimeMin="300" TimeMax="700" ImageName="IMAGE_PARTICLE_RAINDROP" useAlpha="0" useCount="0" useScale="0" UseScaleDependency="1" />
                </Effects>
              </general>
              <off />
            </States>
          </mask_drops_0>
          <grille_1_shadow_2>
            <States>
              <general X="52" Y="0" Image="IMAGE_6_DOCK_GRILLE_GRILLE_1_SHADOW_2" />
              <off />
            </States>
            <Actions>
              <hide>
                <Operations>
                  <ChangeObjectState state="off" Time="500" />
                </Operations>
              </hide>
            </Actions>
          </grille_1_shadow_2>
          <stick_hub>
            <States>
              <general X="413" Y="224" Width="1" Height="1"></general>
              <off X="413" Y="224" Width="1" Height="1" CA="0" />
            </States>
            <Objects>
              <stick_4>
                <States>
                  <general X="-333" Y="25" Image="IMAGE_6_DOCK_GRILLE_STICK_4" />
                </States>
                <Actions>
                  <move>
                    <Operations>
                      <MoveObjectByTrajectory Value="tr_stick4" />
                    </Operations>
                  </move>
                </Actions>
              </stick_4>
              <stick_3>
                <States>
                  <general X="43" Y="23" Image="IMAGE_6_DOCK_GRILLE_STICK_3"></general>
                </States>
                <Actions>
                  <move>
                    <Operations>
                      <MoveObjectByTrajectory Value="tr_stick3" />
                    </Operations>
                  </move>
                </Actions>
              </stick_3>
              <stick_2>
                <States>
                  <general X="44" Y="-91" Image="IMAGE_6_DOCK_GRILLE_STICK_2" />
                </States>
                <Actions>
                  <move>
                    <Operations>
                      <MoveObjectByTrajectory Value="tr_stick2" />
                    </Operations>
                  </move>
                </Actions>
              </stick_2>
              <stick_1>
                <States>
                  <general X="-257" Y="-104" Image="IMAGE_6_DOCK_GRILLE_STICK_1" />
                </States>
                <Actions>
                  <move>
                    <Operations>
                      <MoveObjectByTrajectory Value="tr_stick1" />
                    </Operations>
                  </move>
                </Actions>
              </stick_1>
            </Objects>
            <Actions>
              <hide>
                <Operations>
                  <ChangeObjectState state="off" Time="500" />
                </Operations>
              </hide>
            </Actions>
          </stick_hub>
          <grille_1_shadow_1>
            <States>
              <general X="71" Y="116" Image="IMAGE_6_DOCK_GRILLE_GRILLE_1_SHADOW_1" />
              <off />
            </States>
            <Actions>
              <hide>
                <Operations>
                  <ChangeObjectState state="off" Time="500" />
                </Operations>
              </hide>
            </Actions>
          </grille_1_shadow_1>
          <cap>
            <States>
              <general X="0" Y="0" Image="IMAGE_6_DOCK_GRILLE_GRILLE_2">
                <Effects>
                  <Splash PerfBound="10" Count="50" ScaleMin="70" ScaleMax="150" TimeMin="300" TimeMax="700" ImageName="IMAGE_PARTICLE_RAINDROP" useAlpha="0" useCount="0" useScale="0" UseScaleDependency="1" />
                </Effects>
              </general>
              <st_no_fx X="0" Y="0" Image="IMAGE_6_DOCK_GRILLE_GRILLE_2"></st_no_fx>
            </States>
          </cap>
          <grille_2_add>
            <States>
              <general X="99" Y="0" Image="IMAGE_6_DOCK_GRILLE_GRILLE_2_ADD" DrawMode="Add">
                <Effects>
                  <Oscillation st_min="st_min" st_max="st_max" time="4000" scope="1111" bRand="0" bSmoth="1" />
                </Effects>
              </general>
              <st_min CA="50" />
              <st_max CA="255" />
            </States>
          </grille_2_add>
          <grille>
            <Actions>
              <drag>
                <Operations>
                  <MoveObjectByTrajectory Value="tr_drag" />
                </Operations>
              </drag>
            </Actions>
            <States>
              <general X="412" Y="220" Image="IMAGE_6_DOCK_GRILLE_GRILLE_1_STEP_1" CenterX="264" CenterY="132">
                <Effects>
                  <Splash PerfBound="10" Count="10" ScaleMin="70" ScaleMax="100" TimeMin="300" TimeMax="700" ImageName="IMAGE_PARTICLE_RAINDROP" useAlpha="0" useCount="0" useScale="0" UseScaleDependency="1" />
                </Effects>
              </general>
              <st_no_fx X="412" Y="220" Image="IMAGE_6_DOCK_GRILLE_GRILLE_1_STEP_1" CenterX="264" CenterY="132" />
              <off X="412" Y="220" Image="IMAGE_6_DOCK_GRILLE_GRILLE_1_STEP_1" CenterX="264" CenterY="132" CA="0" />
            </States>
            <Objects>
              <anchor_1>
                <States>
                  <off />
                  <general X="-42" Y="-39" Image="IMAGE_6_DOCK_GRILLE_ANCHOR_STEP_1" />
                </States>
              </anchor_1>
              <anchor_2>
                <States>
                  <off />
                  <general X="-42" Y="-39" Image="IMAGE_6_DOCK_GRILLE_ANCHOR_STEP_2" />
                </States>
              </anchor_2>
            </Objects>
          </grille>
          <grille2>
            <Actions>
              <show>
                <Operations>
                  <ChangeObjectState state="general" Time="500" />
                </Operations>
              </show>
            </Actions>
            <States>
              <off />
              <general X="450" Y="255" Image="IMAGE_6_DOCK_GRILLE_GRILLE_1_STEP_2" />
            </States>
          </grille2>
          <light_add>
            <States>
              <general X="0" Y="0" Image="IMAGE_6_DOCK_GRILLE_ADD_ALL" DrawMode="Add">
                <Effects>
                  <Oscillation st_min="st_min" st_max="st_max" time="4000" scope="1111" bRand="0" bSmoth="1" />
                </Effects>
              </general>
              <st_min CA="50" />
              <st_max CA="255" />
            </States>
          </light_add>
          <mask_use>
            <Actions>
              <click>
                <Conditions>
                  <eq Arg1="$anchor" Arg2="$arg" />
                </Conditions>
                <Operations>
                  <PlaySoundSample name="s_6_grille_anchor" />
                  <ChangeObjectState state="empty" />
                  <RemoveInventoryItem name="anchor" />
                  <ChangeObjectState state="general" obj="anchor_1" Time="500"></ChangeObjectState>
                  <Pause time="400"></Pause>
                  <PlaySoundSample name="s_6_grille_anchor_turn" />
                  <ChangeObjectState state="general" obj="anchor_2" Time="500"></ChangeObjectState>
                  <Pause time="500"></Pause>
                  <PlaySoundSample name="s_6_grille_open_1" />
                  <ExecuteAction act="grille_1_shadow_2.hide"></ExecuteAction>
                  <ExecuteAction act="stick_1.move"></ExecuteAction>
                  <Pause time="50"></Pause>
                  <ExecuteAction act="stick_2.move"></ExecuteAction>
                  <Pause time="100" />
                  <ExecuteAction act="stick_3.move"></ExecuteAction>
                  <ExecuteAction act="stick_4.move"></ExecuteAction>
                  <Pause time="1000"></Pause>
                  <PlaySoundSample name="s_6_grille_open_2" />
                  <ExecuteAction act="stick_hub.hide"></ExecuteAction>
                  <ExecuteAction act="grille2.show"></ExecuteAction>
                  <ExecuteAction act="grille_1_shadow_1.hide"></ExecuteAction>
                  <ChangeObjectState state="off" obj="grille" Time="500"></ChangeObjectState>
                  <ChangeObjectState state="st2" obj="S_6_DOCK.grill_1"></ChangeObjectState>
                  <EnableObject value="1" obj="mask_sc" />
                </Operations>
              </click>
              <about>
                <Conditions>
                  <eq Arg1="$empty" Arg2="$arg" />
                </Conditions>
                <Operations>
                  <PlaySoundSample name="s_6_grille_try" />
                  <ExecuteAction act="grille.drag" />
                  <MoveObjectByTrajectory Value="tr_drag" obj="stick_hub" />
                  <ShowTextMessage message="BBT_6_NEED_ANCHOR"></ShowTextMessage>
                </Operations>
              </about>
              <wrong>
                <Conditions>
                  <neq Arg1="$anchor" Arg2="$arg" />
                  <neq Arg1="$empty" Arg2="$arg" />
                </Conditions>
                <Operations>
                  <ShowTextMessage message="BBT_CLICK_WRONG" />
                </Operations>
              </wrong>
            </Actions>
            <Events>
              <LeftMouse act1="click" act2="about" act3="wrong" />
            </Events>
            <States>
              <general X="102" Y="31" Width="585" Height="408" Enabled="0" Cursor="Gears" HintX="310" HintY="188">
                <Effects>
                  <Glint />
                </Effects>
              </general>
              <empty />
            </States>
            <Properties DefaultClickSound="empty" />
          </mask_use>
          <mask_sc>
            <Actions>
              <click>
                <Conditions>
                  <eq Arg1="$scarecrow" Arg2="$arg" />
                </Conditions>
                <Operations>
                  <EnableObject Value="0" />
                  <ShowObject Value="0"></ShowObject>
                  <ExecuteCustomCode arg="ApplyScarecrow" act="begin"></ExecuteCustomCode>
                  <ChangeObjectState state="empty" obj="S_6_DOCK.mask_grill"></ChangeObjectState>
                  <ChangeObjectState state="st2" obj="S_6_DOCK.grill_2" />
                  <ExecuteAction act="S_6_DOCK.video_sc.show" />
                  <ChangeScene Value="CloseZoom" />
                </Operations>
              </click>
              <about>
                <Conditions>
                  <eq Arg1="$empty" Arg2="$arg" />
                </Conditions>
                <Operations>
                  <PlaySoundSample name="s_6_grille_opened_try" />
                  <ShowTextMessage Value="BBT_6_NEED_SCARECROW"></ShowTextMessage>
                </Operations>
              </about>
              <wrong>
                <Conditions>
                  <neq Arg1="$scarecrow" Arg2="$arg" />
                  <neq Arg1="$empty" Arg2="$arg" />
                </Conditions>
                <Operations>
                  <ShowTextMessage Value="BBT_CLICK_WRONG" />
                </Operations>
              </wrong>
            </Actions>
            <Events>
              <LeftMouse act1="click" act2="about" act3="wrong" />
            </Events>
            <States>
              <general X="133" Y="78" Width="562" Height="286" HintX="296" HintY="172" Cursor="Gears" Enabled="0" HitTest="Poly:51,-59;571,-51;650,357;-122,322;">
                <Effects>
                  <Glint />
                </Effects>
              </general>
            </States>
            <Properties DefaultClickSound="empty" />
          </mask_sc>
          <ship DisplayName="OBJ_6_SHIP">
            <Actions>
              <take Modal="0">
                <Operations>
                  <AddInventoryItem cell="ship" obj="ship" fl="0" sc="1" />
                  <EnableObject value="1" obj="mask_use" />
                </Operations>
              </take>
            </Actions>
            <States>
              <general Image="IMAGE_6_DOCK_GRILLE_TILE_SHIP" X="398" Y="191" Cursor="Hand" Enabled="1" HitTest="Rect:-40,-28,205,181" />
              <inventory Image="IMAGE_6_DOCK_GRILLE_TILE_SHIP_INV"></inventory>
            </States>
            <Events>
              <LeftMouse act1="take" />
            </Events>
          </ship>
          <mask_rain>
            <States>
              <general X="0" Y="-50" Width="900" Height="500">
                <Effects>
                  <Leafs file="effects/6_rain_zoom.xml" />
                </Effects>
              </general>
              <off />
            </States>
          </mask_rain>
        </Objects>
        <Trajectories>
          <tr_drag Relative="0">
            <TrajectoryPoints>
              <start Time="0" Angle="0"></start>
              <start Time="400" Angle="0.5"></start>
              <start Time="800" Angle="0"></start>
            </TrajectoryPoints>
          </tr_drag>
          <tr_stick1 Relative="1">
            <TrajectoryPoints>
              <start Time="0" X="0" Y="0"></start>
              <start Time="500" X="80" Y="34"></start>
            </TrajectoryPoints>
          </tr_stick1>
          <tr_stick2 Relative="1">
            <TrajectoryPoints>
              <start Time="0" X="0" Y="0"></start>
              <start Time="500" X="-80" Y="26"></start>
            </TrajectoryPoints>
          </tr_stick2>
          <tr_stick3 Relative="1">
            <TrajectoryPoints>
              <start Time="0" X="0" Y="0"></start>
              <start Time="500" X="-104" Y="-45"></start>
            </TrajectoryPoints>
          </tr_stick3>
          <tr_stick4 Relative="1">
            <TrajectoryPoints>
              <start Time="0" X="0" Y="0"></start>
              <start Time="500" X="95" Y="-32"></start>
            </TrajectoryPoints>
          </tr_stick4>
        </Trajectories>
      </S_6_DOCK_GRILLE>
      <S_6_DOCK_BOTTLE>
        <Objects>
          <frame>
            <States>
              <general X="0" Y="0" Width="800" Height="500" />
            </States>
          </frame>
          <back>
            <Actions>
              <leave>
                <Operations>
                  <ExecuteCustomCode arg="ApplyScarecrow" act="end"></ExecuteCustomCode>
                  <EnableObject value="0" />
                  <ChangeObjectState state="off" obj="video_sc"></ChangeObjectState>
                  <ChangeObjectState state="off" obj="S_6_DOCK.video_sc"></ChangeObjectState>
                  <ChangeVariableValue name="S_6_DOCK.mask_bottle.hint" value="0" op="=" />
                </Operations>
              </leave>
            </Actions>
            <States>
              <general X="0" Y="0" Image="IMAGE_6_DOCK_BOTTLE_BACK" />
            </States>
            <Events>
              <SceneLeave act1="leave" />
            </Events>
          </back>
          <mask_drops_0>
            <States>
              <general X="365" Y="337" Width="434" Height="69" Enabled="1" Angle="0" HitTest="Poly:264,12;442,30;290,69;5,50;">
                <Effects>
                  <Splash PerfBound="10" Count="5" ScaleMin="40" ScaleMax="70" TimeMin="400" TimeMax="800" ImageName="IMAGE_PARTICLE_RAINDROP_3" useAlpha="0" useCount="0" useScale="0" UseScaleDependency="1" />
                </Effects>
              </general>
              <off />
            </States>
          </mask_drops_0>
          <code DisplayName="OBJ_6_CODE">
            <Actions>
              <take Modal="0">
                <Operations>
                  <ShowGetObjectWindow object="code" state="inventory" />
                  <AddInventoryItem cell="code" obj="code" />
                  <ChangeObjectState state="off" obj="S_6_DOCK.paper" />
                  <ChangeVariableValue name="S_5_BRIDGE_CELLAR.mask_chest.hint" value="1" op="=" />
                </Operations>
              </take>
              <click>
                <Operations>
                  <ChangeObjectState state="st_code" obj="S_6_DOCK_BOTTLE.video_sc" />
                  <Pause time="2000" />
                  <ShowObject value="0" obj="code" />
                </Operations>
              </click>
            </Actions>
            <States>
              <general Image="IMAGE_6_DOCK_BOTTLE_PAPER_CODE" X="364" Y="338" Cursor="Hand" Enabled="1" HitTest="Rect:0,0,150,86" />
              <inventory Image="IMAGE_6_DOCK_BOTTLE_PAPER_CODE_INV"></inventory>
            </States>
            <Events>
              <LeftMouse act1="click" />
            </Events>
            <Variables hint="1" />
          </code>
          <mask_sc>
            <Actions>
              <click>
                <Conditions>
                  <eq Arg1="$scarecrow_sleep" Arg2="$arg" />
                </Conditions>
                <Operations>
                  <EnableObject Value="0" />
                  <ShowObject Value="0"></ShowObject>
                  <ExecuteCustomCode arg="ApplyScarecrow" act="begin"></ExecuteCustomCode>
                  <ChangeObjectState state="st_sleep" obj="video_sc" />
                  <StopAction act="bottle.load" />
                  <ChangeVariableValue name="hint" value="0" op="=" />
                  <ChangeVariableValue name="S_6_DOCK.mask_bottle.hint" value="0" op="=" />
                </Operations>
              </click>
              <about>
                <Conditions>
                  <eq Arg1="$empty" Arg2="$arg" />
                </Conditions>
                <Operations>
                  <ShowTextMessage Value="BBT_6_NEED_SCARECROW_SLEEP"></ShowTextMessage>
                </Operations>
              </about>
              <wrong>
                <Conditions>
                  <neq Arg1="$scarecrow_sleep" Arg2="$arg" />
                  <neq Arg1="$empty" Arg2="$arg" />
                </Conditions>
                <Operations>
                  <ShowTextMessage Value="BBT_CLICK_WRONG" />
                </Operations>
              </wrong>
            </Actions>
            <Events>
              <LeftMouse act1="click" act2="about" act3="wrong" />
            </Events>
            <States>
              <general X="536" Y="78" Width="206" Height="337" HintX="80" HintY="204" Cursor="Gears" Enabled="0" HitTest="Rect">
                <Effects>
                  <Glint />
                </Effects>
              </general>
            </States>
            <Variables hint="0" />
          </mask_sc>
          <mask_drops>
            <States>
              <general X="130" Y="403" Width="231" Height="66" Enabled="1" Angle="0" HitTest="Poly:88,1;229,6;229,61;-32,51;">
                <Effects>
                  <Splash PerfBound="10" Count="5" ScaleMin="40" ScaleMax="70" TimeMin="400" TimeMax="800" ImageName="IMAGE_PARTICLE_RAINDROP_3" useAlpha="0" useCount="0" useScale="0" UseScaleDependency="1" />
                </Effects>
              </general>
              <off />
            </States>
          </mask_drops>
          <bottle_sh>
            <States>
              <general X="405" Y="352" Image="IMAGE_6_DOCK_BOTTLE_BOTTLE_SH" />
              <off />
            </States>
            <Actions>
              <show>
                <Operations>
                  <Pause time="500" />
                  <ChangeObjectState state="general" Time="300" />
                </Operations>
              </show>
              <hide>
                <Operations>
                  <ChangeObjectState state="off" Time="200" />
                </Operations>
              </hide>
            </Actions>
          </bottle_sh>
          <bottle>
            <States>
              <general X="563" Y="132" Image="IMAGE_6_DOCK_BOTTLE_BOTTLE" Enabled="1" />
            </States>
            <Events>
              <SceneLoad act1="load" />
              <SceneEnter act1="enter" />
            </Events>
            <Actions>
              <load Modal="0">
                <Operations>
                  <Pause time="600"></Pause>
                  <EnableObject value="1" obj="mask_sc"></EnableObject>
                  <Pause time="3000"></Pause>
                  <ChangeVariableValue name="mask_sc.hint" value="0" op="=" />
                  <EnableObject value="0" obj="mask_sc" />
                  <ExecuteAction act="hand1.down" />
                  <MoveObjectByTrajectory Value="tr_down" obj="arm_hub"></MoveObjectByTrajectory>
                  <ShowObject value="1" obj="bottle_loc"></ShowObject>
                  <ShowObject value="0" />
                  <Pause time="300"></Pause>
                  <ChangeObjectState state="off" obj="hand1" Time="300" />
                  <ExecuteAction act="bottle_sh.hide"></ExecuteAction>
                  <ExecuteAction act="hand1.up" />
                  <MoveObjectByTrajectory Value="tr_up" obj="arm_hub"></MoveObjectByTrajectory>
                  <Pause time="2000"></Pause>
                  <ExecuteAction act="bottle_sh.show"></ExecuteAction>
                  <ExecuteAction act="hand1.down" />
                  <MoveObjectByTrajectory Value="tr_down" obj="arm_hub"></MoveObjectByTrajectory>
                  <ShowObject value="0" obj="bottle_loc"></ShowObject>
                  <ShowObject value="1" />
                  <Pause time="300"></Pause>
                  <ChangeObjectState state="general" obj="hand1" Time="300"></ChangeObjectState>
                  <ExecuteAction act="hand1.up" />
                  <EnableObject value="1" obj="mask_sc"></EnableObject>
                  <MoveObjectByTrajectory Value="tr_up" obj="arm_hub"></MoveObjectByTrajectory>
                  <Pause time="2000"></Pause>
                  <ExecuteAction act="load">
                    <Conditions>
                      <eq Arg1="need_loop" Arg2="$1" />
                    </Conditions>
                  </ExecuteAction>
                </Operations>
              </load>
              <enter>
                <Conditions>
                  <eq Arg1="#PanelItemCount:scarecrow_sleep" Arg2="$1" />
                </Conditions>
                <Operations>
                  <ChangeVariableValue name="need_loop" value="0" op="=" />
                </Operations>
              </enter>
            </Actions>
            <Variables need_loop="1" />
          </bottle>
          <arm_hub>
            <States>
              <general X="810" Y="32" />
            </States>
            <Objects>
              <bottle_loc>
                <States>
                  <general X="173" Y="47" Image="IMAGE_6_DOCK_BOTTLE_BOTTLE" Visible="0" Angle="0.01" CenterX="170" CenterY="60" />
                </States>
                <Actions>
                  <down>
                    <Operations>
                      <MoveObjectByTrajectory Value="tr_hand_rot1" />
                    </Operations>
                  </down>
                  <up>
                    <Operations>
                      <MoveObjectByTrajectory Value="tr_hand_rot2" />
                    </Operations>
                  </up>
                </Actions>
              </bottle_loc>
              <arm>
                <States>
                  <general X="132" Y="-39" Image="IMAGE_6_DOCK_BOTTLE_ARM" Angle="0.01" />
                </States>
              </arm>
              <hand2>
                <States>
                  <general X="164" Y="60" Image="IMAGE_6_DOCK_BOTTLE_HAND2" CenterX="170" CenterY="60" Angle="18" />
                </States>
                <Actions>
                  <down>
                    <Operations>
                      <MoveObjectByTrajectory Value="tr_hand_rot1" />
                    </Operations>
                  </down>
                  <up>
                    <Operations>
                      <MoveObjectByTrajectory Value="tr_hand_rot2" />
                    </Operations>
                  </up>
                </Actions>
              </hand2>
              <hand1>
                <States>
                  <general X="164" Y="60" Image="IMAGE_6_DOCK_BOTTLE_HAND1" Angle="18" CenterX="170" CenterY="60" />
                  <off />
                </States>
                <Actions>
                  <down>
                    <Operations>
                      <Pause time="300"></Pause>
                      <ExecuteAction act="hand2.down"></ExecuteAction>
                      <ExecuteAction act="bottle_loc.down" />
                      <MoveObjectByTrajectory Value="tr_hand_rot1" />
                    </Operations>
                  </down>
                  <up>
                    <Operations>
                      <ExecuteAction act="hand2.up"></ExecuteAction>
                      <ExecuteAction act="bottle_loc.up" />
                      <MoveObjectByTrajectory Value="tr_hand_rot2" />
                    </Operations>
                  </up>
                </Actions>
              </hand1>
            </Objects>
          </arm_hub>
          <video_sc>
            <Actions>
              <end_sleep>
                <Conditions>
                  <eq Arg1="$VIDEO_6_SCARECROW_BOTTLE" Arg2="$arg" />
                </Conditions>
                <Operations>
                  <ChangeObjectState state="off"></ChangeObjectState>
                  <ExecuteCustomCode arg="ChangeScarecrow" act="scarecrow" />
                  <ExecuteCustomCode arg="ApplyScarecrow" act="end"></ExecuteCustomCode>
                  <ChangeObjectState state="empty" obj="S_6_DOCK.mask_bottle"></ChangeObjectState>
                  <ChangeObjectState state="off" obj="S_6_DOCK.bottle"></ChangeObjectState>
                  <ExecuteAction act="S_6_DOCK.video_pirat.show" />
                  <ChangeScene Value="CloseZoom" />
                </Operations>
              </end_sleep>
              <end_code>
                <Conditions>
                  <eq Arg1="$VIDEO_6_SCARECROW_CODE" Arg2="$arg" />
                </Conditions>
                <Operations>
                  <ChangeObjectState state="st_loop"></ChangeObjectState>
                  <ExecuteAction act="code.take" />
                  <EnableObject value="1" obj="back" />
                </Operations>
              </end_code>
            </Actions>
            <Events>
              <VideoCompleted act1="end_sleep" a2="end_code" />
            </Events>
            <States>
              <off />
              <st_sleep Movie="VIDEO_6_SCARECROW_BOTTLE" Enabled="1"></st_sleep>
              <st_code Movie="VIDEO_6_SCARECROW_CODE" Enabled="1" X="0" Y="186" />
              <st_loop Movie="VIDEO_6_SCARECROW_ZOOM_LOOP" X="0" Y="172" />
            </States>
          </video_sc>
          <mask_rain>
            <States>
              <general X="0" Y="0" Width="800" Height="500">
                <Effects>
                  <Rain file="effects/rain_4_zoom.xml" />
                </Effects>
              </general>
              <off />
            </States>
          </mask_rain>
          <mask_rain2>
            <States>
              <general X="432" Y="0" Width="369" Height="321" Enabled="1">
                <Effects>
                  <Leafs file="effects/6_rain_back_bottle.xml" />
                </Effects>
              </general>
              <off />
            </States>
          </mask_rain2>
        </Objects>
        <Trajectories>
          <tr_drag Relative="0">
            <TrajectoryPoints>
              <start Time="0" Angle="0"></start>
              <start Time="400" Angle="0.5"></start>
              <start Time="800" Angle="0"></start>
            </TrajectoryPoints>
          </tr_drag>
          <tr_stick1 Relative="1">
            <TrajectoryPoints>
              <start Time="0" X="0" Y="0"></start>
              <start Time="500" X="80" Y="34"></start>
            </TrajectoryPoints>
          </tr_stick1>
          <tr_stick2 Relative="1">
            <TrajectoryPoints>
              <start Time="0" X="0" Y="0"></start>
              <start Time="500" X="-80" Y="26"></start>
            </TrajectoryPoints>
          </tr_stick2>
          <tr_stick3 Relative="1">
            <TrajectoryPoints>
              <start Time="0" X="0" Y="0"></start>
              <start Time="500" X="-104" Y="-45"></start>
            </TrajectoryPoints>
          </tr_stick3>
          <tr_stick4 Relative="1">
            <TrajectoryPoints>
              <start Time="0" X="0" Y="0"></start>
              <start Time="500" X="95" Y="-32"></start>
            </TrajectoryPoints>
          </tr_stick4>
          <tr_down>
            <TrajectoryPoints>
              <start Time="0" X="810" Y="32"></start>
              <start Time="800" X="562" Y="145"></start>
              <start Time="900" X="562" Y="145"></start>
            </TrajectoryPoints>
          </tr_down>
          <tr_hand_rot1>
            <TrajectoryPoints>
              <start Time="0" Angle="18"></start>
              <start Time="300" Angle="0"></start>
            </TrajectoryPoints>
          </tr_hand_rot1>
          <tr_hand_rot2>
            <TrajectoryPoints>
              <start Time="0" Angle="0"></start>
              <start Time="200" Angle="18"></start>
            </TrajectoryPoints>
          </tr_hand_rot2>
          <tr_up>
            <TrajectoryPoints>
              <start Time="0" X="562" Y="145"></start>
              <start Time="800" X="810" Y="32"></start>
            </TrajectoryPoints>
          </tr_up>
        </Trajectories>
      </S_6_DOCK_BOTTLE>
      <S_6_DOCK_VIDEO>
        <Objects>
          <frame>
            <States>
              <general X="0" Y="0" Width="1366" Height="800" />
            </States>
          </frame>
          <video>
            <Actions>
              <start>
                <Operations>
                  <ShowHud Value="0" val="0" time="0" />
                </Operations>
                <Conditions>
                  <eq Arg1="$VIDEO_6_INTRO" Arg2="$arg"></eq>
                </Conditions>
              </start>
              <end>
                <Conditions>
                  <eq Arg1="$VIDEO_6_INTRO" Arg2="$arg" />
                </Conditions>
                <Operations>
                  <ShowHud Value="1" val="1" />
                  <ChangeObjectState state="off" />
                  <ShowTextMessage Value="BBT_6_INTRO" img="IMAGE_UI_BBT_DETECTIVE" />
                  <ChangeScene Value="S_6_DOCK"></ChangeScene>
                </Operations>
              </end>
            </Actions>
            <States>
              <video Movie="VIDEO_6_INTRO" Enabled="1"></video>
              <off />
            </States>
            <Events>
              <VideoStarted act1="start" />
              <VideoCompleted act1="end" />
            </Events>
          </video>
        </Objects>
      </S_6_DOCK_VIDEO>
      <S_6_DOCK_COINS Border="button">
        <Objects>
          <frame2>
            <States>
              <general X="512" Y="300" Width="1024" Height="600" CenterX="512" CenterY="300" Enabled="1" />
            </States>
            <Variables hint="1" />
            <Events>
              <SceneEnter act1="run" />
            </Events>
            <Actions>
              <run>
                <Operations>
                  <RunMinigame arg="MG_6_COINS" />
                </Operations>
              </run>
              <change_inv Modal="0">
                <Operations>
                  <AddInventoryItem cell="S_6_DOCK_COINS" obj="coins_inv" fly="1" />
                </Operations>
              </change_inv>
            </Actions>
          </frame2>
          <coin_gold DisplayName="OBJ_6_COIN_GOLD">
            <Actions>
              <take>
                <Operations>
                  <ChangeVariableValue name="frame2.hint" value="0" op="=" />
                  <RemoveInventoryItem argCell="S_6_DOCK_COINS" />
                  <AddInventoryItem cell="coin_gold" obj="coin_gold" notfly="0" sc="1" />
                  <ChangeScene Value="CloseZoom" />
                </Operations>
              </take>
            </Actions>
            <States>
              <off Image="IMAGE_6_MG_COINS_COIN_INV" CA="0" X="530" Y="200" />
              <inventory Image="IMAGE_6_MG_COINS_COIN_INV"></inventory>
            </States>
          </coin_gold>
          <coins_inv>
            <States>
              <off />
              <inventory Image="IMAGE_6_MG_COINS_COINS_INV"></inventory>
            </States>
          </coins_inv>
        </Objects>
      </S_6_DOCK_COINS>
    </Scenes>
  </S_6_DOCK>
</Scenes>