Ejemplo n.º 1
0
void create() {
    ::create();
    if (objectp(_entry = "/room/shop_adv_tunnel"->__bootstrap())) {
        _entry->add_exit(ARN_R_ARENA, "west");
        _entry->add_my_desc("There is an arena to the west.");
    }
}
Ejemplo n.º 2
0
void add_maze_exits(object room) {
  int i, num;

  if( !sscanf(file_name(room), "room/maze1/maze%d", num) )
    return;
  if( num == LENGTH_OF_MAZE )
  {
    room->set_long("You have finally reached the end of the maze.\n");
    room->add_exit("north", "/room/maze1/maze"+(num-1));
    return;
  }
  num--;
  for( i=0; i<sizeof(directions); i++ ) {
    if( directions[i] == path_thru_maze[num] ) 
      room->add_exit(directions[i], "/room/maze1/maze"+(num+2));
    else
      room->add_exit(directions[i], "/room/well");
  }
}
Ejemplo n.º 3
0
void setup(int nat, string sheltroom, string where) {
  interior = new(sheltroom);
  interior->add_exit(where, "out");
  call_out("collapse", nat);
}