Manual:DIL Manual/creators
Jump to navigation
Jump to search
Contents
creators
Field (stringlist, read/write; on a zoneptr).
z.creators : stringlist
The names of the zone's creators: the creators list in the zone file's %zone header, such as creators {"papi"}. The server uses it to let a creator load from the zone below its loadlevel, and to let a creator use the zone tools (the rods that erase the zone's error and information files) in it; wstat shows it.
Notes
- Any zone can assign it. Assigning a stringlist replaces the list; assigning null empties it. The change lasts until the next boot, which reads the zone file again.
- Use
name in z.creatorsto test for a name; it ignores case. - On a null zoneptr it fails.
Example
dilbegin integer is_creator(pc : unitptr, z : zoneptr);
code
{
if ((pc == null) or (z == null))
return (FALSE);
return (pc.name in z.creators);
}
dilend
Tells whether a player is one of a zone's creators.