JS-MSG
The Room msg() method displays a message to the room. It can take a variety of different parameters. If you specify a list of objects, characters, or rooms after the list they will be substituted in any caret-substitutations that were present. The Room msg() will be sent to everyone in the room except the list of characters passed to it. The Room amsg() works like msg() except that it is sent to everyone, including the list of characters.
The Char msg() works similarly except that it sends it to just the character and the character is always the first caret-substitution. Any extra arguments will be the second and third. The say(), talk(), and shout() methods can also take caret substitution.
For example:
self.msg( "You look at ^2n.", actor ); inRoom.msg( "^n looks at ^2n.", self, actor ); actor.msg( "^2n looks at you.", self ); self.shout( '^2n is a jerk!', actor ); self.say( 'Hi there, ^2n.', actor ); var shiv = self.findEq( 30000 ); self.talk( actor, 'Hey ^2n, take this ^3n.', shiv );
Try to favor using caret-substitution in JavaScript instead of using "actor.shortDesc" because caret-substitution is faster (no temporary strings need to be created), it deals with invisibility (it will convert short-descs to "Someone" or "Something" if you can't see it), and it's less typing.