Re: [code][newbie] Echoing to a room via spec_proc

From: Sammy (cris@dhc.net)
Date: 01/26/97


On Sun, 26 Jan 1997, John Evans wrote:

> 	I am trying to get a random string to echo to a certain room via a special 
> procedure for that room.  Here is a shorter version of what I have:
> 
> SPECIAL(sewer_room)
> {
>   switch(number(1,18)) {
>     case 1:
>         act("The squeaking of rats can be heard echoing through the sewers.",
>             TRUE, ch, 0, 0, TO_ROOM);
                     ^ Here's your problem.

TO_ROOM excludes the originator and victim.  Since you're passing it an
originator, that person won't see the messages.  If you change all the
ch's in the act functions to 0, you'll start seeing them.

Also, I think you need an if(cmd) return(0) in the beginning.

Sam


+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST