Download LambdaCore Database Programmer`s Manual Version 1.3
Transcript
Chapter 1: The LambdaCore Classes
42
page echo msg
Property
This property holds the message sent to a player that pages you when you are logged
in. The default message is ‘Your message has been sent.’
whereis location msg
Property
This property holds the message sent when someone locates you through the
‘@whereis’ command. The default message is ‘%N (%#) is in %l (%[#l]).’ This
might expand out to something like
Blip (#35) is in The Toilet (#96).
who location msg
Property
This property holds the message printed in a who list to inform other player’s of your
location. The default value is ‘%l’, which returns your current location.
mail notify
mail options
mail forward
Property
Property
Property
These properties define your MOO mail environment. They are discussed in more
detail in the section on the MOO Mail system.
edit options
Property
This property defines your MOO editor environment. It is discussed in more detail
in the section on the MOO editor.
1.2 The Mail Room Class
*** To be updated for MOO 1.3 ***
This class provides the mail facility used within LambdaMOO. Some would say that to
provide an electronic mail facility within a game is slightly insane, but it is very useful for
passing around game related messages. Coupled with the use of a suitable client program,
for example the excellent mud.el with MOO Mail extensions, sending MOO mail can be
easy and efficient. It also allows players to separate their MOO based mail from other, more
important mail.
LambdaMOO does not yet provide any facility for reading input from a player. For
this reason, programs such as the mail room use a pseudo-room to catch player input.
For example, when you start to compose a mail message, you are transported to the mail
pseudo-room. Once there, anything you enter is trapped by various verbs in the room, and
stored in the message you are entering.
This method means that commands used in the mail composition environment are actually verbs on the mail pseudo-room.
Mail messages are actually stored on the player object, in a property list called messages.
Each message occupies one entry, called a mail record, in the following format:
{num, {date, from, to, subject, line1, ..., lineN } }
Apart from the num field, these are all strings. The num field stores the message number
for each message. When a new piece of mail arrives, it is allocated a message number 1