if (isset(f5)) {
  load.pic(v0);
  draw.pic(v0);
  discard.pic(v0);
  set.horizon(37);
  if ((v1 == 4 ||
      v1 == 0)) {
    position(o0,85,165);
    status.line.on();
    accept.input();
  }
  if (v1 == 19) {
    position(o0,88,110);
  set(f250);
  }
  draw(o0);
  show.pic();
}
if (said("examine")) {
  print("This is an empty room.");
}
if (v2 == 3) {
  new.room(4);
}
if (said("open","door")) {
  print("You can't open that big gate all by yourself. Talk to the guards if "
        "you want to enter the castle.");
}
if (isset(f5)) {
    animate.obj(o1);
    load.view(47);
    set.view(o1,47);
    set.loop(o1,2);
    position(o1,97,100);
    draw(o1);
    stop.cycling(o1);
    animate.obj(o2);
    set.view(o2,47);
    set.loop(o2,2);
    position(o2,80,100);
    draw(o2);
    stop.cycling(o2);
    }
if (isset(f200)) {
  if (isset(f5)) {
    prevent.input();
    animate.obj(o1);
    load.view(47);
    set.view(o1,47);
    set.loop(o1,2);
    position(o1,97,100);
    draw(o1);
    stop.cycling(o1);
    animate.obj(o2);
    set.view(o2,47);
    set.loop(o2,2);
    position(o2,80,100);
    draw(o2);
    stop.cycling(o2);
    set(f101);
    move.obj(o0,72,115,1,f100);
  }
  if (isset(f100)) {
    reset(f5);
    reset(f100);
    erase(o0);
    animate.obj(o3);
    load.view(36);
    set.view(o3,36);
    set.loop(o3,0);
    position(o3,72,115);
    draw(o3);
    start.cycling(o3);
    set(f101);
  }
  if (isset(f101)) {
    v201 += 1;
  }
  if (v201 == 70) {
    reset(f101);
    v201 = 0;
    print("Good afternoon Barnardo, good day Franciso.");
    stop.cycling(o3);
    start.cycling(o1);
    start.cycling(o2);
    set(f102);
  }
  if (isset(f102)) {
    v202 += 1;
  }
  if (v202 == 19) {
    reset(f102);
    v202 = 0;
    print("Good day Caitlin, your looking pretty as usual!");
    stop.cycling(o1);
    stop.cycling(o2);
    start.cycling(o3);
    set(f103);
  }
  if (isset(f103)) {
    v203 += 1;
  }
  if (v203 == 20) {
    reset(f103);
    v203 = 0;
    print("Thanks guys! Listen, I just got a message that King Demetrius has "
          "summoned me.");
    stop.cycling(o3);
    start.cycling(o1);
    set(f104);
  }
  if (isset(f104)) {
    v204 += 1;
  }
  if (v204 == 19) {
    reset(f104);
    v204 = 0;
    print("Yes Caitlin, We've been informed.");
    stop.cycling(o1);
    start.cycling(o3);
    set(f105);
  }
  if (isset(f105)) {
    v205 += 1;
  }
  if (v205 == 20) {
    reset(f105);
    v205 = 0;
    print("Do you have any idea what he could want with me?");
    stop.cycling(o3);
    start.cycling(o2);
    set(f106);
  }
  if (isset(f106)) {
    v206 += 1;
  }
  if (v206 == 19) {
    reset(f106);
    v206 = 0;
    print("We have not been told, but I do know it is quite urgent. You had "
          "better follow me to the throne room at once.");
    stop.cycling(o2);
    start.cycling(o3);
    set(f107);
  }
  if (isset(f107)) {
    v207 += 1;
  }
  if (v207 == 20) {
    reset(f107);
    v207 = 0;
    print("Okay, thanks Franciso.");
    stop.cycling(o3);
    start.cycling(o2);
    set(f108);
  }
  if (isset(f108)) {
    v208 += 1;
  }
  if (v208 == 19) {
    reset(f108);
    v208 = 0;
    print("King Demetrius awaits. Follow me.");
    stop.cycling(o2);
    set(f109);
  }
  if (isset(f109)) {
    v209 += 1;
  }
  if (v209 == 19) {
    reset(f109);
    v209 = 0;
    print("Franciso, leads you into Castle Elsinore, and to the king's throne "
          "room.");
    set(f99);
    new.room(19);
  }
}
if (isset(f201)) {
  animate.obj(o1);
  load.view(47);
  set.view(o1,47);
  set.loop(o1,2);
  set.cel(o1,0);
  position(o1,97,100);
  draw(o1);
  stop.cycling(o1);
  animate.obj(o2);
  set.view(o2,47);
  set.loop(o2,2);
  set.cel(o2,0);
  position(o2,80,100);
  draw(o2);
  stop.cycling(o2);
}
 animate.obj(o9);
load.view(58);
set.view(o9,58);
set.loop(o9,3);
set.priority(o9,15);
position(o9,150,15);
ignore.horizon(o9);
draw(o9);
start.cycling(o9);
return();

// Messages
#message 1 "This is an empty room."
#message 2 "You can't open that big gate all by yourself. Talk to the guards if you want to enter the castle."
#message 3 "Good afternoon Barnardo, good day Franciso."
#message 4 "Good day Caitlin, your looking pretty as usual!"
#message 5 "Thanks guys! Listen, I just got a message that King Demetrius has summoned me."
#message 6 "Yes Caitlin, We've been informed."
#message 7 "Do you have any idea what he could want with me?"
#message 8 "We have not been told, but I do know it is quite urgent. You had better follow me to the throne room at once."
#message 9 "Okay, thanks Franciso."
#message 10 "King Demetrius awaits. Follow me."
#message 11 "Franciso, leads you into Castle Elsinore, and to the king's throne room."