
/*
  This is a more advanced example of move_player usage
  it can be called from room init() or anything really ;)
  for now just make it called from add_action in init
*/

dive(string str) {
/* The player must type 'dive hole' or 'dive into hole' for function to work */
  if(!str || ( str != "hole" && str != "into hole") ) {
    notify_fail("Dive into what?\n");
    return 0;
  }
  write("You dive into the hole and land in the church!\n");
  call_other(this_player(),"move_player","into a hole#room/church");
/* or: this_player()->move_player("into a hole#room/church");  same thing */
  return 1;
}
