<?xml version="0.1" encoding="UTF8" ?>
<Goal id="LEVEL_38_GOAL" />
<Interface color="fbe5bdff" />

<Effect after="bg_02" screen="1" particles="./ps/38_leafs.ps" />
<Effect after="()" screen="1" particles="./ps/38_bfly_horizontal.ps" />
<Effect after="bg_01" screen="1" particles="./ps/38_waterfall.ps" />
<Effect before="plant17" screen="1" particles="./ps/38_fly.ps" />
<Effect after="bg_01" screen="1" particles="./ps/38_sunray.ps" />
<Object name="parrot_01">
    <Clicker task_name="parrot" />
</Object>
<Object name="parrot_04">
    <Clicker task_name="parrot" />
</Object>
<Object name="parrot_05">
    <Clicker task_name="parrot" />
</Object>
<Object name="parrot_06">
    <Clicker task_name="parrot" />
</Object>
<Object name="parrot_07">
    <Clicker task_name="parrot" />
</Object>
<Object name="parrot_08">
    <Clicker task_name="parrot" />
</Object>
<Object name="parrot_09">
    <Clicker task_name="parrot" />
</Object>
<Object name="parrot_10">
    <Clicker task_name="parrot" />
</Object>
<Object name="parrot_11">
    <Clicker task_name="parrot" />
</Object>
<Object name="parrot_14">
    <Clicker task_name="parrot" />
</Object>
<Object name="parrot_18">
    <Clicker task_name="parrot" />
</Object>
<Object name="parrot_19">
    <Clicker task_name="parrot" />
</Object>
<Object name="parrot_20">
    <Clicker task_name="parrot" />
</Object>
<Object name="parrot_22">
    <Clicker task_name="parrot" />
</Object>
<Object name="parrot_23">
    <Clicker task_name="parrot" />
</Object>
<Object name="parrot_24">
    <Clicker task_name="parrot" />
</Object>

<Object name="plant01">
    <Effects>
        <Idle>
            <Effect name="shake" amp="0.005" rand="2" speed="0.7" />
        </Idle>
    </Effects>
</Object>
<Group name="plant_parrot" anchor_x="-200" anchor_y="286" >
       <Layer name="plant05" />
       <Layer name="parrot_17" assign="0" />
       <Layer name="parrot_25" assign="0" />
       <Layer name="parrot_15" assign="0" />
       <Layer name="parrot_27" assign="0" />
</Group>
<Object name="plant_parrot">
    <Effects>
        <Idle>
            <Effect name="shake" amp="0.008" rand="0.3" speed="0.9" />
        </Idle>
    </Effects>
</Object>
<Object name="parrot_17">
    <Clicker task_name="parrot" />
</Object>
<Object name="parrot_25">
    <Clicker task_name="parrot" />
</Object>
<Object name="parrot_15">
    <Clicker task_name="parrot" />
</Object>

<Group name="vetka_cvetok" anchor_x="331" anchor_y="760">
    <Layer name="plant08" />
    <Layer name="1but_0001" />
</Group>
<Object name="vetka_cvetok">
    <Effects>
        <Idle>
            <Effect name="shake" amp="0.007" rand="0" speed="0.7" />
        </Idle>
    </Effects>
</Object>
<Object name="plant08" />
<Object name="1but_0001">
    <OnTimer>
        <Timer timer_id="195">
            <Action condition="!1but_0001" name="Starteffect" effect="animate" />
            <Action condition="!1but_0001" name="Timer" id="195" time="1" time_max="5" />
            <Action condition="1but_0001" name="Animation" play="0" />
            <Action condition="1but_0001" name="Timer" id="195" time="5" time_max="9" />
            <Action name="ChangeFlag">
                <Condition state="1but_0001" clear="1but_0001" />
                <Condition state="!1but_0001" set="1but_0001" />
            </Action>
        </Timer>
    </OnTimer>
</Object>

<Group name="vetka2" anchor_x="865" anchor_y="-40">
    <Layer name="plant15" />
    <Layer name="parrot_12" assign="0" />
    <Layer name="layer1"  />
</Group>
<Object name="vetka2">
    <Effects>
        <Idle>
            <Effect name="shake" amp="0.007" rand="0.2" speed="0.5" />
        </Idle>
    </Effects>
