Manual:DIL Manual/notes
Jump to navigation
Jump to search
Contents
notes
Field (string, read-only in practice; on a zoneptr).
z.notes : string
The zone's notes from its creators: the notes text in the zone file's %zone header. Empty when the header has none. Gods read it with wizhelp notes (helpzon.zon) in the zone they are in; the zone's help text is the one meant for players.
Notes
- Don't assign it. vmc accepts the assignment, but the interpreter then frees memory it doesn't own (
vme/src/dilfld.cpp,DILF_NOTES), which crashes the server or corrupts its memory, and the new text is lost anyway. - On a null zoneptr it fails.
Example
dilbegin show_notes(pc : unitptr, z : zoneptr);
code
{
if (z == null)
return;
if (length(z.notes) > 1)
pagestring(z.notes, pc);
else
sendtext("There are no notes in this area written by the creators.<br/>", pc);
}
dilend
Shows a zone's notes, as wizhelp notes does in helpzon.zon.