SetActivLeaf("tropa_obryva");
Spirit_Particles()
AddObjForCur()
addstaticobjecttogame(111,"tuman",0,306,"");
MoveTexture(111,0.0001,0.0)
speciale_action(10,111)

Hole={
227,162,
310,162,
310,250,
227,250
}

Hidden={
0,310,
208,310,
208,468,
0,468
}

Steep={
556,169,
856,169,
856,276,
556,276
}

Grass={
754,396,
985,396,
985,540,
754,540
}

Back={
0,550,
1024,550,
1024,768,
0,768
}

CreatePolygon(7,4,"Back")


CreatePolygon(10,4,"Hidden")
ActivateObject(10,false);


addstaticobjecttogame(36,"tropa_obryva",728,68 ,"",245,768,80,71); 
addstaticobjecttogame(37,"tropa_obryva",774,35 ,"",180,768,65,62); 
addstaticobjecttogame(38,"tropa_obryva",776,145,"",114,768,66,59); 

SetHotPoint(36,79,61)
SetHotPoint(37,64,54)
SetHotPoint(38,16,0)

NewObj("sadnog","nojnici",2000,2000,"361"); --ножницы
NewObj("sadngo","tropa_obryva",341,397,"361",0,768,114,59); --ножницы


CreatePolygon(8,4,"Hole")

add_animation(121)
add_animation_frame(121,"tropa_rat",-200,600,0  ,0  ,105,49,0.05);
add_animation_frame(121,"tropa_rat",-200,600,105,0  ,105,49,0.05);
add_animation_frame(121,"tropa_rat",-200,600,210,0  ,105,49,0.05);
add_animation_frame(121,"tropa_rat",-200,600,315,0  ,105,49,0.05);
add_animation_frame(121,"tropa_rat",-200,600,0  ,0  ,105,49,0.05);
StartAnimation(121)
flyRat1 = {"InstantiationOfLine", 2, -200, 301, 1024, 610, 5, false};
StartTravel(121,1,nil,nil,flyRat1);
addstaticobjecttogame(3,"tropa_obryva",0  ,0  ,"",0,0,1024,768); --стат
addstaticobjecttogame(112,"tuman",0,230,"");
MoveTexture(112,0.00009,0.0)
speciale_action(10,112)
addstaticobjecttogame(11,"tropa_obryva3",653,243,""); --трава
speciale_action(10,11)
CreatePolygon(4,4,"Grass")

CreatePolygon(9,4,"Steep")


addstaticobjecttogame(42,"clouds2",0  ,0  ,"");
MoveTexture(42,-0.00007,0.0)
addstaticobjecttogame(6,"tropa_obryva5",0  ,0  ,""); --бг


addfade(501,0);


travuwka=false

if flags.trava_skosM then
    travuwka=true;
    speciale_action(2,11);

end;



if flags.trava then
    if not travuwka then
        travuwka=true
        speciale_action(2,11);
    end;  
  ActivateObject(3,false)        
  ActivateObject(4,false)        
end;



if flags.duplo then
  speciale_action(2,8);
end;

if flags.is_spirit then
  if not flags.hidden_zarosli then
    ActivateObject(10,true);
  end;
end;

if flags.hidden_zarosli then
  ActivateObject(10,false);
end;