This function sends a text string to everybody in a room, with the exception of any character passed as an argument to the function. The text can be just a plain string:
msg_room(room(%a),'A rockslide tumbles down around you!')
or can be more complicated, including the names of other characters and/or objects. Certain sequences of characters have special meanings inside the string. These sequences start with $. In the table below, "actor" means the first character argument, "victim" means the second character argument if present, and "object" means the object argument if present. Here are the special sequences:
| Code | Grammatical form | Entity |
| $n | name | actor |
| $e | he, she, it, they | actor |
| $s | his, her, its, their | actor |
| $m | him, her, it, them | actor |
| $N | name | victim |
| $E | he, she, it, they | victim |
| $S | his, her, its, their | victim |
| $M | him, her, it, them | victim |
| $p | name | object |