Re: [CODE] Saying spec proc commands

From: Alex (
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);
>       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,

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: |
   | Archives: |
   | Newbie List:   |

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