Manual:DIL Manual/fname

From DikuMUD Wiki
Jump to navigation Jump to search

fname

Field (string, read-only; on a zoneptr).

z.fname : string

The zone's name, the same as name on a zoneptr: "midgaard". It is also the base of the zone's file names (midgaard.zon, midgaard.data), hence the name; it is not a path.

Notes

  • vmc accepts an assignment, but at run time the program logs "DIL SERIOUS: ... Type error in lvalue assignemt" and stops.
  • On a null zoneptr it fails.

Example

dilbegin string err_file(z : zoneptr);
code
{
   if (z == null)
      return ("");
   return (z.fname + ".err");
}
dilend

Gives the name of the file vmc writes a zone's compile errors to.

See also