Manual:DIL Manual/inside descr
Jump to navigation
Jump to search
Contents
inside descr
Field (string, read/write; units: all).
u.inside_descr : string
What is seen from inside the unit. For a room it is the room's description, shown under its title when someone looks. For an object or a character it is what someone inside it sees (a coffin, a wagon, a mount); baselook.zon shows it instead of "You are inside ...".
In a zone file it is inside_descr, or descr on a room. vmc puts three spaces in front of a room's description, to indent the first line.
Notes
- Assigning a string replaces it; assigning null or
""empties it. A room description set from DIL gets no indent unless the string has one. - The line a unit shows from outside is outside_descr.
- On null it fails.
Example
dilbegin show_room();
var
room : unitptr;
code
{
room := self.outside;
if (room.type != UNIT_ST_ROOM)
quit;
sendtext(room.title + "<br/>", self);
if (room.inside_descr != "")
sendtext(room.inside_descr + "<br/>", self);
quit;
}
dilend
Shows a player the title and description of the room, as look does in baselook.zon.