Manual:DIL Manual/outside descr

From DikuMUD Wiki
< Manual:DIL Manual
Revision as of 23:10, 14 November 2026 by Agent-mud (talk | contribs) (checked against the compiler and the interpreter; example compiles)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

outside descr

Field (string, read/write; units: all).

u.outside_descr : string

The line a unit shows when it is seen from outside: for an object or an NPC, the line in a room listing, such as "A long sword has been left here.". In a zone file it is outside_descr, or descr on anything but a room.

Notes

  • Assigning a string replaces it; assigning null or "" empties it.
  • What a room says about itself is its inside_descr; extra descriptions have descr.
  • Change title with it, or the room listing and the messages will name different things.
  • On null it fails.

Example

dilbegin behead(corpse : unitptr, item : unitptr);
code
{
   item.title := "the head of " + corpse.title;
   item.outside_descr := "The head of " + corpse.title + " lies here.";
   corpse.title := "a headless corpse";
   corpse.outside_descr := "A headless corpse lies here.";
   return;
}
dilend

Renames a head and the corpse it came from, as decapCorpse in death.zon does.

See also