</Object>
<Object name="plant15" />
<aObject name="parrot_in" visible="0">
	<Layer name="parrot_02" active="1" />
	<OnTimer timer_id="parrot_in">
		<Action name="ObjectState" visible="0" />
	</OnTimer>
</aObject>
<Object name="parrot_16" special_find="1" >
    <Clicker task_name="parrot" />
    <Apply object="*fruit" >
         <Action name="findobject" />
    </Apply>
    <OnTimer>
             <Timer timer_id="162">
                    <Action name="stopeffects" finish="1" />
                    <Action name="starteffect" effect="move" dst_y="70" start="0" end="0.2" />
                    <Action name="timer" id="161" time="10" time_max="16" />
                     <Action name="changeflag" clear="161"/>
             </Timer>
             <Timer timer_id="161" >
                    <Action name="stopeffects" finish="1" />
                    <Action name="starteffect" effect="move" dst_y="-70" start="0" end="0.2" />
                    <Action name="timer" id="162" time="10" time_max="16" />
                    <Action name="changeflag" set="161"/>
             </Timer>
    </OnTimer>
    <Click>
          <Action name="timer" id="162" time="0.05" />
    </Click>
    <Messages>
            <Click object="!*fruit" message="Hochu_est" />
    </Messages>
</Object>
<Object name="parrot_27" special_find="1" >
    <Clicker task_name="parrot" />
    <Apply object="*fruit" >
         <Action name="findobject" />
    </Apply>
    <OnTimer>
             <Timer timer_id="172">
                    <Action name="stopeffects" finish="1" />
                    <Action name="starteffect" effect="move" dst_x="-110" start="0" end="0.2" />
                    <Action name="timer" id="171" time="3" time_max="8" />
                    <Action name="changeflag" clear="171"/>
             </Timer>
             <Timer timer_id="171" >
                    <Action name="stopeffects" finish="1" />
                    <Action name="starteffect" effect="move" dst_x="110" start="0" end="0.2" />
                    <Action name="timer" id="172" time="5" time_max="10" />
                    <Action name="changeflag" set="171"/>
             </Timer>
    </OnTimer>
    <Click>
          <Action name="timer" id="172" time="0.05" />
    </Click>
    <Messages>
            <Click object="!*fruit" message="Hochu_est" />
    </Messages>
</Object>
<Object name="parrot_12" special_find="1" >
    <Clicker task_name="parrot" />
    <Apply object="*fruit" >
         <Action name="findobject" />
    </Apply>
    <OnTimer>
             <Timer timer_id="182">
                    <Action name="stopeffects" finish="1" />
                    <Action name="starteffect" effect="move" dst_x="30" dst_y="40" start="0" end="0.2" />
                    <Action name="timer" id="181" time="3" time_max="8" />
                    <Action name="changeflag" clear="181"/>
             </Timer>
             <Timer timer_id="181" >
                    <Action name="stopeffects" finish="1" />
                    <Action name="starteffect" effect="move" dst_x="-30" dst_y="-40" start="0" end="0.2" />
                    <Action name="timer" id="182" time="5" time_max="10" />
                    <Action name="changeflag" set="181"/>
             </Timer>
    </OnTimer>
    <Click>
          <Action name="timer" id="182" time="0.05" />
    </Click>
    <Messages>
            <Click object="!*fruit" message="Hochu_est" />
    </Messages>
</Object>

<Group name="vetka1" anchor_x="933" anchor_y="-50">
    <Layer name="branch01" />
    <Layer name="parrot_03" assign="0" />

    <Layer name="parrot_21" assign="0" />
    <Layer name="insect05" />
</Group>
<Object name="vetka1">
    <Effects>
        <Idle>
            <Effect name="shake" amp="0.007" rand="0.2" speed="0.4" />
        </Idle>
    </Effects>
</Object>
<Object name="branch01" />
<Object name="parrot_03">
    <Clicker task_name="parrot" />
</Object>

<Object name="parrot_21">
    <Clicker task_name="parrot" />
</Object>
<Object name="insect05" />

<Object name="branch01a">
    <Effects>
        <Idle>
            <Effect name="shake" amp="0.007" rand="0.5" speed="0.8" />
        </Idle>
    </Effects>
</Object>
<Object name="branch01b">
    <Effects>
        <Idle>
            <Effect name="shake" amp="0.008" rand="0" speed="0.6" />
        </Idle>
    </Effects>
</Object>
<Object name="branch02">
    <Effects>
        <Idle>
            <Effect name="shake" amp="0.006" rand="0" speed="0.4" />
        </Idle>
    </Effects>
</Object>
<Object name="parrot_13">
    <Clicker task_name="parrot" />
    <Effects>
        <Idle>
            <Effect name="shake" amp="0.006" rand="0" speed="0.4" />
        </Idle>
    </Effects>
</Object>
<Object name="parrot_02">
    <Clicker task_name="parrot" />
    <Effects>
        <Idle>
            <Effect name="shake" amp="0.004" rand="0" speed="0.4" />
        </Idle>
    </Effects>
</Object>
<Object name="branch02a">
    <Effects>
        <Idle>
            <Effect name="shake" amp="0.004" rand="0" speed="0.8" />
        </Idle>
    </Effects>
</Object>
<Object name="2but_0001">
    <OnTimer>
        <Timer timer_id="196">
            <Action condition="!2but_0001" name="Starteffect" effect="animate" />
            <Action condition="!2but_0001" name="Timer" id="196" time="1" time_max="5" />
            <Action condition="2but_0001" name="Animation" play="0" />
            <Action condition="2but_0001" name="Timer" id="196" time="7" time_max="14" />
            <Action name="ChangeFlag">
                <Condition state="2but_0001" clear="2but_0001" />
                <Condition state="!2but_0001" set="2but_0001" />
            </Action>
        </Timer>
    </OnTimer>
</Object>
<Object name="3but_0001">
    <OnTimer>
        <Timer timer_id="197">
            <Action condition="!3but_0001" name="Starteffect" effect="animate" />
            <Action condition="!3but_0001" name="Timer" id="197" time="1" time_max="5" />
            <Action condition="3but_0001" name="Animation" play="0" />
            <Action condition="3but_0001" name="Timer" id="197" time="6" time_max="12" />
            <Action name="ChangeFlag">
                <Condition state="3but_0001" clear="3but_0001" />
                <Condition state="!3but_0001" set="3but_0001" />
            </Action>
        </Timer>
    </OnTimer>
</Object>
<Object name="4but_0001">
    <OnTimer>
        <Timer timer_id="198">
            <Action condition="!4but_0001" name="Starteffect" effect="animate" />
            <Action condition="!4but_0001" name="Timer" id="198" time="1" time_max="5" />
            <Action condition="4but_0001" name="Animation" play="0" />
            <Action condition="4but_0001" name="Timer" id="198" time="2" time_max="10" />
            <Action name="ChangeFlag">
                <Condition state="4but_0001" clear="4but_0001" />
                <Condition state="!4but_0001" set="4but_0001" />
            </Action>
        </Timer>
    </OnTimer>
</Object>
<Object name="banan">
    <Inventory single_slot="1" image="./images/Level_38/banan_inventory"/>
    <Clicker task_name="fruit"/>
</Object>
<Object name="mango">
    <Inventory single_slot="1" image="./images/Level_38/mango_inventory"/>
    <Clicker task_name="fruit"/>
</Object>
<Object name="parrot_26">
    <Clicker task_name="parrot" />
</Object>
<Object name="pineapple">
    <Inventory single_slot="1" image="./images/Level_38/pineapple_inventory"/>
    <Clicker task_name="fruit"/>
</Object>
<StartActions>
    <Action name="Timer" id="198" time="2" time_max="10" />
    <Action name="Timer" id="197" time="6" time_max="12" />
    <Action name="Timer" id="196" time="7" time_max="14" />
    <Action name="Timer" id="195" time="5" time_max="9" />
    <Action name="Timer" id="161" time="3"/>
    <Action name="Timer" id="171" time="5"/>
    <Action name="Timer" id="181" time="5"/>
    <Action name="changeflag" set="start" />
</StartActions>

<FinishActions>
    <Action name="Journal" level="39.1"/>
</FinishActions>

