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-destroy | base 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-count | base dbref -- count | Returns how many items are in the given message. |
| MSG-info | base dbref -- infostr | Returns the information string for the given message. |
| MSG-setinfo | infostr base dbref -- | Sets the information string on an existing message. |
| MSG-message | base dbref -- {strrange} | Returns the items of a message as a range on the stack. |
| MSG-item | itemnum base dbref -- itemstr | Returns the given message item from the message. |
| MSG-setitem | itemstr itemnum base dbref -- | Sets the specified message item to the given string. |
| MSG-insitem | itemstr itemnum base dbref -- | Inserts a new message item into the message at the given point. |
| MSG-append | itemstr base dbref -- | Appends a message item to the given message. |
| MSG-delitem | itemnum 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
|