
#include "defines.txt"

if (new_room) {
  load.pic(room_no);
  draw.pic(room_no);
  discard.pic(room_no);
  set.horizon(50);

  show.pic();

  if(v1==8) {
   position(ego,152,146);
   draw(ego);
  }

  if(v1==11) {
   position(ego,40,100);
   draw(ego);
  }

  if(v1==10) {
   animate.obj(o1);
   load.view(12);
   set.view(o1,12);
   set.loop(o1,0);
   set.cel(o1,0);
   position(o1,32,100);
   set.priority(o1,4);
   ignore.objs(o1);
   v255=3;
   cycle.time(o1,v255);
   step.time(o1,v255);
   draw(o1);
   move.obj(o1,63,100,1,f16);
  }

}

if(isset(f16)) {
  stop.cycling(o1);
  print("You wonder why you're having difficulty thinking.");
  print("You also wonder why you don't seem to be in control of your own movements.");
  death_type=3;
}


if (said("look")) {
  print("You are outside a small cave formed naturally out of one of the huge rocks.");
}

if (said("look","cave")) {
  print("It's certainly very dark in there.");
}

if (said("enter","cave")) {
  print("What, you want me to do everything for you? Pick up those feet and walk right in, you lazy magician.");
}

if (said("look","sky")) {
  print("Yep, it's still there. And it still looks like vomit.");
}

if(isset(f3)) {
  erase(ego);
  death_type=2;
}

if(v2==2) {
 new.room(8);
}

if(posn(ego,31,89,37,107)) {
  if(!isset(f199)) {
  new.room(10);
  }
  else {
  new.room(11);
  }
}

return();





