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

From: John Evans (evansj@texas.net)
Date: 01/26/97


	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:

  switch(number(1,18)) {
    case 1:
        act("The squeaking of rats can be heard echoing through the sewers.",
            TRUE, ch, 0, 0, TO_ROOM);
        return TRUE;
    case 2:
        act("The sound of dripping water reaches you from the somewhere in the"
            " distance.", TRUE, ch, 0, 0, TO_ROOM);
        return TRUE;
    case 3:
        act("Something brushes by your leg under the surface of the water.",
             TRUE, ch, 0, 0, TO_ROOM);
        return TRUE;
  return FALSE;

This method works great for mobs, but not for rooms. :(
This snippet of code will compile and won't crash the mud, but it just won't do 
anything, and I've sat in the room for a good 10 minutes waiting for SOMETHING 
to happen. :)

I didn't think that it would work, but it was all that I could think of. 
Perhaps, if I went to bed and came back to it, I'd think of a different way of 
doing it. :)

Anyway, here's my first post to the list, and I hope that someone out there can 
help me out. 

John Evans
mailto: evansj@texas.net
http://www.texas.net/~evansj [RPGs, SCA, MUDs and Search Engines]
slanted.elfwerks.com:2020 [Slanted Reality (Look for Beosig)]
| 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