lib-mesg

A message is a set of elements with a count and an information string, stored in properties.

Below:

  • base is a string containing the name of the message.
  • itemnum is the number of an item within a message.
  • itemstr is a single item's string.
  • infostr is the messages information string.
  • {strrange} is a string range that is all the elements of the message with an integer count.


MSG-destroybase dbref --Clears and removes the message.
MSG-create{strrange} infostr base dbref -- Create a new message with the given items and info string on the given object with the given name.
MSG-countbase dbref -- countReturns how many items are in the given message.
MSG-infobase dbref -- infostrReturns the information string for the given message.
MSG-setinfoinfostr base dbref --Sets the information string on an existing message.
MSG-messagebase dbref -- {strrange}Returns the items of a message as a range on the stack.
MSG-itemitemnum base dbref -- itemstrReturns the given message item from the message.
MSG-setitemitemstr itemnum base dbref --Sets the specified message item to the given string.
MSG-insitemitemstr itemnum base dbref --Inserts a new message item into the message at the given point.
MSG-appenditemstr base dbref --Appends a message item to the given message.
MSG-delitemitemnum base dbref --Deletes the specified message item from the given message.

Message data type:

  • Base# --> Count of Message Items
  • Base#/X --> Message Items
  • Base#/i --> Info String


feaelin@kemenel.org
lib-mesg / Revised 2004 March 31 22:06 (Wednesday)
© 2004 Iain E. Davis

Green Web Hosting! This site hosted by DreamHost. Standards Now! Valid XHTML 1.1! Valid CSS! We rated with ICRA!