Ejemplo n.º 1
0
Archivo: stairs.c Proyecto: Lundex/lima
varargs protected void setup_messages(string name, mixed up_dest, mixed down_dest)
{
  string dirs;
  if(up_dest)
    add_method("ascend",up_dest);
  if(down_dest)
    add_method("descend",down_dest);
  if (up_dest)
    {
      if (down_dest)
	dirs = "up and down";
      else
	dirs = "upwards";
    }
  else
    {
      if( down_dest )
	dirs = "downwards";
      else
	dirs = "nowhere";
    }
  if (query_plural())
    add_id_no_plural(name);
  else
    add_id( name );
  set_long(sprintf("The %s %s %s",
		   name,
		   query_plural()?"lead":"leads",
		   dirs) );
  set_in_room_desc(sprintf("There %s %s here, leading %s.",
			   query_plural()?"are ":"is a ",
			   name,
			   dirs) );
}
Ejemplo n.º 2
0
string query_distant() {
   if( query_quantity() == 1 )
      return ::query_distant();
   else
      return rough_amount( query_quantity() ) + " " + query_plural();
}
Ejemplo n.º 3
0
Archivo: stairs.c Proyecto: Lundex/lima
mixed direct_get_obj( object ob ) {
    if( query_plural())
        return "#Try climbing them instead.";
    else
        return "#Try climbing it instead.";
}