First, what core are you working with? If it's lambdacore or
something similar, you already have the announce verbs:
$room:announce (@text) => broadcasts to all except player
$room:announce_all (@text) => broadcasts to all
$room:announce_all_but (objects,@text) => broadcasts to all except
those in objects
These verbs basically loop through room.contents() and call
object:tell(@args) on each object. Note that this means looping
through all objects, not just player objects. All objects in MOO have
a :tell() verb, #1:tell() just calls through to object:notify(), which
in turn, if the object is a player object, calls the built-in notify()
which sends the string to the telnet connection connected to the
player.
Second, be more specific and detailed when you say that the room
version doesn't work. What happens when you try?
Offhand, one thought is to check the permissions on your verbs. See
the lambdamoo programmer's manual:
http://www.moo-cows.com/docs/manuals/ProgrammersManual.html
"The execute bit determines whether or not the verb can be invoked
from within a MOO program (as opposed to from the command line, like
the `put' verb on containers). If the `x' bit is not set, the verb
cannot be called from inside a program. The `x' bit is usually set."
By the way, some years ago I wrote up a very rough draft of a
programmer's tutorial for LambdaMOO, you may find it somewhat useful:
http://www.darksleep.com/notablog/articles/LambdaMOO_Programming_Tutorial
Steve (aka puff @ lambdamoo)
> To view this discussion on the web visit
https://groups.google.com/d/msgid/MOO-talk/CAE3pSMdYo1fQ%2BAifby048rNYud5Ucc%3DpTJmykZCC43aoRnv1OA%40mail.gmail.com.
--
Steven J. Owens
steven...@gmail.com
pu...@darksleep.com
412-401-8060