Re: [CODE] Saying spec proc commands

From: Alex (fletchra@qsilver.queensu.ca)
Date: 05/11/03


>       if (is_abbrev(arg, "disappear")) {
>       send_to_char(ch, "You slowly fade out of view.\r\n");
>       act("$n slowly fades out of view.\r\n", FALSE, ch, 0, 0,TO_ROOM);
>       SET_BIT(AFF_FLAGS(ch), AFF_INVISIBLE);
>       return (TRUE);
>       }

> I want it so that appear and disappear are to be said not just typed.
> This compiles fine but it doesnt work the way I wanted.
i bet that your problem is that they aren't echo'd to the room and player,
right?

that's because special procedures that return TRUE do not execute the
actual command, so you will have to do that bit yourself.  Read the coding
document section on special procedures to see hwo this all works.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/26/03 PDT