if (isset(f5)) {
  load.pic(v0);
  draw.pic(v0);
  discard.pic(v0);
  set.horizon(37);
  if ((v1 == 14 ||
      v1 == 0)) {
    position(o0,1,128);
    status.line.on();
    accept.input();
  }
  if (v1 == 6) {
    position(o0,159,137);
  }
  if (v1 == 22) {
    position(o0,78,102);
  }
  if (v1 == 16) {
    position(o0,4,101);
  }
  if (v1 == 18) {
    position(o0,65,135);
   accept.input();
  }
  draw(o0);
  show.pic();
}
if (said("examine")) {
  print("This is where your home is. You live in the blue house. Your neighbour "
        "Florizel lives in the red house next door.");
}
if (isset(f200)) {
  if (said("open","door")) {
    print("You don't have time to go home, you have to get to the castle.");
  }
  if (v2 == 4) {
    get.posn(o0,v200,v201);
    v200 = 5;
    print("The castle is the other way Caitlin. You can explore later.");
    move.obj.v(o0,v200,v201,1,f97);
  }
  if (v2 == 2) {
    new.room(3);
  }
}
if (isset(f250)) {
  if (said("open","door")) {
    if(posn(o0,75,98,89,101)){
    new.room(22);
  }
    if(posn(o0,1,98,14,101)){
    new.room(16);
  }
  else {
  print("You are not close enough");
  }
  }
  if (v2 == 4) {
    new.room(5);
  }
  if (v2 == 2) {
    new.room(3);
  }
  }
animate.obj(o1);
load.view(157);
set.view(o1,157);
set.loop(o1,1);
ignore.horizon(o1);
position(o1,25,9);
draw(o1);
start.cycling(o1);
animate.obj(o2);
load.view(58);
set.view(o2,58);
set.loop(o2,3);
set.priority(o2,15);
ignore.objs(o2);
position(o2,100,150);
draw(o2);
start.cycling(o2);
if (said("examine","building")) {
  print("The blue house is yours. You've lived there since your grandfather "
        "began raising you after your parents died. Your house is one of the "
        "nicest in the town, since it belonged to your grandfather, who was a "
        "very important man.");
}
if (said("examine","boulder")) {
  print("Rocks are rocks, there is nothing interesting about them.");
}
if (said("examine","bush")) {
  print("There are various bushes around here, nothing about them catches your "
        "interest.");
}
if (said("examine","grass")) {
  print("The grass is very green. You like to keep your yard neat and tidy.");
}
if (said("examine","cloud")) {
  print("When you were younger you used to love trying to see shapes in the "
        "clouds. You don't do that quite often anymore.");
}
return();

// Messages
#message 1 "This is where your home is. You live in the blue house. Your neighbour Florizel lives in the red house next door."
#message 2 "You don't have time to go home, you have to get to the castle."
#message 3 "The castle is the other way Caitlin. You can explore later."
#message 4 "The blue house is yours. You've lived there since your grandfather began raising you after your parents died. Your house is oneof the nicest in the town, since it belonged to your grandfather, who was a very important man."
#message 5 "Rocks are rocks, there is nothing interesting about them."
#message 6 "There are various bushes around here, nothing about them catches your interest."
#message 7 "The grass is very green. You like to keep your yard neat and tidy."
#message 8 "When you were younger you used to love trying to see shapes in the clouds. You don't do that quite often anymore."